Skip to content

Commit

Permalink
Merge pull request #52 from amorenoz/version
Browse files Browse the repository at this point in the history
Add git-based versioning using setuptools_scm
  • Loading branch information
amorenoz authored Oct 4, 2021
2 parents 124cc0e + 350590b commit 267b861
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 54 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,6 @@ dmypy.json

# Pyre type checker
.pyre/

# Version file
ovs_dbg/_version.py
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ flake8 = "*"
pytest = "*"
sphinx-rtd-theme = "*"
black = "*"
setuptools_scm = "*"

[pipenv]
allow_prereleases = true
110 changes: 59 additions & 51 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ testpaths=["tests"]

[build-system]
requires = [
"setuptools>=42",
"wheel"
"setuptools>=45",
"wheel",
"setuptools_scm>=6.2",
]

[tool.setuptools_scm]
write_to = "ovs_dbg/_version.py"

3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

setup_requirements = [
"pytest-runner",
"setuptools_scm",
]

test_requirements = [
Expand Down Expand Up @@ -60,6 +61,6 @@
project_urls={
"Source": "https://github.com/amorenoz/ovs-dbg",
},
version="0.0.10",
zip_safe=False,
use_scm_version=True,
)

0 comments on commit 267b861

Please sign in to comment.