|
| 1 | +#!/usr/bin/env python |
| 2 | +# -*- coding: utf-8 -*- |
| 3 | + |
| 4 | + |
| 5 | +import os |
| 6 | +import sys |
| 7 | + |
| 8 | +from . import github3 |
| 9 | + |
| 10 | +try: |
| 11 | + from setuptools import setup |
| 12 | +except ImportError: |
| 13 | + from distutils.core import setup |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +if sys.argv[-1] == 'publish': |
| 18 | + os.system('python setup.py sdist upload') |
| 19 | + sys.exit() |
| 20 | + |
| 21 | +required = ['requests>=0.8.6', 'python-dateutil==1.5'] |
| 22 | + |
| 23 | + |
| 24 | +setup( |
| 25 | + name='github3', |
| 26 | + version=github3.__version__, |
| 27 | + description='Github API Wrapper.', |
| 28 | + long_description=open('README.rst').read(), # + '\n\n' + |
| 29 | + # open('HISTORY.rst').read(), |
| 30 | + author='Kenneth Reitz', |
| 31 | + |
| 32 | + url='https://github.com/kennethreitz/python-github3', |
| 33 | + packages=['github3'], |
| 34 | + package_data={'': ['LICENSE',]}, |
| 35 | + include_package_data=True, |
| 36 | + install_requires=required, |
| 37 | + license='MIT', |
| 38 | + classifiers=( |
| 39 | + # 'Development Status :: 5 - Production/Stable', |
| 40 | + 'Intended Audience :: Developers', |
| 41 | + 'Natural Language :: English', |
| 42 | + 'License :: OSI Approved :: MIT License', |
| 43 | + 'Programming Language :: Python', |
| 44 | + 'Programming Language :: Python :: 2.6', |
| 45 | + 'Programming Language :: Python :: 2.7', |
| 46 | + # 'Programming Language :: Python :: 3.0', |
| 47 | + # 'Programming Language :: Python :: 3.1', |
| 48 | + ), |
| 49 | +) |
0 commit comments