-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: do not convert to
pyproject.toml
in Python 3.6
- Loading branch information
Showing
8 changed files
with
279 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,115 +1,10 @@ | ||
[build-system] | ||
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools>=58.0", | ||
"setuptools>=36.2.1", # environment markers | ||
"setuptools_scm", | ||
"wheel", | ||
] | ||
|
||
[project] | ||
authors = [ | ||
{name = "Common Partial Wave Analysis", email = "[email protected]"}, | ||
] | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python", | ||
"Typing :: Typed", | ||
] | ||
dependencies = [ | ||
"PyYAML", | ||
"attrs >=20.1.0", # https://www.attrs.org/en/stable/changelog.html#id82 | ||
"html2text", | ||
"ini2toml", | ||
"nbformat", | ||
"pip-tools", | ||
"pre-commit", | ||
"ruamel.yaml", # better YAML dumping | ||
"tomlkit", | ||
] | ||
description = "Pre-commit hooks that ensure that ComPWA repositories have a similar developer set-up" | ||
dynamic = ["version"] | ||
license = {text = "BSD 3-Clause License"} | ||
maintainers = [{email = "[email protected]"}] | ||
name = "repo-maintenance" | ||
requires-python = ">=3.6" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"labels", | ||
"repo-maintenance[sty]", | ||
"repo-maintenance[test]", | ||
"tox >=1.9", # for skip_install, use_develop | ||
] | ||
format = [ | ||
"black", | ||
] | ||
lint = [ | ||
"radon", | ||
"repo-maintenance[mypy]", | ||
'ruff; python_version >="3.7.0"', | ||
] | ||
mypy = [ | ||
"mypy", | ||
"types-PyYAML", | ||
"types-setuptools", | ||
"types-toml", | ||
] | ||
sty = [ | ||
"pre-commit >=1.4.0", | ||
"repo-maintenance[format]", | ||
"repo-maintenance[lint]", | ||
"repo-maintenance[test]", # for pytest type hints | ||
] | ||
test = [ | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-xdist", | ||
] | ||
|
||
[project.readme] | ||
content-type = "text/markdown" | ||
file = "README.md" | ||
|
||
[project.scripts] | ||
check-dev-files = "repoma.check_dev_files:main" | ||
colab-toc-visible = "repoma.colab_toc_visible:main" | ||
fix-nbformat-version = "repoma.fix_nbformat_version:main" | ||
format-setup-cfg = "repoma.format_setup_cfg:main" | ||
pin-nb-requirements = "repoma.pin_nb_requirements:main" | ||
repoma-self-check = "repoma.self_check:main" | ||
set-nb-cells = "repoma.set_nb_cells:main" | ||
|
||
[project.urls] | ||
Source = "https://github.com/ComPWA/repo-maintenance" | ||
Tracker = "https://github.com/ComPWA/repo-maintenance/issues" | ||
|
||
[tool.setuptools] | ||
include-package-data = false | ||
license-files = ["LICENSE"] | ||
package-dir = {"" = "src"} | ||
|
||
[tool.setuptools.package-data] | ||
repoma = [ | ||
".github/*", | ||
".github/**/*", | ||
".template/*", | ||
".template/.*", | ||
"py.typed", | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
namespaces = false | ||
where = ["src"] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/repoma/version.py" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
[metadata] | ||
name = repo-maintenance | ||
author = Common Partial Wave Analysis | ||
author_email = [email protected] | ||
maintainer_email = [email protected] | ||
description = Pre-commit hooks that ensure that ComPWA repositories have a similar developer set-up | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
project_urls = | ||
Tracker = https://github.com/ComPWA/repo-maintenance/issues | ||
Source = https://github.com/ComPWA/repo-maintenance | ||
license = BSD 3-Clause License | ||
license_files = LICENSE | ||
classifiers = | ||
Development Status :: 3 - Alpha | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: BSD License | ||
Natural Language :: English | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
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 | ||
Typing :: Typed | ||
|
||
[options] | ||
python_requires = >=3.6 | ||
setup_requires = | ||
setuptools_scm | ||
install_requires = | ||
attrs >=20.1.0 # https://www.attrs.org/en/stable/changelog.html#id82 | ||
html2text | ||
ini2toml | ||
nbformat | ||
pip-tools | ||
pre-commit | ||
PyYAML | ||
ruamel.yaml # better YAML dumping | ||
tomlkit | ||
packages = find: | ||
package_dir = | ||
=src | ||
|
||
[options.extras_require] | ||
test = | ||
pytest | ||
pytest-cov | ||
pytest-xdist | ||
format = | ||
black | ||
mypy = | ||
mypy | ||
types-PyYAML | ||
types-setuptools | ||
types-toml | ||
lint = | ||
%(mypy)s | ||
radon | ||
ruff; python_version >="3.7.0" | ||
sty = | ||
%(format)s | ||
%(lint)s | ||
%(test)s # for pytest type hints | ||
pre-commit >=1.4.0 | ||
dev = | ||
%(sty)s | ||
%(test)s | ||
labels | ||
tox >=1.9 # for skip_install, use_develop | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
check-dev-files = repoma.check_dev_files:main | ||
colab-toc-visible = repoma.colab_toc_visible:main | ||
fix-nbformat-version = repoma.fix_nbformat_version:main | ||
format-setup-cfg = repoma.format_setup_cfg:main | ||
pin-nb-requirements = repoma.pin_nb_requirements:main | ||
repoma-self-check = repoma.self_check:main | ||
set-nb-cells = repoma.set_nb_cells:main | ||
|
||
[options.packages.find] | ||
where = src | ||
|
||
[options.package_data] | ||
repoma = | ||
.github/* | ||
.github/**/* | ||
.template/* | ||
.template/.* | ||
py.typed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.