From ad60899436b9843dccb58d065f7e2700d34ac6f5 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Sat, 16 Sep 2023 14:52:17 +0200 Subject: [PATCH] Upgradeable Statistics stdlib (#46501) --- NEWS.md | 3 +++ .../Pkg-0b9334a944fbc1ba3c230138ba339bd22d58064f.tar.gz/md5 | 1 - .../sha512 | 1 - .../Pkg-ff6d645cd8bd18f4d22f6b5a24ff0234cf193fa5.tar.gz/md5 | 1 + .../sha512 | 1 + .../md5 | 1 + .../sha512 | 1 + .../md5 | 1 - .../sha512 | 1 - doc/src/manual/modules.md | 2 +- pkgimage.mk | 4 ++-- stdlib/Pkg.version | 2 +- stdlib/Random/Project.toml | 3 +-- stdlib/Statistics.version | 2 +- test/loading.jl | 1 + 15 files changed, 14 insertions(+), 11 deletions(-) delete mode 100644 deps/checksums/Pkg-0b9334a944fbc1ba3c230138ba339bd22d58064f.tar.gz/md5 delete mode 100644 deps/checksums/Pkg-0b9334a944fbc1ba3c230138ba339bd22d58064f.tar.gz/sha512 create mode 100644 deps/checksums/Pkg-ff6d645cd8bd18f4d22f6b5a24ff0234cf193fa5.tar.gz/md5 create mode 100644 deps/checksums/Pkg-ff6d645cd8bd18f4d22f6b5a24ff0234cf193fa5.tar.gz/sha512 create mode 100644 deps/checksums/Statistics-04e5d8916fae616f5ad328cf6a0b94cf883b8ba6.tar.gz/md5 create mode 100644 deps/checksums/Statistics-04e5d8916fae616f5ad328cf6a0b94cf883b8ba6.tar.gz/sha512 delete mode 100644 deps/checksums/Statistics-a3feba2bb63f06b7f40024185e9fa5f6385e2510.tar.gz/md5 delete mode 100644 deps/checksums/Statistics-a3feba2bb63f06b7f40024185e9fa5f6385e2510.tar.gz/sha512 diff --git a/NEWS.md b/NEWS.md index 278ca263dc36e..18a8f89f6d382 100644 --- a/NEWS.md +++ b/NEWS.md @@ -61,6 +61,9 @@ Standard library changes #### Dates +#### Statistics + +* Statistics is now an upgradeable standard library.([#46501]) #### Distributed diff --git a/deps/checksums/Pkg-0b9334a944fbc1ba3c230138ba339bd22d58064f.tar.gz/md5 b/deps/checksums/Pkg-0b9334a944fbc1ba3c230138ba339bd22d58064f.tar.gz/md5 deleted file mode 100644 index 86111030b486a..0000000000000 --- a/deps/checksums/Pkg-0b9334a944fbc1ba3c230138ba339bd22d58064f.tar.gz/md5 +++ /dev/null @@ -1 +0,0 @@ -80a4abd2bece787f40ce8a890da4bfb0 diff --git a/deps/checksums/Pkg-0b9334a944fbc1ba3c230138ba339bd22d58064f.tar.gz/sha512 b/deps/checksums/Pkg-0b9334a944fbc1ba3c230138ba339bd22d58064f.tar.gz/sha512 deleted file mode 100644 index 315ed00052593..0000000000000 --- a/deps/checksums/Pkg-0b9334a944fbc1ba3c230138ba339bd22d58064f.tar.gz/sha512 +++ /dev/null @@ -1 +0,0 @@ -5d3a27c569567095916174c30cde0ae1a3c60f967013bc1f044c9311cc9f66d00f0e52399949b13f1c599e1b9279417ea222128e5e525df43b7b828c48d84ad9 diff --git a/deps/checksums/Pkg-ff6d645cd8bd18f4d22f6b5a24ff0234cf193fa5.tar.gz/md5 b/deps/checksums/Pkg-ff6d645cd8bd18f4d22f6b5a24ff0234cf193fa5.tar.gz/md5 new file mode 100644 index 0000000000000..69d4194df4385 --- /dev/null +++ b/deps/checksums/Pkg-ff6d645cd8bd18f4d22f6b5a24ff0234cf193fa5.tar.gz/md5 @@ -0,0 +1 @@ +2c076e4095bb473af0a0c4d2225bf85a diff --git a/deps/checksums/Pkg-ff6d645cd8bd18f4d22f6b5a24ff0234cf193fa5.tar.gz/sha512 b/deps/checksums/Pkg-ff6d645cd8bd18f4d22f6b5a24ff0234cf193fa5.tar.gz/sha512 new file mode 100644 index 0000000000000..b4ffb5f6acf2d --- /dev/null +++ b/deps/checksums/Pkg-ff6d645cd8bd18f4d22f6b5a24ff0234cf193fa5.tar.gz/sha512 @@ -0,0 +1 @@ +feffd9850f4fd46b431c411162a997b3da6425aba4b59adb54526e5d241e8a688263facea3896c04aa3c24211bd3f416f7eba366dd094bbb6bdba6b479448aad diff --git a/deps/checksums/Statistics-04e5d8916fae616f5ad328cf6a0b94cf883b8ba6.tar.gz/md5 b/deps/checksums/Statistics-04e5d8916fae616f5ad328cf6a0b94cf883b8ba6.tar.gz/md5 new file mode 100644 index 0000000000000..546b021cc2afb --- /dev/null +++ b/deps/checksums/Statistics-04e5d8916fae616f5ad328cf6a0b94cf883b8ba6.tar.gz/md5 @@ -0,0 +1 @@ +1ed739f3d108cfe880fd97fe8b4359e7 diff --git a/deps/checksums/Statistics-04e5d8916fae616f5ad328cf6a0b94cf883b8ba6.tar.gz/sha512 b/deps/checksums/Statistics-04e5d8916fae616f5ad328cf6a0b94cf883b8ba6.tar.gz/sha512 new file mode 100644 index 0000000000000..c4501f163b216 --- /dev/null +++ b/deps/checksums/Statistics-04e5d8916fae616f5ad328cf6a0b94cf883b8ba6.tar.gz/sha512 @@ -0,0 +1 @@ +f83e44af718c5dbe8346762f869796cf80ca6bb10d97c7855e5ea2863198ae650ba8462b46a92a7f6d0941f52d2739c3e10b0a7cbbc6f28e0ad3adb13a89a874 diff --git a/deps/checksums/Statistics-a3feba2bb63f06b7f40024185e9fa5f6385e2510.tar.gz/md5 b/deps/checksums/Statistics-a3feba2bb63f06b7f40024185e9fa5f6385e2510.tar.gz/md5 deleted file mode 100644 index 7e7a889eecd29..0000000000000 --- a/deps/checksums/Statistics-a3feba2bb63f06b7f40024185e9fa5f6385e2510.tar.gz/md5 +++ /dev/null @@ -1 +0,0 @@ -6564297a5f5971231809bf9940f68b98 diff --git a/deps/checksums/Statistics-a3feba2bb63f06b7f40024185e9fa5f6385e2510.tar.gz/sha512 b/deps/checksums/Statistics-a3feba2bb63f06b7f40024185e9fa5f6385e2510.tar.gz/sha512 deleted file mode 100644 index bbe9b8bed6371..0000000000000 --- a/deps/checksums/Statistics-a3feba2bb63f06b7f40024185e9fa5f6385e2510.tar.gz/sha512 +++ /dev/null @@ -1 +0,0 @@ -22d14c82a30f3ec7af09028423cc823808abf86918d5707fd1fcf6ca20dea7871589da9b22e462d194e86fcee380f549aeb65f585048f00bf23281786b17e040 diff --git a/doc/src/manual/modules.md b/doc/src/manual/modules.md index 7c9a743deb35d..4bcf75e2c69fc 100644 --- a/doc/src/manual/modules.md +++ b/doc/src/manual/modules.md @@ -148,7 +148,7 @@ As we will see in the next section `import .NiceStuff` is equivalent to `using . You can combine multiple `using` and `import` statements of the same kind in a comma-separated expression, e.g. ```jldoctest module_manual -julia> using LinearAlgebra, Statistics +julia> using LinearAlgebra, Random ``` ### `using` and `import` with specific identifiers, and adding methods diff --git a/pkgimage.mk b/pkgimage.mk index f6afc0a9ab6cc..a721dc73d10d7 100644 --- a/pkgimage.mk +++ b/pkgimage.mk @@ -27,7 +27,7 @@ STDLIBS := ArgTools Artifacts Base64 CRC32c FileWatching Libdl NetworkOptions SH Zlib_jll dSFMT_jll libLLVM_jll libblastrampoline_jll OpenBLAS_jll Printf Random Tar \ LibSSH2_jll MPFR_jll LinearAlgebra Dates Distributed Future LibGit2 Profile SparseArrays UUIDs \ SharedArrays TOML Test LibCURL Downloads Pkg Dates LazyArtifacts Sockets Unicode Markdown \ - InteractiveUtils REPL DelimitedFiles + InteractiveUtils REPL DelimitedFiles Statistics all-release: $(addprefix cache-release-, $(STDLIBS)) all-debug: $(addprefix cache-debug-, $(STDLIBS)) @@ -131,5 +131,5 @@ $(eval $(call sysimg_builder,Pkg,Dates LibGit2 Libdl Logging Printf Random SHA U $(eval $(call pkgimg_builder,LazyArtifacts,Artifacts Pkg)) $(eval $(call pkgimg_builder,SparseArrays,Libdl LinearAlgebra Random Serialization)) +$(eval $(call pkgimg_builder,Statistics,LinearAlgebra SparseArrays)) # SuiteSparse_jll -# Statistics diff --git a/stdlib/Pkg.version b/stdlib/Pkg.version index a7f2003b036ee..671779d2b05b7 100644 --- a/stdlib/Pkg.version +++ b/stdlib/Pkg.version @@ -1,4 +1,4 @@ PKG_BRANCH = master -PKG_SHA1 = 0b9334a944fbc1ba3c230138ba339bd22d58064f +PKG_SHA1 = ff6d645cd8bd18f4d22f6b5a24ff0234cf193fa5 PKG_GIT_URL := https://github.com/JuliaLang/Pkg.jl.git PKG_TAR_URL = https://api.github.com/repos/JuliaLang/Pkg.jl/tarball/$1 diff --git a/stdlib/Random/Project.toml b/stdlib/Random/Project.toml index f32fc3e2a4f84..f86f0a54f8ba4 100644 --- a/stdlib/Random/Project.toml +++ b/stdlib/Random/Project.toml @@ -9,7 +9,6 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Future = "9fa8497b-333b-5362-9e8d-4d0656e87820" -Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" [targets] -test = ["Test", "SparseArrays", "LinearAlgebra", "Future", "Statistics"] +test = ["Test", "SparseArrays", "LinearAlgebra", "Future"] diff --git a/stdlib/Statistics.version b/stdlib/Statistics.version index 27197b12be54c..6028e12fe19f4 100644 --- a/stdlib/Statistics.version +++ b/stdlib/Statistics.version @@ -1,4 +1,4 @@ STATISTICS_BRANCH = master -STATISTICS_SHA1 = a3feba2bb63f06b7f40024185e9fa5f6385e2510 +STATISTICS_SHA1 = 04e5d8916fae616f5ad328cf6a0b94cf883b8ba6 STATISTICS_GIT_URL := https://github.com/JuliaStats/Statistics.jl.git STATISTICS_TAR_URL = https://api.github.com/repos/JuliaStats/Statistics.jl/tarball/$1 diff --git a/test/loading.jl b/test/loading.jl index 394c13c5f2962..d002d10d0dab3 100644 --- a/test/loading.jl +++ b/test/loading.jl @@ -1182,4 +1182,5 @@ end @testset "Upgradable stdlibs" begin @test success(`$(Base.julia_cmd()) --startup-file=no -e 'using DelimitedFiles'`) + @test success(`$(Base.julia_cmd()) --startup-file=no -e 'using Statistics'`) end