Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved the metadata into setup.cfg. #179

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
pip install .[qa]
- name: Run Flake8
# Ignore F401, which are unused imports. flake8 is a primitive tool and is sometimes wrong.
run: flake8 --extend-ignore F401 parso test/*.py setup.py scripts/
run: flake8 --extend-ignore F401 parso test/*.py scripts/
- name: Run Mypy
run: mypy parso
test:
Expand Down
77 changes: 77 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[build-system]
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"

[project]
name = "parso"
authors = [{name = "David Halter", email = "[email protected]"}]
maintainers = [{name = "David Halter", email = "[email protected]"}]
license = {text = "MIT"}
description = "A Python Parser"
keywords = ["python", "parser", "parsing"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Plugins",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Editors :: Integrated Development Environments (IDE)",
"Topic :: Utilities",
"Typing :: Typed",
]
urls = {Homepage = "https://github.com/davidhalter/parso"}
dynamic = ["readme", "version"]
requires-python = ">=3.6"

[project.optional-dependencies]
testing = ["pytest<6.0.0", "docopt"]
qa = ["flake8==3.8.3", "mypy==0.782"]

[tool.setuptools]
include-package-data = true
platforms = ["any"]

[tool.setuptools.packages.find]
exclude = [
"test",
"test.*",
]
namespaces = false

[tool.setuptools.package-data]
parso = [
"python/grammar*.txt",
"py.typed",
"*.pyi",
"**/*.pyi",
]

[tool.setuptools.dynamic]
readme = {file = ["README.rst", "CHANGELOG.rst"]}

[tool.setuptools_scm]

[tool.distutils.bdist_wheel]
universal = 1

[tool.flake8]
max-line-length = "100"
ignore = """
E722,
E226,
W503,"""

[tool.mypy]
disallow_subclassing_any = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unused_configs = true
warn_unreachable = true
strict_equality = true
25 changes: 0 additions & 25 deletions setup.cfg

This file was deleted.

58 changes: 0 additions & 58 deletions setup.py

This file was deleted.