-
Notifications
You must be signed in to change notification settings - Fork 32
/
setup.py
74 lines (56 loc) · 1.84 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
64
65
66
67
68
69
70
71
72
73
74
import os
import sys
from setuptools import setup, Command
import django_geckoboard
os.environ['DJANGO_SETTINGS_MODULE'] = 'django_geckoboard.tests.settings'
cmdclass = {}
class TestCommand(Command):
description = "run package tests"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from django_geckoboard.tests.utils import run_tests
errors = run_tests()
if errors:
sys.exit(1)
cmdclass['test'] = TestCommand
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def build_long_description():
return "\n\n".join([
django_geckoboard.__doc__,
read('CHANGELOG.rst'),
])
setup(
name='django-geckoboard',
version=django_geckoboard.__version__,
license=django_geckoboard.__license__,
description='Geckoboard custom widgets for Django projects',
long_description=build_long_description(),
author=django_geckoboard.__author__,
author_email=django_geckoboard.__email__,
packages=[
'django_geckoboard',
'django_geckoboard.tests',
],
install_requires=['six', 'django', 'pycrypto'],
keywords=['django', 'geckoboard'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
],
platforms=['any'],
url='http://github.com/jcassee/django-geckoboard',
download_url='http://github.com/jcassee/django-geckoboard/archives/master',
cmdclass=cmdclass,
)