-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
41 lines (34 loc) · 1.22 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
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
import releasedate
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['test_releasedate.py']
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(
name='redmine-releasedate',
version=releasedate.__version__,
packages=['releasedate'],
url='https://github.com/futurecolors/redmine-releasedate',
install_requires=['requests', 'GitPython', 'Werkzeug', 'docopt'],
tests_require=['pytest', 'httpretty==0.6.2', 'mock', 'sh'],
cmdclass={'test': PyTest},
license='MIT',
author='Ilya Baryshev',
author_email='[email protected]',
description='Track when your features are shipped to production in Redmine.',
long_description=open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read(),
entry_points={
'console_scripts': [
'redmine-release-server = releasedate.server:main',
'redmine-release = releasedate.ci:cli',
]
}
)