File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 13
13
14
14
import sys , os
15
15
16
+ from django_filters import __version__
17
+
16
18
# If extensions (or modules to document with autodoc) are in another directory,
17
19
# add these directories to sys.path here. If the directory is relative to the
18
20
# documentation root, use os.path.abspath to make it absolute, like shown here.
48
50
# built documents.
49
51
#
50
52
# The short X.Y version.
51
- version = '2.3'
53
+ version = __version__
52
54
# The full version, including alpha/beta/rc tags.
53
- release = '2.3.0'
55
+ release = __version__
54
56
55
57
# The language for content autogenerated by Sphinx. Refer to documentation
56
58
# for a list of supported languages.
Original file line number Diff line number Diff line change 2
2
import sys
3
3
from setuptools import setup , find_packages
4
4
5
+ from django_filters import __version__
6
+
5
7
f = open ('README.rst' )
6
8
readme = f .read ()
7
9
f .close ()
8
10
9
- version = '2.3.0'
10
-
11
11
if sys .argv [- 1 ] == 'publish' :
12
12
if os .system ("pip freeze | grep wheel" ):
13
13
print ("wheel not installed.\n Use `pip install wheel`.\n Exiting." )
18
18
os .system ("python setup.py sdist bdist_wheel" )
19
19
os .system ("twine upload dist/*" )
20
20
print ("You probably want to also tag the version now:" )
21
- print (" git tag -a %s -m 'version %s'" % (version , version ))
21
+ print (" git tag -a %s -m 'version %s'" % (__version__ , __version__ ))
22
22
print (" git push --tags" )
23
23
sys .exit ()
24
24
25
25
setup (
26
26
name = 'django-filter' ,
27
- version = version ,
27
+ version = __version__ ,
28
28
description = ('Django-filter is a reusable Django application for allowing'
29
29
' users to filter querysets dynamically.' ),
30
30
long_description = readme ,
You can’t perform that action at this time.
0 commit comments