From 75ab97025331f16dc19d200fe0c112d08ca44e16 Mon Sep 17 00:00:00 2001 From: PK Shiu Date: Wed, 22 Oct 2014 19:59:36 +0000 Subject: [PATCH] Added setup.py file so that package can be installed using pip For users just want to download the library for used in their own project, especially when they are using virtualenv, it is easier just to pip install a package instead of cloning it. --- .gitignore | 1 + README.md | 14 ++++++++++++++ setup.py | 25 +++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index 64fb82a..a211a19 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.pyc */*.pyc +*~ diff --git a/README.md b/README.md index df492c3..9c6e63a 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,20 @@ See the other files in the `examples` directory for more examples how to us PyGlow. +Install using pip +----------------- + +If you just want to install the PyGlow library for use in your own project, +you can also install it using pip + +``` +$ pip install git+https://github.com/benleb/PyGlow.git +``` + +The PyGlow.py files will be downloaded and placed in the site-packages directory +ready for use. + + Usage ===== diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..423af82 --- /dev/null +++ b/setup.py @@ -0,0 +1,25 @@ +from distutils.core import setup + +classifiers = ['Development Status :: 4 - Beta', + 'Operating System :: POSIX :: Linux', + 'License :: OSI Approved :: MIT License', + 'Intended Audience :: Developers', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Topic :: Software Development', + 'Topic :: System :: Hardware'] + +setup(name= 'PyGlow', + version= '0.5', + author= 'Ben', + author_email= 'ben@email.goes.here', + description= 'A module to control the PiGlow Raspberry Pi Addon Board', + long_description= 'A module to control the PiGlow Raspberry Pi Addon Board', + license= 'MIT', + keywords= 'Raspberry Pi PiGlow', + url= 'https://github.com/benleb/PyGlow', + classifiers = classifiers, + py_modules= ['PyGlow'], + install_requires= ['rpi.gpio >= 0.5.4'] +)