From 47b2764a9fb56b4573941901a84d606c66efd8b4 Mon Sep 17 00:00:00 2001 From: Daniel Schep Date: Tue, 29 Nov 2016 20:37:05 -0500 Subject: [PATCH] pip installable! --- README.md | 5 +++++ setup.py | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 setup.py diff --git a/README.md b/README.md index 070a453..6b90d4d 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,11 @@ list of what exactly will be installed. We appreciate packaging scripts for other distributions, please file a pull request if you write one. +On any distribution with `pip` installed you can install it with: +``` +sudo pip install -e git+http://github.com/phillipberndt/autorandr#egg=autorandr +``` + ## How to use Save your current display configuration and setup with: diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..b413717 --- /dev/null +++ b/setup.py @@ -0,0 +1,45 @@ +from setuptools import setup + + +long_description = open('README.md').read() + +setup( + name='autorandr', + + #version='', # FIXME + + description='Automatically select a display configuration based on connected devices', + long_description=long_description, + + url='https://github.com/phillipberndt/autorandr', + + author='Phillip Berndt', + + license='GPLv3', + + # See https://pypi.python.org/pypi?%3Aaction=list_classifiers + classifiers=[ + 'Environment :: Console', + + 'Intended Audience :: End Users/Desktop', + + 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', + + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + ], + + keywords='xrandr', + + py_modules=['autorandr'], + + entry_points={ + 'console_scripts': [ + 'autorandr = autorandr:exception_handled_main', + ], + }, +) -- 2.39.2