Skip to content

Commit fac63fe

Browse files
committed
Improvements in setup.py:
- Version form external file - Relax the requests version to >= 2.7.0 - Added MANIFEST.in
1 parent d87dd9e commit fac63fe

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include atlassian/VERSION
2+
include LICENSE
3+
include README.rst

atlassian/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.0

setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import os
12
import sys
23
from setuptools import find_packages
34
from setuptools import setup
45

6+
version_file = os.path.join('atlassian', 'VERSION')
57

68
assert sys.version_info >= (3, 2), 'Python 3.2+ required.'
79

@@ -10,20 +12,19 @@
1012
description='Python Atlassian REST API Wrapper',
1113
long_description='Python Atlassian REST API Wrapper',
1214
license='Apache License 2.0',
13-
version='0.14.0',
15+
version=open(version_file, 'r').read().strip(),
1416
download_url='https://github.com/MattAgile/atlassian-python-api',
1517

1618
author='Matt Harasymczuk',
1719
author_email='code@mattagile.com',
1820
url='http://mattagile.com/',
1921

2022
packages=find_packages(),
21-
package_data={'': ['LICENSE', 'README.rst'], 'atlassian': ['*.py']},
2223
package_dir={'atlassian': 'atlassian'},
2324
include_package_data=True,
2425

2526
zip_safe=False,
26-
install_requires=['requests==2.7.0'],
27+
install_requires=['requests>=2.7.0'],
2728
platforms='Platform Independent',
2829

2930
classifiers=[
@@ -38,12 +39,11 @@
3839
'Operating System :: MacOS :: MacOS X',
3940
'Operating System :: Microsoft :: Windows',
4041
'Programming Language :: Python',
41-
'Programming Language :: Python :: 3',
42-
'Programming Language :: Python :: 3.0',
43-
'Programming Language :: Python :: 3.1',
4442
'Programming Language :: Python :: 3.2',
4543
'Programming Language :: Python :: 3.3',
4644
'Programming Language :: Python :: 3.4',
45+
'Programming Language :: Python :: 3.5',
46+
'Programming Language :: Python :: 3.6',
4747
'Topic :: Internet',
4848
'Topic :: Internet :: WWW/HTTP',
4949
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',

0 commit comments

Comments
 (0)