-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
48 lines (43 loc) · 1.67 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
from setuptools import setup
import sys
import os
# get the cwd where the setup.py file is located
file_path = os.path.dirname(os.path.realpath(__file__))
long_description = ""
with open(os.path.join(file_path, "README.md"), "r") as fh:
long_description = fh.read()
long_description = long_description.split("\n")
long_description = [line for line in long_description if not "<img" in line]
long_description = "\n".join(long_description)
with open(os.path.join(file_path, "version.txt"), "r") as fh:
version_content = fh.read()
print("Content from version.txt:", version_content)
version = version_content.split("\n")[0].strip()
with open(os.path.join(file_path, "requirements.txt"), "r") as fh:
install_requires = fh.read()
install_requires = install_requires.split("\n")
install_requires = [
line.split("=")[0].split(">")[0].split("<")[0] for line in install_requires
]
setup(
name="simian3d",
version=version,
description="A synthetic data generator for video caption pairs.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/RaccoonResearch/Simian",
author="Raccoon Research",
author_email="[email protected]",
license="MIT",
packages=["simian"],
install_requires=install_requires,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
],
)