-
-
Notifications
You must be signed in to change notification settings - Fork 541
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is another modern build backend. The patch deletes `setup.py` from the repository, and adds configuration for `hatchling` and declares PEP 621 metadata in `pyproject.toml`. It does not attempt to change the previously existing behavior.
- Loading branch information
Showing
3 changed files
with
50 additions
and
33 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[build.targets.sdist] | ||
include = [ | ||
'hooks/*.py', | ||
] | ||
exclude = [ | ||
'hooks/*.sh', | ||
] | ||
|
||
[build.targets.wheel] | ||
packages = [ | ||
'hooks/', | ||
] |
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,38 @@ | ||
[build-system] | ||
requires = [ | ||
'hatchling', | ||
] | ||
build-backend = 'hatchling.build' | ||
|
||
[project] | ||
name = 'pre-commit-terraform' | ||
version = '0.0.0' | ||
# version_format = '{tag}+{gitsha}' | ||
classifiers = [ | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
] | ||
description = 'Pre-commit hooks for terraform_docs_replace' | ||
dependencies = [ | ||
'setuptools-git-version', | ||
] | ||
|
||
[[project.authors]] | ||
name = 'Contributors' # FIXME | ||
# email = 'степан@криївка.укр' | ||
|
||
[project.urls] | ||
'GitHub: repo' = 'https://github.com/antonbabenko/pre-commit-terraform' | ||
|
||
[project.readme] | ||
file = 'README.md' | ||
content-type = 'text/markdown' | ||
|
||
[project.scripts] | ||
terraform_docs_replace = 'hooks.terraform_docs_replace:main' |