Permalink
Browse files

improved setup.py to make sure this will work on pypi

--HG--
rename : README.md => README.rst
  • Loading branch information...
1 parent df37aa2 commit 9cb40acee3892ad2c38bbfd271f4f061ed15b40d @deanmalmgren deanmalmgren committed Nov 19, 2012
Showing with 52 additions and 8 deletions.
  1. +22 −0 LICENSE.rst
  2. +6 −0 MANIFEST.in
  3. +1 −1 README.md → README.rst
  4. +23 −7 setup.py
View
@@ -0,0 +1,22 @@
+`MIT License <http://opensource.org/licenses/MIT>`_
+
+Copyright (c) 2012 Dean Malmgren and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,6 @@
+
+include *.rst
+recursive-include flux *.py *.html *.js *.css *.png
+
+# recursive-include docs/source *
+# include docs/Makefile
View
@@ -7,7 +7,7 @@ Although this information is readily available and often a click or
two away, these additional clicks create an unnecessary barrier to
entry. The goal of django-flux is to make it possible to quickly
assess the utility of following a particular feed of content and
-whether the [flux](http://en.wikipedia.org/wiki/Flux) of relevant
+whether the `flux <http://en.wikipedia.org/wiki/Flux>`_ of relevant
content will be useful for you.
Quick start
View
@@ -1,11 +1,27 @@
from distutils.core import setup
+from setuptools import find_packages
+
+# Here are a few resources that were useful in putting this together
+# * http://guide.python-distribute.org/creation.html
+# * http://bruno.im/2010/may/05/packaging-django-reusable-app/
+# * http://stackoverflow.com/questions/5360873/how-do-i-package-a-python-application-to-make-it-pip-installable
setup(
- name = "django-flux",
- version = "0.1",
- description = "locally fetch, store, and present social media flux",
- author = "Dean Malmgren",
- author_email = "dean.malmgren@datascopeanalytics.com",
- url = "http://github.com/deanmalmgren/django-flux",
- packages = ['flux'],
+ name="django-flux",
+ version="0.1.0",
+ description="locally fetch, store, and present social media flux",
+ long_description=open('README.rst').read(),
+ author="Dean Malmgren",
+ author_email="dean.malmgren@datascopeanalytics.com",
+ license="LICENSE.rst",
+ url="http://github.com/deanmalmgren/django-flux",
+ install_requires=[
+ 'Django >= 1.2.5',
+ 'python-twitter',
+ # 'fbconsole',
+ # 'mechanize',
+ # 'python-linkedin',
+ ],
+ packages=['flux'],
+ install_package_data=True,
)

0 comments on commit 9cb40ac

Please sign in to comment.