Browse Source

Support PEP 621 (#616)

pull/617/head
Tom Fleet 2 months ago committed by GitHub
parent
commit
52624ab019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      .pre-commit-config.yaml
  2. 57
      pyproject.toml
  3. 62
      setup.cfg

5
.pre-commit-config.yaml

@ -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:

57
pyproject.toml

@ -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"

62
setup.cfg

@ -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

Loading…
Cancel
Save