Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a setup file.

  • Loading branch information...
commit fcc8ceb71b954ed1c33c313cbb8fb067e370113c 1 parent 17af0b5
Brandon R. Stoner authored
Showing with 43 additions and 0 deletions.
  1. +43 −0 setup.py
View
43 setup.py
@@ -0,0 +1,43 @@
+from distutils.core import setup
+
+import os
+import sys
+
+parent_directory = os.path.abspath(os.path.dirname(__file__))
+
+metafiles = {
+ 'README.md': None,
+ 'CHANGES.md': None,
+ 'CLASSIFIERS.txt': None,
+}
+
+# The following bit will read each index from metafiles and fill it's value
+# with the contents of that file if it is able to read the file.
+for filename in metafiles:
+ try:
+ current_file = open(os.path.join(parent_directory, filename))
+ metafiles[filename] = current_file.read()
+ current_file.close()
+
+ except IOError:
+ pass
+
+# No dependancies :)
+dependancies = []
+
+metadata = {
+ 'name': 'tastybone',
+ 'version': '0.0.1',
+ 'description': 'Expose TastyPie to your client. Nicely.',
+ 'long_description': metafiles['README.md'] + '\n\n' + metafiles['CHANGES.md'],
+ 'classifiers': metafiles['CLASSIFIERS.txt'],
+ 'author': 'Brandon R. Stoner',
+ 'author_email': 'monokrome@limpidtech.com',
+ 'url': 'http://github.com/LimpidTech/TastyBone',
+ 'keywords': 'django tastypie',
+ 'packages': ['tastybone'],
+ 'install_requires': dependancies,
+ 'tests_require': dependancies,
+}
+
+setup(**metadata)
Please sign in to comment.
Something went wrong with that request. Please try again.