forked from arcus-azure/arcus.ml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (45 loc) · 1.62 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
import setuptools
import arcus.ml
import sys
from setuptools.command.test import test as TestCommand
from setuptools import find_namespace_packages
with open("package-description.md", "r") as fh:
long_description = fh.read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
packages_to_import = setuptools.find_packages(exclude=['tests', 'docs', 'build', 'samples'])
print('Package to import:')
print(packages_to_import)
print('=============')
setuptools.setup(
name="arcus-ml",
version=arcus.ml.__version__,
author="Arcus",
author_email="[email protected]",
tests_require=['pytest'],
cmdclass={'test': PyTest},
description="A Python library that provides best practices for Python Machine Learning",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/arcus-azure/arcus.ml",
packages=find_namespace_packages(include=['arcus.*'], exclude=['tests', 'docs', 'build', 'samples']),
package_dir={'arcus.ml': 'arcus/ml'},
namespace_packages=['arcus'],
install_requires=['pandas', 'numpy', 'seaborn', 'opencv-python','scikit-image','scikit-learn'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
extras_require={
'testing': ['pytest'],
}
)