Setup bumpversion

This commit is contained in:
Alexander Engelsberger 2021-05-10 15:24:03 +02:00
parent 49100f43f5
commit 6873927349
3 changed files with 13 additions and 8 deletions

11
.bumpversion.cfg Normal file
View File

@ -0,0 +1,11 @@
[bumpversion]
current_version = 0.0.0
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
serialize =
{major}.{minor}.{patch}
[bumpversion:file:setup.py]
[bumpversion:file:./prototorch/models/__init__.py]

View File

@ -5,9 +5,4 @@ from .glvq import GLVQ, GMLVQ, GRLVQ, LVQMLN, ImageGLVQ, SiameseGLVQ
from .neural_gas import NeuralGas
from .vis import *
VERSION_FALLBACK = "uninstalled_version"
try:
__version__ = version(__name__.replace(".", "-"))
except PackageNotFoundError:
__version__ = VERSION_FALLBACK
pass
__version__ = "0.0.0"

View File

@ -26,7 +26,7 @@ ALL = EXAMPLES + TESTS
setup(
name=safe_name("prototorch_" + PLUGIN_NAME),
use_scm_version=True,
version="0.0.0",
descripion=
"Pre-packaged prototype-based machine learning models using ProtoTorch and PyTorch-Lightning.",
long_description=long_description,
@ -36,7 +36,6 @@ setup(
download_url=DOWNLOAD_URL,
license="MIT",
install_requires=INSTALL_REQUIRES,
setup_requires=["setuptools_scm"],
extras_require={
"examples": EXAMPLES,
"tests": TESTS,