Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

74 lines (61 sloc) 2.215 kb
import os
import sys
from setuptools import setup, find_packages, Command
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
class RunTests(Command):
description = "Run the django test suite from the testproj dir."
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
this_dir = os.getcwd()
testproj_dir = os.path.join(this_dir, "test_project")
os.chdir(testproj_dir)
sys.path.append(testproj_dir)
from django.core.management import execute_manager
os.environ["DJANGO_SETTINGS_MODULE"] = 'test_project.settings'
settings_file = os.environ["DJANGO_SETTINGS_MODULE"]
settings_mod = __import__(settings_file, {}, {}, [''])
execute_manager(settings_mod, argv=[
__file__, "test", "not_eav"])
os.chdir(this_dir)
setup(
name='django-not-eav',
version='0.0.1',
description='Dynamic attributes for django models.',
author='James Pic',
author_email='jamespic@gmail.com',
url='https://github.com/yourlabs/django-not-eav',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
long_description=read('README.rst'),
license='MIT',
keywords='django eav',
install_requires=[
'django==1.4',
'south==0.7.6',
'django-model-utils==1.1.0',
'unittest-data-provider',
],
cmdclass={'test': RunTests},
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
Jump to Line
Something went wrong with that request. Please try again.