Skip to content

Commit c216cb1

Browse files
Added version.py so version number can be updated in one place
1 parent d990322 commit c216cb1

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

β€Žrandomuser/version.pyβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.4.0'

β€Žsetup.pyβ€Ž

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
from setuptools import setup, find_packages
22

3+
# Get __version__
4+
with open('./randomuser/version.py') as f:
5+
exec(f.read())
6+
37
setup(name='randomuser',
4-
version='0.3.1',
5-
description='Python class for generating random user data using https://randomuser.me API',
6-
url='http://connordelacruz.com/python-randomuser/',
7-
download_url='https://github.com/connordelacruz/python-randomuser/archive/0.3.1.tar.gz',
8-
author='Connor de la Cruz',
9-
author_email='connor.c.delacruz@gmail.com',
10-
license='MIT',
11-
packages=find_packages(),
12-
zip_safe=False)
8+
version=__version__,
9+
description='Python class for generating random user data using https://randomuser.me API',
10+
url='http://connordelacruz.com/python-randomuser/',
11+
download_url='https://github.com/connordelacruz/python-randomuser/archive/{}.tar.gz'.format(__version__),
12+
author='Connor de la Cruz',
13+
author_email='connor.c.delacruz@gmail.com',
14+
license='MIT',
15+
packages=find_packages(),
16+
zip_safe=False)

0 commit comments

Comments
Β (0)