-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
56 lines (46 loc) · 1.73 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
import os
from setuptools import setup
from setuptools.command.test import test as TestCommand
version = '1.2.1.dev0'
def read_file(filename):
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# If we were to import outside of this function, pytest wouldn't be
# installed yet.
import pytest
pytest.main(self.test_args)
setup(name='django-argonauts',
version=version,
author="Fusionbox, Inc.",
author_email="[email protected]",
url="https://github.com/fusionbox/django-argonauts",
keywords="rest json views django helpers",
description="A lightweight collection of JSON helpers for Django.",
long_description=read_file('README.rst') + '\n\n' + read_file('CHANGELOG.rst'),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
install_requires=['Django>=1.8'],
packages=[
'argonauts',
'argonauts.templatetags',
],
tests_require=['pytest-django', 'pytest'],
cmdclass = {'test': PyTest},
)