Created
March 11, 2015 15:26
-
-
Save jperras/284f18000a5394946d99 to your computer and use it in GitHub Desktop.
A very nice setup.py example from graphite-pager.
This file contains hidden or 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 | |
from graphitepager import __version__ | |
import os | |
try: | |
from setuptools import setup | |
except ImportError: | |
from distutils.core import setup | |
def open_file(fname): | |
return open(os.path.join(os.path.dirname(__file__), fname)) | |
def run_setup(): | |
setup( | |
name='graphitepager', | |
version=__version__, | |
author='Philip Cristiano', | |
author_email='[email protected]', | |
packages=['graphitepager', 'graphitepager.notifiers'], | |
url='http://github.com/philipcristiano/graphite-pager', | |
license='BSD', | |
classifiers=[ | |
'Intended Audience :: System Administrators', | |
'License :: OSI Approved :: BSD License', | |
'Programming Language :: Python :: 2.7', | |
'Programming Language :: Python :: 2.6', | |
'Topic :: System :: Monitoring', | |
], | |
description='', | |
keywords='', | |
test_suite='tests', | |
long_description=open_file('README.md').read(), | |
install_requires=open_file('requirements.txt').readlines(), | |
zip_safe=True, | |
entry_points=""" | |
[console_scripts] | |
graphite-pager=graphitepager.worker:main | |
""", | |
) | |
if __name__ == '__main__': | |
run_setup() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment