Skip to content
Browse files

Add setup.py for pip instalation

  • Loading branch information...
1 parent b53c44d commit 0563ce979a4d0b9a25bcf75e33bded702a0af4b5 togusav committed Oct 11, 2012
Showing with 42 additions and 1 deletion.
  1. +1 −1 README.rst
  2. +16 −0 django_pgarray/__init__.py
  3. +25 −0 setup.py
View
2 README.rst
@@ -3,7 +3,7 @@ django_pgarray
Django array field support for postgres.
-Use unicode csv for text widget (nice play in django admin) and to save array
+Use unicode csv for text widget (play nice with django admin) and to save array
in others database like a text field
View
16 django_pgarray/__init__.py
@@ -0,0 +1,16 @@
+VERSION = (0, 1, 0, "a", 0) # following PEP 386
+DEV_N = 3
+
+
+def get_version():
+ version = "%s.%s" % (VERSION[0], VERSION[1])
+ if VERSION[2]:
+ version = "%s.%s" % (version, VERSION[2])
+ if VERSION[3] != "f":
+ version = "%s%s%s" % (version, VERSION[3], VERSION[4])
+ if DEV_N:
+ version = "%s.dev%s" % (version, DEV_N)
+ return version
+
+
+__version__ = get_version()
View
25 setup.py
@@ -0,0 +1,25 @@
+from distutils.core import setup
+
+
+setup(
+ name="django_pgarray",
+ version=__import__("django_pgarray").__version__,
+ author="Gustavo Diaz Jaimes",
+ author_email="gustavodiazjaimes@gmail.com",
+ description="array field for postgres, using csv for widget and serialization",
+ long_description=open("README.rst").read(),
+ url="https://github.com/gustavodiazjaimes/django_pgarray",
+ packages="django_pgarray",
+ install_requires = [
+ "python-unicodecsv>=0.9",
+ ],
+ classifiers=[
+ "Development Status :: 3 - Alpha",
+ "Environment :: Web Environment",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved :: MIT License",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python",
+ "Framework :: Django",
+ ],
+)

0 comments on commit 0563ce9

Please sign in to comment.
Something went wrong with that request. Please try again.