Skip to content

Commit

Permalink
Revert pyparsing constraint (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
moyiz committed Nov 2, 2021
1 parent 256c64b commit 8cb9dbf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: python -m pip install --upgrade build

- name: Build
run: python -m build
run: pyproject-build

- name: Archive files
uses: actions/upload-artifact@v1
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def lint(session):

# Check the distribution
session.install("build", "twine")
session.run("python", "-m", "build")
session.run("pyproject-build")
session.run("twine", "check", *glob.glob("dist/*"))


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
author=about["__author__"],
author_email=about["__email__"],
python_requires=">=3.6",
install_requires=["pyparsing>=2.0.2,<3"], # Needed to avoid issue #91
install_requires=["pyparsing>=2.0.2"], # Needed to avoid issue #91
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand Down
4 changes: 3 additions & 1 deletion tests/test_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,6 @@ def test_sys_platform_linux_in(self):
def test_parseexception_error_msg(self):
with pytest.raises(InvalidRequirement) as e:
Requirement("toto 42")
assert "Expected stringEnd" in str(e.value)
assert "Expected stringEnd" in str(e.value) or (
"Expected string_end" in str(e.value) # pyparsing>=3.0.0
)

0 comments on commit 8cb9dbf

Please sign in to comment.