From 9731aef85c043a98d909f6e98841de9703e8b6d0 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Fri, 22 Nov 2024 10:14:43 +0100 Subject: [PATCH] get rid of UUID changing stuff (#582) --- .ci/test_and_change_uuid.jl | 28 ---------------------------- .github/workflows/ci.yml | 5 +---- README.md | 10 ---------- 3 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 .ci/test_and_change_uuid.jl diff --git a/.ci/test_and_change_uuid.jl b/.ci/test_and_change_uuid.jl deleted file mode 100644 index cca5dc3f..00000000 --- a/.ci/test_and_change_uuid.jl +++ /dev/null @@ -1,28 +0,0 @@ -@static if Base.VERSION >= v"1.6" - using TOML - using Test -else - using Pkg: TOML - using Test -end - -# To generate the new UUID, we simply modify the first character of the original UUID -const original_uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" -const new_uuid = "4f01184e-e22b-5df5-ae63-d93ebab69eaf" - -# `@__DIR__` is the `.ci/` folder. -# Therefore, `dirname(@__DIR__)` is the repository root. -const project_filename = joinpath(dirname(@__DIR__), "Project.toml") - -@testset "Test that the UUID is unchanged" begin - project_dict = TOML.parsefile(project_filename) - @test project_dict["uuid"] == original_uuid -end - -write( - project_filename, - replace( - read(project_filename, String), - r"uuid = .*?\n" => "uuid = \"$(new_uuid)\"\n", - ), -) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6e14d0f..7a6ff08c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,6 @@ jobs: version: ${{ matrix.julia-version }} arch: ${{ matrix.julia-arch }} - uses: julia-actions/cache@v2 - - run: julia --color=yes .ci/test_and_change_uuid.jl - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 @@ -69,7 +68,6 @@ jobs: version: ${{ matrix.julia-version }} arch: ${{ matrix.julia-arch }} - uses: julia-actions/cache@v2 - - run: julia --color=yes .ci/test_and_change_uuid.jl - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 env: @@ -83,8 +81,7 @@ jobs: version: 'nightly' - name: Generate docs run: | - julia --color=yes -e 'write("Project.toml", replace(read("Project.toml", String), r"uuid = .*?\n" =>"uuid = \"3f01184e-e22b-5df5-ae63-d93ebab69eaf\"\n"));' - julia --project --color=yes -e 'using Pkg; Pkg.activate("docs"); Pkg.instantiate(); Pkg.develop(PackageSpec(path = pwd()))' + julia --project --color=yes -e 'using Pkg; Pkg.activate("docs"); Pkg.develop(PackageSpec(path = pwd()))' julia --project=docs --color=yes docs/make.jl pdf env: DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} diff --git a/README.md b/README.md index 66124503..01135b0c 100644 --- a/README.md +++ b/README.md @@ -20,16 +20,6 @@ This package ships as part of the Julia stdlib. SparseArrays.jl provides functionality for working with sparse arrays in Julia. -## Using development versions of this package - -To use a newer version of this package, you need to build Julia from scratch. The build process is the same as any other build except that you need to change the commit used in `stdlib/SparseArrays.version`. - -It's also possible to load a development version of the package using [the trick used in the Section named "Using the development version of Pkg.jl" in the `Pkg.jl` repo](https://github.com/JuliaLang/Pkg.jl#using-the-development-version-of-pkgjl), but the capabilities are limited as all other packages will depend on the stdlib version of the package and will not work with the modified package. - -The main environment may become inconsistent so you might need to run `Pkg.instantiate()` and/or `Pkg.resolve()` in the main or project environments if Julia complains about missing `Serialization.jl` in this package's dependencies. - -For older (1.8 and before) `SuiteSparse.jl` needs to be bumped too. - ## Updating SuiteSparse In order to upgrade SparseArrays.jl to use a new release of SuiteSparse, the following steps are necessary: