Skip to content

Commit

Permalink
tests: fix for PEP 685 in packaging 22 (#550)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii authored Dec 13, 2022
1 parent 656c487 commit 76d90b9
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tests/test_projectbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ def read_text(self, filename):
Metadata-Version: 2.2
Name: extras_dep
Version: 1.0.0
Provides-Extra: extra_without_associated_deps
Provides-Extra: extra_with_unmet_deps
Requires-Dist: unmet_dep; extra == 'extra_with_unmet_deps'
Provides-Extra: extra_with_met_deps
Requires-Dist: extras_dep; extra == 'extra_with_met_deps'
Provides-Extra: recursive_extra_with_unmet_deps
Requires-Dist: recursive_dep; extra == 'recursive_extra_with_unmet_deps'
Provides-Extra: extra-without-associated-deps
Provides-Extra: extra-with_unmet-deps
Requires-Dist: unmet_dep; extra == 'extra-with-unmet-deps'
Provides-Extra: extra-with-met-deps
Requires-Dist: extras_dep; extra == 'extra-with-met-deps'
Provides-Extra: recursive-extra-with-unmet-deps
Requires-Dist: recursive_dep; extra == 'recursive-extra-with-unmet-deps'
"""
).strip()

Expand Down Expand Up @@ -142,27 +142,27 @@ def read_text(self, filename):
('requireless_dep', None),
('extras_dep[undefined_extra]', None),
# would the wheel builder filter this out?
('extras_dep[extra_without_associated_deps]', None),
('extras_dep[extra-without-associated-deps]', None),
(
'extras_dep[extra_with_unmet_deps]',
('extras_dep[extra_with_unmet_deps]', 'unmet_dep; extra == "extra_with_unmet_deps"'),
'extras_dep[extra-with-unmet-deps]',
('extras_dep[extra-with-unmet-deps]', 'unmet_dep; extra == "extra-with-unmet-deps"'),
),
(
'extras_dep[recursive_extra_with_unmet_deps]',
'extras_dep[recursive-extra-with-unmet-deps]',
(
'extras_dep[recursive_extra_with_unmet_deps]',
'recursive_dep; extra == "recursive_extra_with_unmet_deps"',
'extras_dep[recursive-extra-with-unmet-deps]',
'recursive_dep; extra == "recursive-extra-with-unmet-deps"',
'recursive_unmet_dep',
),
),
('extras_dep[extra_with_met_deps]', None),
('extras_dep[extra-with-met-deps]', None),
('missing_dep; python_version>"10"', None),
('missing_dep; python_version<="1"', None),
('missing_dep; python_version>="1"', ('missing_dep; python_version >= "1"',)),
('extras_dep == 1.0.0', None),
('extras_dep == 2.0.0', ('extras_dep==2.0.0',)),
('extras_dep[extra_without_associated_deps] == 1.0.0', None),
('extras_dep[extra_without_associated_deps] == 2.0.0', ('extras_dep[extra_without_associated_deps]==2.0.0',)),
('extras_dep[extra-without-associated-deps] == 1.0.0', None),
('extras_dep[extra-without-associated-deps] == 2.0.0', ('extras_dep[extra-without-associated-deps]==2.0.0',)),
('prerelease_dep >= 1.0.0', None),
('circular_dep', None),
],
Expand Down

0 comments on commit 76d90b9

Please sign in to comment.