-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
49 lines (41 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
# -*- coding: utf-8 -*-
import os
import setuptools
from distutils.core import setup, Command
import flexisettings
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
# run unittest2 tests with 'python setup.py test'
class TestCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from tests.run import runtests
runtests()
setup(
name=flexisettings.__title__,
version=flexisettings.__version__,
author=u'LeDaPei',
author_email='[email protected]',
packages=['flexisettings'],
url=u'https://github.com/ledapei/django-flexisettings',
license='3-clause BSD licence, see LICENCE.txt',
description='Django flexible settings with running environment support, separate security files and project layout detection.',
long_description=README,
cmdclass={ 'test': TestCommand },
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)