-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
46 lines (40 loc) · 1.24 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
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
class Pytest(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = [
'--cov=rebase', '--cov-report', 'term-missing', '--fulltrace',
'-vv', '-s'
]
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(
name='rebase',
version='1.2.2',
python_requires='>=3.6',
author="Yuv Joodhisty",
author_email="[email protected]",
maintainer="Yuv Joodhisty",
maintainer_email="[email protected]",
packages=find_packages(exclude=['tests']),
include_package_data=True,
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
use_scm_version=True,
setup_requires=['setuptools_scm'],
install_requires=[
'simplejson',
],
tests_require=['pytest-cov', 'pytest', 'mock'],
cmdclass={'test': Pytest},
test_suite='tests',
classifiers=(
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
)
)