Skip to content

Commit

Permalink
Remove toricvarieties from distribution (#1073)
Browse files Browse the repository at this point in the history
As requested by Martin Bies
  • Loading branch information
fingolfin authored Jan 16, 2025
1 parent abc7bb3 commit d809470
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 131 deletions.
114 changes: 0 additions & 114 deletions packages/toricvarieties/meta.json

This file was deleted.

25 changes: 10 additions & 15 deletions tools/tests/test_download_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,10 @@ def test_archive_name(ensure_in_tests_dir):


def test_archive_url():
assert (
archive_url(metadata("aclib"))
== "https://github.com/gap-packages/aclib/releases/download/v1.3.2/aclib-1.3.2.tar.gz"
)

assert (
archive_url(metadata("toricvarieties"))
== "https://github.com/homalg-project/ToricVarieties_project/releases/download/2021-11-17/ToricVarieties.zip"
)
# assert (
# archive_url(metadata("aclib"))
# == "https://github.com/gap-packages/aclib/releases/download/v1.3.2/aclib-1.3.2.tar.gz"
# )

# Non-existent file
with pytest.raises(SystemExit) as e:
Expand All @@ -103,17 +98,17 @@ def test_download_archive(ensure_in_tests_dir, tmpdir):
"requests.get", side_effect=RequestException("Failed Request")
) as mock_request_post:
with pytest.raises(RequestException) as e:
download_archive(str(tmpdir), "toricvarieties")
download_archive(str(tmpdir), "unipot") # FIXME??? is this *supposed* to fail???
assert e.type == RequestException

download_archive(str(tmpdir), "aclib")
assert exists(join(str(tmpdir), archive_name("aclib")))

download_archive(str(tmpdir), "toricvarieties")
assert exists(join(str(tmpdir), archive_name("toricvarieties")))
download_archive(str(tmpdir), "unipot")
assert exists(join(str(tmpdir), archive_name("unipot")))

download_archive(str(tmpdir), "toricvarieties")
assert exists(join(str(tmpdir), archive_name("toricvarieties")))
download_archive(str(tmpdir), "unipot")
assert exists(join(str(tmpdir), archive_name("unipot")))

with pytest.raises(SystemExit) as e:
download_archive(str(tmpdir), "notapackagename")
Expand All @@ -122,5 +117,5 @@ def test_download_archive(ensure_in_tests_dir, tmpdir):


def test_main(ensure_in_tests_dir):
main(["toricvarieties", "aclib"])
main(["unipot", "aclib"])
shutil.rmtree("_archives")
2 changes: 0 additions & 2 deletions tools/tests/test_scan_for_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ def test_exec_gap(ensure_in_tests_dir):
def test_scan_for_one_update(ensure_in_tests_dir, tmpdir):
scan_for_one_update(str(tmpdir), "aclib")
assert exists(join(str(tmpdir), "aclib.g"))
scan_for_one_update(str(tmpdir), "toricvarieties")
assert not exists(join(str(tmpdir), "toricvarieties.g"))
scan_for_one_update(str(tmpdir), "atlasrep")
assert exists(join(str(tmpdir), "atlasrep.g"))

Expand Down

0 comments on commit d809470

Please sign in to comment.