-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (39 loc) · 1.2 KB
/
setup.py
File metadata and controls
45 lines (39 loc) · 1.2 KB
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
"""
Package creation script
How to packaging:
https://packaging.python.org/tutorials/packaging-projects/
From the python3 virtualenv:
pip install --upgrade setuptools wheel
python setup.py sdist bdist_wheel
pip install --upgrade twine
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*
"""
import setuptools
# Load description
with open('README.md', 'r') as fr:
long_description = fr.read()
# Load version string
loaded_vars = dict()
with open('vito/version.py') as fv:
exec(fv.read(), loaded_vars)
setuptools.setup(
name="vito",
version=loaded_vars['__version__'],
author="snototter",
author_email="snototter@users.noreply.github.com",
description="Lightweight utility package for common computer vision tasks.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/snototter/vito",
packages=setuptools.find_packages(),
install_requires=[
'numpy',
'Pillow>=5.0.0'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
)