mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Changed version management to bump2version
This commit is contained in:
parent
ebefa59f6e
commit
035fdf693e
2 changed files with 23 additions and 15 deletions
|
|
@ -1,19 +1,6 @@
|
|||
__version_info__ = {"major": 1, "minor": 8, "micro": 0, "releaselevel": "final", "serial": 1}
|
||||
"""Django categories."""
|
||||
__version__ = "1.8.0"
|
||||
|
||||
|
||||
def get_version(short=False):
|
||||
assert __version_info__["releaselevel"] in ("alpha", "beta", "final")
|
||||
vers = [
|
||||
"%(major)i.%(minor)i" % __version_info__,
|
||||
]
|
||||
if __version_info__["micro"] and not short:
|
||||
vers.append(".%(micro)i" % __version_info__)
|
||||
if __version_info__["releaselevel"] != "final" and not short:
|
||||
vers.append("%s%i" % (__version_info__["releaselevel"][0], __version_info__["serial"]))
|
||||
return "".join(vers)
|
||||
|
||||
|
||||
__version__ = get_version()
|
||||
|
||||
|
||||
default_app_config = "categories.apps.CategoriesConfig"
|
||||
|
|
|
|||
21
setup.cfg
21
setup.cfg
|
|
@ -1,5 +1,6 @@
|
|||
[metadata]
|
||||
name = django-categories
|
||||
version = 1.8.0
|
||||
description = A way to handle one or more hierarchical category trees in django.
|
||||
long_description = file:README.md
|
||||
long_description_content_type = "text/markdown"
|
||||
|
|
@ -36,3 +37,23 @@ ignore=DAR402
|
|||
|
||||
[bdist_wheel]
|
||||
universal = 1
|
||||
|
||||
[bumpversion]
|
||||
current_version = 1.8.0
|
||||
commit = True
|
||||
tag = False
|
||||
tag_name = {new_version}
|
||||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\+\w+-(?P<dev>\d+))?
|
||||
serialize =
|
||||
{major}.{minor}.{patch}+{$USER}-{dev}
|
||||
{major}.{minor}.{patch}
|
||||
message = Version updated from {current_version} to {new_version}
|
||||
|
||||
[bumpversion:part:dev]
|
||||
|
||||
[bumpversion:file:setup.cfg]
|
||||
|
||||
[bumpversion:file:categories/__init__.py]
|
||||
|
||||
[bumpversion:file:CHANGELOG.md]
|
||||
search = Unreleased
|
||||
|
|
|
|||
Loading…
Reference in a new issue