We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f3c2f3 commit a1a3306Copy full SHA for a1a3306
setup.py
@@ -4,18 +4,22 @@
4
5
from setuptools import setup
6
7
+
8
_version_re = re.compile(r'VERSION\s+=\s+(.*)')
9
10
with open('graphene_django_extras/__init__.py', 'rb') as f:
11
version = ast.literal_eval(_version_re.search(
12
f.read().decode('utf-8')).group(1))
13
version = ".".join([str(v) for v in version])
14
+ version = version.split('.final')[0] if 'final' in version else version
15
16
17
def get_packages():
18
return [dirpath
19
for dirpath, dirnames, filenames in os.walk('graphene_django_extras')
20
if os.path.exists(os.path.join(dirpath, '__init__.py'))]
21
22
23
setup(
24
name='graphene-django-extras',
25
version=version,
0 commit comments