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'] +)