-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
executable file
·40 lines (36 loc) · 1.58 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
# modified from https://github.com/rom1504/img2dataset/blob/main/setup.py
from setuptools import setup, find_packages
from pathlib import Path
import os
if __name__ == "__main__":
with Path(Path(__file__).parent, "README.md").open(encoding="utf-8") as file:
long_description = file.read()
def _read_reqs(relpath):
fullpath = os.path.join(os.path.dirname(__file__), relpath)
with open(fullpath) as f:
return [s.strip() for s in f.readlines() if (s.strip() and not s.startswith("#"))]
REQUIREMENTS = _read_reqs("requirements.txt")
setup(
name="dataset2metadata",
packages=find_packages(),
include_package_data=True,
version="0.1.0",
license="MIT",
description="Generate infered metadata for a dataset",
long_description=long_description,
long_description_content_type="text/markdown",
entry_points={"console_scripts": ["dataset2metadata = dataset2metadata.main:main"]},
author="Samir Gadre",
author_email="[email protected]",
url="https://github.com/mlfoundations/dataset2metadata",
data_files=[(".", ["README.md"])],
keywords=["machine learning", "computer vision", "download", "image", "dataset"],
install_requires=REQUIREMENTS,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
],
)