diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-03-10 16:33:25 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-03-12 13:55:46 -0400 |
commit | 1e6668e606b33846b8ff0bfbc459fae3de145e8d (patch) | |
tree | 43a563d8df885e6b475de1898bed831240bb7c2a /setup.py | |
download | firewatch-1e6668e606b33846b8ff0bfbc459fae3de145e8d.tar.gz |
Initial commit0.0.1
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..3f19155 --- /dev/null +++ b/setup.py @@ -0,0 +1,57 @@ +import os +import subprocess +import sys +from setuptools import setup, find_packages + + +PACKAGENAME='firewatch' + +if os.path.exists('relic'): + sys.path.insert(1, 'relic') + import relic.release +else: + try: + import relic.release + except ImportError: + try: + subprocess.check_call(['git', 'clone', + 'https://github.com/jhunkeler/relic.git']) + sys.path.insert(1, 'relic') + import relic.release + except subprocess.CalledProcessError as e: + print(e) + exit(1) + + +version = relic.release.get_info() +relic.release.write_template(version, PACKAGENAME) + + +setup( + name='firewatch', + version=version.pep386, + author='Joseph Hunkeler', + author_email='jhunk@stsci.edu', + description='A utility to display the timeline of a Conda channel', + license='BSD', + url='https://github.com/jhunkeler/firewatch', + classifiers=[ + 'Intended Audience :: System Administrators', + 'License :: OSI Approved :: BSD License', + 'Operating System :: OS Independent', + 'Environment :: Console', + 'Programming Language :: Python :: 3 :: Only', + 'Programming Language :: Python :: 3.6', + 'Topic :: Utilities', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], + install_requires=[ + 'requests', + ], + packages=find_packages(), + entry_points={ + 'console_scripts': [ + 'firewatch=firewatch.firewatch:main' + ], + }, +) |