forked from streeter/django-db-readonly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·63 lines (52 loc) · 1.47 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env python
version = '0.3.1'
import os
import sys
try:
from setuptools import setup
from setuptools.command.test import test
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
from setuptools.command.test import test
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
packages = [
'readonly',
]
requires = [
]
class mytest(test):
def run(self, *args, **kwargs):
from runtests import runtests
runtests()
# Upgrade().run(dist=True)
# test.run(self, *args, **kwargs)
setup(
name='django-db-readonly',
version=version,
author='Chris Streeter',
author_email='[email protected]',
url='http://github.com/streeter/django-db-readonly',
description='Add a global database read-only setting.',
packages=packages,
license='MIT',
zip_safe=False,
install_requires=requires,
test_suite='readonly.tests',
include_package_data=True,
cmdclass={"test": mytest},
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development'
],
)