Skip to content

Commit

Permalink
Bump pyproject-parser version.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed May 18, 2022
1 parent fbdac9c commit 758ef46
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 19 deletions.
4 changes: 2 additions & 2 deletions __pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__all__ = ["extras_require"]

extras_require = {
"readme": ["docutils==0.16", "pyproject-parser[readme]>=0.6.0b2"],
"readme": ["docutils==0.16", "pyproject-parser[readme]>=0.6.0"],
"editable": ["editables>=0.2"],
"all": ["docutils==0.16", "editables>=0.2", "pyproject-parser[readme]>=0.6.0b2"]
"all": ["docutils==0.16", "editables>=0.2", "pyproject-parser[readme]>=0.6.0"]
}
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ Documentation = "https://whey.readthedocs.io/en/latest"
whey = "whey.__main__:main"

[project.optional-dependencies]
readme = [ "docutils==0.16", "pyproject-parser[readme]>=0.6.0b2",]
readme = [ "docutils==0.16", "pyproject-parser[readme]>=0.6.0",]
editable = [ "editables>=0.2",]
all = [ "docutils==0.16", "editables>=0.2", "pyproject-parser[readme]>=0.6.0b2",]
all = [ "docutils==0.16", "editables>=0.2", "pyproject-parser[readme]>=0.6.0",]

[tool.mkrecipe]
conda-channels = [ "conda-forge", "domdfcoding",]
Expand Down
2 changes: 1 addition & 1 deletion repo_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ entry_points:

extras_require:
readme:
- pyproject-parser[readme]>=0.6.0b2
- pyproject-parser[readme]>=0.6.0
- docutils==0.16
editable:
- editables>=0.2
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ domdf-python-tools>=2.8.0
handy-archives>=0.1.0
natsort>=7.1.1
packaging>=20.9
pyproject-parser>=0.6.0b2
pyproject-parser>=0.6.0
shippinglabel>=0.16.0
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
git+https://github.com/repo-helper/pyproject-examples@parserv6
git+https://github.com/repo-helper/pyproject-examples
coincidence>=0.2.0
coverage>=5.1
coverage-pyver-pragma>=0.2.1
Expand Down
42 changes: 30 additions & 12 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,55 +369,73 @@ def test_build_additional_files(
[
pytest.param(
'[project]\nname = "spam"',
textwrap.dedent("""\
textwrap.dedent(
"""\
BadConfigError: The 'project.version' field must be provided.
Use '--traceback' to view the full traceback.
Aborted!"""),
Aborted!"""
),
id="no_version"
),
pytest.param(
'[project]\n\nversion = "2020.0.0"',
textwrap.dedent("""\
textwrap.dedent(
"""\
BadConfigError: The 'project.name' field must be provided.
Use '--traceback' to view the full traceback.
Aborted!"""),
Aborted!"""
),
id="no_name"
),
pytest.param(
'[project]\ndynamic = ["name"]',
textwrap.dedent("""\
textwrap.dedent(
"""\
BadConfigError: The 'project.name' field may not be dynamic.
Use '--traceback' to view the full traceback.
Aborted!"""),
Aborted!"""
),
id="dynamic_name"
),
pytest.param(
'[project]\nname = "???????12345=============☃"\nversion = "2020.0.0"',
re.escape(textwrap.dedent("""\
re.escape(
textwrap.dedent(
"""\
BadConfigError: The value '???????12345=============☃' for 'project.name' is invalid.
Documentation: https://whey.readthedocs.io/en/latest/configuration.html#tconf-project.name
Use '--traceback' to view the full traceback.
Aborted!""")),
Aborted!"""
)
),
id="bad_name"
),
pytest.param(
'[project]\nname = "spam"\nversion = "???????12345=============☃"',
re.escape(textwrap.dedent("""\
re.escape(
textwrap.dedent(
"""\
InvalidVersion: '???????12345=============☃'
Note: versions must follow PEP 440
Documentation: https://peps.python.org/pep-0440/
Use '--traceback' to view the full traceback.
Aborted!""")),
Aborted!"""
)
),
id="bad_version"
),
pytest.param(
f'{MINIMAL_CONFIG}\nrequires-python = "???????12345=============☃"',
re.escape(textwrap.dedent("""\
re.escape(
textwrap.dedent(
"""\
InvalidSpecifier: '???????12345=============☃'
Note: specifiers must follow PEP 508
Documentation: https://peps.python.org/pep-0508/
Use '--traceback' to view the full traceback.
Aborted!""")),
Aborted!"""
)
),
id="bad_requires_python"
),
pytest.param(
Expand Down

0 comments on commit 758ef46

Please sign in to comment.