-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (34 loc) · 1.03 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
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [("pytest-args=", "a", "Arguments to pass to pytest")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def run_tests(self):
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
with open("requirements-dev.txt", "r") as f:
dev_requirements = f.read().strip().splitlines()
dev_requirements = [
"pytest",
"pytest-cov",
"pytest-mock",
"hypothesis",
]
setup(
name="algorithm",
version="0.1",
packages=find_packages(exclude=["test"]),
url="https://github.com/vadimadr/python-algorithms.py",
license="MIT",
author="Vadim Andronov",
author_email="[email protected]",
description="Implementation of some common algorithms",
zip_safe=False,
tests_require=dev_requirements,
test_suite="tests",
cmdclass={"test": PyTest},
)