Skip to content

Commit

Permalink
Support PEP 621 (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed May 3, 2022
1 parent c713ee1 commit 52624ab
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 68 deletions.
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ repos:
- id: pyupgrade
args: [--py37-plus]

- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.20.1
hooks:
- id: setup-cfg-fmt

- repo: https://github.com/hadialqattan/pycln
rev: v1.3.2
hooks:
Expand Down
57 changes: 56 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,62 @@
[build-system]
requires = ["setuptools>=42"]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"

[project]
name = "nox"
version = "2022.1.7"
description = "Flexible test automation."
readme = "README.md"
requires-python = ">=3.7"
license = { file = "LICENSE" }
authors = [{ name = "Alethea Katherine Flowers" }, { email = "me@thea.codes" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Testing",
]
keywords = ["testing", "automation", "tox"]
dependencies = [
"argcomplete>=1.9.4,<3.0",
"colorlog>=2.6.1,<7.0.0",
"packaging>=20.9",
"py>=1.4.0,<2.0.0",
"virtualenv>=14.0.0",
'importlib-metadata; python_version<"3.8"',
'typing-extensions>=3.7.4; python_version<"3.8"',
]

[project.optional-dependencies]
tox_to_nox = ["jinja2", "tox"]

[project.urls]
homepage = "https://github.com/wntrblm/nox"
documentation = "https://nox.thea.codes"
repository = "https://github.com/wntrblm/nox"
bug-tracker = "https://github.com/wntrblm/nox/issues"

[project.scripts]
nox = "nox.__main__:main"
tox-to-nox = "nox.tox_to_nox:main"

[tool.setuptools]
zip-safe = false
include-package-data = true
package-data = { "nox" = ["py.typed"] }

[tool.isort]
profile = "black"

Expand Down
62 changes: 0 additions & 62 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,65 +1,3 @@
[metadata]
name = nox
version = 2022.1.7
description = Flexible test automation.
long_description = file: README.md
long_description_content_type = text/markdown
url = https://nox.thea.codes
author = Alethea Katherine Flowers
author_email = me@thea.codes
license = Apache-2.0
license_file = LICENSE
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Operating System :: MacOS
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Software Development :: Testing
keywords = testing automation tox
project_urls =
Documentation = https://nox.thea.codes
Source Code = https://github.com/wntrblm/nox
Bug Tracker = https://github.com/wntrblm/nox/issues

[options]
packages =
nox
install_requires =
argcomplete>=1.9.4,<3.0
colorlog>=2.6.1,<7.0.0
packaging>=20.9
py>=1.4.0,<2.0.0
virtualenv>=14.0.0
importlib-metadata;python_version < '3.8'
typing-extensions>=3.7.4;python_version < '3.8'
python_requires = >=3.7
include_package_data = True
zip_safe = False

[options.entry_points]
console_scripts =
nox = nox.__main__:main
tox-to-nox = nox.tox_to_nox:main [tox_to_nox]

[options.extras_require]
tox_to_nox =
jinja2
tox

[options.package_data]
nox = py.typed

[flake8]
extend-ignore = E501, W503, E203, B950
extend-select = B9
Expand Down

0 comments on commit 52624ab

Please sign in to comment.