Skip to content

Commit a1a3306

Browse files
author
Ernesto Perez Amigo
committed
Fix problem with setup and final versions str
1 parent 0f3c2f3 commit a1a3306

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

+4
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@
44

55
from setuptools import setup
66

7+
78
_version_re = re.compile(r'VERSION\s+=\s+(.*)')
89

910
with open('graphene_django_extras/__init__.py', 'rb') as f:
1011
version = ast.literal_eval(_version_re.search(
1112
f.read().decode('utf-8')).group(1))
1213
version = ".".join([str(v) for v in version])
14+
version = version.split('.final')[0] if 'final' in version else version
15+
1316

1417
def get_packages():
1518
return [dirpath
1619
for dirpath, dirnames, filenames in os.walk('graphene_django_extras')
1720
if os.path.exists(os.path.join(dirpath, '__init__.py'))]
1821

22+
1923
setup(
2024
name='graphene-django-extras',
2125
version=version,

0 commit comments

Comments
 (0)