Skip to content

Commit

Permalink
Merge pull request #125 from QCoDeS/versioneer
Browse files Browse the repository at this point in the history
Convert version management from Versioneer to versioningit
  • Loading branch information
jenshnielsen authored Apr 9, 2022
2 parents e64f41d + 769b996 commit 1038d28
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 2,372 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[build-system]
requires = [
"setuptools >= 56.0",
"wheel >= 0.29.0",
"versioningit >= 1.1.0"
]
build-backend = 'setuptools.build_meta'

[tool.mypy]
strict_optional = true
disallow_untyped_decorators = true
ignore_missing_imports = true
show_column_numbers = true
warn_unused_ignores = true
warn_unused_configs = true
warn_redundant_casts = true
show_error_codes = true

[[tool.mypy.overrides]]
module = [
"qcodes_contrib_drivers.drivers.Spectrum.pyspcm"
]
ignore_errors = true

[tool.versioningit]
default-version = "0.0"

[tool.versioningit.format]
distance = "{next_version}.dev{distance}+{branch}.{vcs}{rev}"
dirty = "{next_version}.dev{distance}+{branch}.{vcs}{rev}.dirty"
distance-dirty = "{next_version}.dev{distance}+{branch}.{vcs}{rev}.dirty"

[tool.versioningit.vcs]
method = "git"
match = ["v*"]

[tool.versioningit.onbuild]
source-file = "qcodes_contrib_drivers/_version.py"
build-file = "qcodes_contrib_drivers/_version.py"
4 changes: 1 addition & 3 deletions qcodes_contrib_drivers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from ._version import __version__
Loading

0 comments on commit 1038d28

Please sign in to comment.