-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use setuptools_scm for version handling.
This includes manual configuration to avoid pypa/setuptools-scm#411. Also `import setuptools_scm` directly in `setup.py` to make sure that `0.0.0` is not used as version, see pypa/setuptools-scm#386.
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 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,7 +1,21 @@ | ||
[build-system] | ||
requires = [ | ||
'setuptools >= 42', | ||
'wheel', | ||
'setuptools_scm[toml]>=3.4', | ||
] | ||
|
||
[tool.black] | ||
line-ngth = 80 | ||
target-version = ['py37'] | ||
|
||
[tool.isort] | ||
line_length = 80 | ||
known_third_party = ['absl', 'construct', 'hexdump', 'pcapng'] | ||
|
||
[tool.setuptools_scm] | ||
# Until a new version of setuptools_scm with a fix for the following issue is | ||
# released, override the default configuration here. | ||
# https://github.com/pypa/setuptools_scm/issues/411 | ||
tag_regex = '^(?:[\w-]+-)?(?P<version>[vV]?\d+(?:\.\d+){0,2}[^\+]*)(?:\+.*)?$' | ||
git_describe_command = 'git describe --dirty --tags --long --match *[0-9]*' |
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