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

build: implement pep621 #900

Open
wants to merge 5 commits into
base: main
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
6 changes: 0 additions & 6 deletions .coveragerc

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ dist/
.tox
*.egg-info
*.py[cod]
src/
htmlcov
coverage.xml
.cache
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ include tasks.py
recursive-include invoke/completion *
recursive-include sites *
recursive-exclude sites/*/_build *
include dev-requirements.txt
recursive-include tests *
recursive-exclude * *.pyc *.pyo
recursive-exclude **/__pycache__ *
21 changes: 0 additions & 21 deletions dev-requirements.txt

This file was deleted.

115 changes: 115 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
[build-system]
requires = ["setuptools>=51.0.0"]
build-backend = "setuptools.build_meta"

[project]
name = "invoke"
version = "2.0.0"
description = "Pythonic task execution"
# keywords = ["automation", "task runner"]
authors = [{name="Jeff Forcier", email="[email protected]"}]
maintainers = [{name="Jeff Forcier", email="[email protected]"}]
requires-python = ">=3.6.2"
readme = "README.rst"
license = {file = "LICENSE"}
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Software Distribution",
"Topic :: System :: Systems Administration",
]

[project.optional-dependencies]
dev = [
# Invocations, for all sorts of things
"invocations>=3.0.1",
# Coverage!
"coverage[toml]>=6.2,<7",
"codecov==2.1.12",
# Docs
kuwv marked this conversation as resolved.
Show resolved Hide resolved
"releases>=2",
"alabaster==0.7.12",
# Testing
"tox>=3.20.1",
"pytest>=7",
"pytest-relaxed>=2",
"pytest-cov>=4",
# Linting
"pylint>=2.9.5",
# Formatting
# Flake8 5.x seems to have an odd importlib-metadata incompatibility?
"flake8>=4,<5",
"isort>=5.10.1",
"black>=22.8,<22.9",
# Debuggery
"icecream>=2.1",
# Publish
"twine>=1.15",
]

[project.scripts]
invoke = "invoke.main:program.run"
inv = "invoke.main:program.run"

[project.urls]
homepage = "http://www.pyinvoke.org/"
changelog = "https://www.pyinvoke.org/changelog.html"
documentation = "https://docs.pyinvoke.org"
repository = "https://github.com/pyinvoke/invoke"
issues = "https://github.com/pyinvoke/invoke/issues"
ci = "https://app.circleci.com/pipelines/github/pyinvoke/invoke"

[tool.isort]
profile = "black"
line_length = 79

[tool.black]
line-length = 79
include = '\.pyi?$'
exclude = '''
(
/(
| \.eggs
| \.git
| \.tox
| \.pytest_cache
| _build
| buck-out
| build
| dist
| vendor
)
)
'''

[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "*"
# addopts = "--doctest-modules"

[tool.coverage]
branch = true
include = [
"src/invoke/*",
"tests/*",
]
omit = "src/invoke/vendor/*"
3 changes: 0 additions & 3 deletions pytest.ini

This file was deleted.

77 changes: 0 additions & 77 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion sites/www/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ follow their instructions for cloning (or forking, then cloning, which is best
if you intend to contribute back) the repository there.

Once downloaded, install the repo itself + its development dependencies by
running ``pip install -r dev-requirements.txt``.
running ``pip install -e .[dev]``.


Submitting bug reports or patches
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.