This repository has been archived by the owner on May 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
executable file
·70 lines (55 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
"""Test runner for py.test"""
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['tentd/tests', '--mode=all']
self.test_suite = True
def run_tests(self):
from pytest import main
sys.exit(main(self.test_args))
setup(
name = 'tentd',
version = '0.1.1',
license = 'Apache Software License 2.0',
url = 'https://github.com/pytent/pytentd',
maintainer = 'James Ravencroft',
maintainer_email = '[email protected]',
description = 'A tent.io server',
long_description = open('README.rst').read(),
classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Environment :: No Input/Output (Daemon)',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Communications',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application'
],
# Package
packages=find_packages(),
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'tentd = tentd:run',
'pytentd = tentd:run',
]
},
# Requirements
install_requires=[
'flask==0.9',
'flask-mongoengine==0.6',
'mongoengine==0.7.9',
'blinker==1.1',
'requests==1.1.0',
'simplejson==3.0.7',
'rfc3987==1.3.1'
],
# Tests
tests_require=['pytest'],
cmdclass={'test': PyTest},
)