Browse Source

Support modern tools

Ewoud Kohl van Wijngaarden 12 years ago
parent
commit
263b634bf9
6 changed files with 101 additions and 0 deletions
  1. 5 0
      .gitignore
  2. 1 0
      MANIFEST.in
  3. 10 0
      manage.py
  4. 3 0
      requirements.txt
  5. 42 0
      setup.py
  6. 40 0
      tox.ini

+ 5 - 0
.gitignore

@@ -1 +1,6 @@
 *.pyc
+.tox/
+MANIFEST
+build/
+dist/
+*.egg-info/

+ 1 - 0
MANIFEST.in

@@ -0,0 +1 @@
+include README.rst

+ 10 - 0
manage.py

@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+import os
+import sys
+
+if __name__ == "__main__":
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testsettings")
+
+    from django.core.management import execute_from_command_line
+
+    execute_from_command_line(sys.argv)

+ 3 - 0
requirements.txt

@@ -0,0 +1,3 @@
+IPy
+django>=1.3
+psycopg2

+ 42 - 0
setup.py

@@ -0,0 +1,42 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+from distutils.core import setup
+from setuptools import find_packages
+
+import os
+
+def get_long_description():
+    path = os.path.join(os.path.dirname(__file__), 'README.rst')
+    with open(path) as f:
+        return f.read()
+
+setup(
+    name='django-postgresql-netfields',
+    version='0.1',
+    license='BSD',
+    description='Django PostgreSQL netfields implementation',
+    long_description=get_long_description(),
+    url='https://github.com/adamcik/django-postgresql-netfields',
+
+    author=u'Thomas Admacik',
+    author_email='adamcik@samfundet.no',
+
+    packages=find_packages(),
+    include_package_data=True,
+    zip_safe=False,
+    install_requires=[
+        'IPy',
+        'django>=1.3',
+    ],
+
+    classifiers=[
+        'Development Status :: 4 - Beta',
+        'Environment :: Web Environment',
+        'Framework :: Django',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: BSD License',
+        'Operating System :: OS Independent',
+        'Programming Language :: Python',
+        'Topic :: Utilities',
+    ],
+)

+ 40 - 0
tox.ini

@@ -0,0 +1,40 @@
+[tox]
+envlist=
+    py26-django13,
+    py27-django13,
+    py26-django14,
+    py27-django14,
+
+[testenv]
+commands=
+    python manage.py test
+
+# Build configurations...
+
+[testenv:py26-django13]
+basepython=python2.6
+deps=
+    IPy
+    django==1.3
+    psycopg2==2.4.1
+
+[testenv:py27-django13]
+basepython=python2.7
+deps=
+    IPy
+    django==1.3
+    psycopg2==2.4.1
+
+[testenv:py26-django14]
+basepython=python2.6
+deps=
+    IPy
+    django==1.4
+    psycopg2
+
+[testenv:py27-django14]
+basepython=python2.7
+deps=
+    IPy
+    django==1.4
+    psycopg2