-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
executable file
·80 lines (69 loc) · 2.49 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
71
72
73
74
75
76
77
78
79
80
"""
References used:
- https://realpython.com/pypi-publish-python-package/#a-small-python-package
- https://setuptools.readthedocs.io/en/latest/setuptools.html
We may want to take a close look at [poetry](https://python-poetry.org/) for packaging...
"""
# https://github.com/ninjaaron/fast-entry_points
import fastentrypoints
from pathlib import Path
from setuptools import setup, find_packages
README_md = Path(__file__).parent / "README.md"
README = README_md.read_text(encoding='utf-8')
setup(
name='qaboard',
version="1.0.1", # __version__ needs to be updated in qaboard/__init__.py as well
license="Apache-2.0",
url="https://github.com/Samsung/qaboard",
description="Visualize and compare algorithm results. Optimize parameters. Share results and track progress.",
long_description=README,
long_description_content_type="text/markdown",
author="Arthur Flam",
author_email="[email protected]",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Environment :: Console",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Quality Assurance",
],
packages=find_packages(exclude=("tests","backend")),
python_requires='>=3.7',
install_requires=[
'click>=7.0', # CLI for humans. In v7 they changed CLI command conventions, started using "-" vs "_"
'rich', # make things pretty
'requests', # HTTP for humans
# Used for serializer flexibility,
# but we could replace it since it requires a compiler for the optionnal C-extensions at `pip install`-time...
# We had issues with Windows users who had VisualStudio, but had not installed a C++ toolchain.
# TODO: unless we can ask for binary versions?
'simplejson',
'pyyaml', # YAML reader
'joblib', # Parallelism for dummies
'scikit-learn',
'scikit-optimize',
],
extras_require={
'dev': [
'flake8', # lint
'green', # test runner
'mypy', # type hint checks
# or call: mypy --install-types
'types-PyYAML',
'types-simplejson',
'types-requests',
'types-setuptools',
# 'black' # TODO: formatter
],
},
entry_points={
"console_scripts": [
'qa = qaboard.qa:main'
]
},
# https://setuptools.readthedocs.io/en/latest/setuptools.html#including-data-files
include_package_data=True,
)