Skip to content

Commit 1564c12

Browse files
committed
use vcversioner
1 parent 6824541 commit 1564c12

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

docs/conf.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
import sys, os
1515
sys.path.insert(0, os.path.abspath(".."))
1616

17+
from flask_pymongo._version import __version__
18+
1719
# If extensions (or modules to document with autodoc) are in another directory,
1820
# add these directories to sys.path here. If the directory is relative to the
1921
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -48,9 +50,11 @@
4850
# |version| and |release|, also used in various other places throughout the
4951
# built documents.
5052
#
51-
version = "0.5.2"
53+
# convert "x.y.z.devN" => "x.y"
54+
version = ".".join(__version__.split(".", 2)[:2])
55+
5256
# The full version, including alpha/beta/rc tags.
53-
release = "0.5.2"
57+
release = __version__
5458

5559
# The language for content autogenerated by Sphinx. Refer to documentation
5660
# for a list of supported languages.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
setup(
2828
name="Flask-PyMongo",
29-
version="0.5.2",
3029
url="http://flask-pymongo.readthedocs.org/",
3130
download_url="https://github.com/dcrosta/flask-pymongo/tags",
3231
license="BSD",
@@ -56,4 +55,6 @@
5655
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
5756
"Topic :: Software Development :: Libraries :: Python Modules"
5857
],
58+
setup_requires=["vcversioner"],
59+
vcversioner={"version_module_paths": ["flask_pymongo/_version.py"]},
5960
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy