Created
July 25, 2013 22:29
-
-
Save joshfinnie/6084359 to your computer and use it in GitHub Desktop.
Start of a setup.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import app | |
try: | |
from setuptools import setup | |
except ImportError: | |
from distutils.core import setup | |
if sys.argv[-1] == 'publish': | |
os.system('python setup.py sdist upload') | |
sys.exit() | |
readme = open('README.rst').read() | |
history = open('HISTORY.rst').read().replace('.. :changelog:', '') | |
requirements = ['jinja2==2.7'] | |
if sys.version_info[:2] < (2, 7): | |
requirements.append('argparse') | |
setup( | |
name='app', | |
version=app.__version__, | |
description='** A DESCRIPTION **', | |
long_description=readme + '\n\n' + history, | |
author='Josh Finnie', | |
author_email='[email protected]', | |
url='** URL **', | |
packages=[ | |
'app', | |
], | |
package_dir={'app': 'app'}, | |
entry_points={ | |
'console_scripts': [ | |
'app = app.main:main', | |
] | |
}, | |
include_package_data=True, | |
install_requires=requirements, | |
license='MIT', | |
zip_safe=False, | |
classifiers=[ | |
'Development Status :: 3 - Alpha', | |
"Environment :: Console", | |
'Intended Audience :: Developers', | |
'Natural Language :: English', | |
'License :: OSI Approved :: MIT License', | |
'Programming Language :: Python', | |
"Programming Language :: Python :: 2", | |
'Programming Language :: Python :: 2.6', | |
'Programming Language :: Python :: 2.7', | |
'Programming Language :: Python :: 3', | |
'Programming Language :: Python :: 3.3', | |
], | |
keywords='** KEYWORDS **', | |
test_suite='tests', | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment