forked from ctypesgen/ctypesgen
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate setuptools configuration inside pyproject.toml (ctypesgen#198)
* Migrate setuptools configuration inside pyproject.toml * Remove mention of setup.py commands which are to be avoided * Use version of setuptools and setuptools_scm recommended by setuptools_scm * setuptools_scm 8.0.0 dropped support for EOL Python 3.7. Use latest from setuptools_scm 7 release * Use `python -m build` in tox commands for packaging * Use only `python -m build` As recommended in https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ * Use only `python -m build` for Travis configuration
- Loading branch information
Showing
6 changed files
with
57 additions
and
63 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,56 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=44", | ||
"wheel", | ||
"setuptools_scm[toml]>=3.4.3" | ||
] | ||
requires = ["setuptools>=64", "setuptools_scm>=7.1"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ctypesgen" | ||
description = "Python wrapper generator for ctypes" | ||
license = { text = "BSD-2-Clause" } | ||
classifiers = [ | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Development Status :: 4 - Beta", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Code Generators", | ||
"Topic :: Software Development :: Pre-processors", | ||
"Topic :: Software Development :: Build Tools", | ||
"Environment :: Console", | ||
] | ||
dynamic = ["readme", "version"] | ||
requires-python = ">=3.7" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/ctypesgen/ctypesgen" | ||
Repository = "https://github.com/ctypesgen/ctypesgen.git" | ||
Issues = "https://github.com/ctypesgen/ctypesgen/issues" | ||
Changelog = "https://github.com/ctypesgen/ctypesgen/blob/master/CHANGELOG.md" | ||
|
||
[project.scripts] | ||
ctypesgen = "ctypesgen.__main__:main" | ||
|
||
[tool.setuptools] | ||
package-dir = {} | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["tests*"] | ||
namespaces = false | ||
|
||
[tool.setuptools.dynamic.readme] | ||
file = ["README.md", "LICENSE", "CHANGELOG.md"] | ||
content-type = "text/markdown" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "ctypesgen/VERSION" | ||
write_to_template = "{version}" | ||
write_to = "ctypesgen/VERSION" | ||
write_to_template = "{version}" | ||
|
||
[tool.black] | ||
line-length = 100 | ||
exclude='.*tab.py|ctypesgen/parser/cgrammar.py|ctypesgen/parser/lex.py|ctypesgen/parser/yacc.py' | ||
target-version = [ "py37", "py38", "py39"] | ||
|
||
line-length = 100 | ||
exclude = '.*tab.py|ctypesgen/parser/cgrammar.py|ctypesgen/parser/lex.py|ctypesgen/parser/yacc.py' | ||
target-version = ["py37", "py38", "py39"] |
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