forked from addtt/multi-object-datasets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (40 loc) · 1.32 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
import re
from os.path import join
import setuptools
# Get version string by parsing _version.py
version_fname = join('multiobject', '_version.py')
content = open(version_fname, "rt").read()
regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
match = re.search(regex, content, re.M)
if match:
version_string = match.group(1)
else:
raise RuntimeError("Unable to find version string in {}".format(version_fname))
# Get long description from README
with open("README.md", "r") as fh:
long_description = fh.read()
# Define list of packages
packages = setuptools.find_packages()
packages = [p for p in packages if p.startswith('multiobject')]
setuptools.setup(
name="multiobject", # Replace with your own username
version=version_string,
author="Andrea Dittadi",
author_email="andrea.dittadi@gmail.com",
description="Tools to generate and use multi-object datasets",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/addtt/multi-object-datasets",
packages=packages,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=[
'numpy>=1.17',
'torch>=1.4',
'tqdm',
]
)