File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 14
14
import sys , os
15
15
sys .path .insert (0 , os .path .abspath (".." ))
16
16
17
+ from flask_pymongo ._version import __version__
18
+
17
19
# If extensions (or modules to document with autodoc) are in another directory,
18
20
# add these directories to sys.path here. If the directory is relative to the
19
21
# documentation root, use os.path.abspath to make it absolute, like shown here.
48
50
# |version| and |release|, also used in various other places throughout the
49
51
# built documents.
50
52
#
51
- version = "0.5.2"
53
+ # convert "x.y.z.devN" => "x.y"
54
+ version = "." .join (__version__ .split ("." , 2 )[:2 ])
55
+
52
56
# The full version, including alpha/beta/rc tags.
53
- release = "0.5.2"
57
+ release = __version__
54
58
55
59
# The language for content autogenerated by Sphinx. Refer to documentation
56
60
# for a list of supported languages.
Original file line number Diff line number Diff line change 26
26
27
27
setup (
28
28
name = "Flask-PyMongo" ,
29
- version = "0.5.2" ,
30
29
url = "http://flask-pymongo.readthedocs.org/" ,
31
30
download_url = "https://github.com/dcrosta/flask-pymongo/tags" ,
32
31
license = "BSD" ,
56
55
"Topic :: Internet :: WWW/HTTP :: Dynamic Content" ,
57
56
"Topic :: Software Development :: Libraries :: Python Modules"
58
57
],
58
+ setup_requires = ["vcversioner" ],
59
+ vcversioner = {"version_module_paths" : ["flask_pymongo/_version.py" ]},
59
60
)
You can’t perform that action at this time.
0 commit comments