44import os
55import 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
1413def 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
2425setup (
2526 name = 'github3' ,
@@ -29,7 +30,7 @@ def publish():
2930 author = 'Kenneth Reitz' ,
30313132 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