Skip to content

Commit 894dfb8

Browse files
author
Kenneth Reitz
committed
setup.py, ready for action
1 parent 3047e8b commit 894dfb8

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

setup.py

100644100755
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@
44
import os
55
import sys
66

7-
# from distutils.core import setup
8-
from setuptools import setup, find_packages
9-
10-
import clint
11-
7+
try:
8+
from setuptools import setup, find_packages
9+
except ImportError:
10+
from distutils.core import setup, find_packages
1211

1312

1413
def publish():
1514
"""Publish to PyPi"""
16-
os.system("python setup.py sdist upload")
15+
os.system('python setup.py sdist upload')
16+
1717

18-
if sys.argv[-1] == "publish":
18+
if sys.argv[-1] == 'publish':
1919
publish()
2020
sys.exit()
2121

22-
required = ['requests==0.3.1']
22+
with open('reqs.txt') as f:
23+
required = f.readlines()
2324

2425
setup(
2526
name='github3',
@@ -29,7 +30,7 @@ def publish():
2930
author='Kenneth Reitz',
3031
author_email='[email protected]',
3132
url='https://github.com/kennethreitz/python-github3',
32-
packages= find_packages('github3'),
33+
packages=find_packages(exclude='docs'),
3334
install_requires=required,
3435
license='ISC',
3536
classifiers=(
@@ -38,7 +39,7 @@ def publish():
3839
'Natural Language :: English',
3940
'License :: OSI Approved :: ISC License (ISCL)',
4041
'Programming Language :: Python',
41-
# 'Programming Language :: Python :: 2.5',
42+
'Programming Language :: Python :: 2.5',
4243
'Programming Language :: Python :: 2.6',
4344
'Programming Language :: Python :: 2.7',
4445
# 'Programming Language :: Python :: 3.0',

0 commit comments

Comments
 (0)