-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
61 lines (51 loc) · 1.83 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
from setuptools import setup, find_packages
import os
PATH_ROOT = os.path.dirname(__file__)
with open("README.md", "r") as fh:
long_description = fh.read()
def load_requirements(path_dir=PATH_ROOT, comment_char="#"):
with open(os.path.join(path_dir, "core_requirements.txt"), "r") as file:
lines = [ln.strip() for ln in file.readlines()]
reqs = []
for ln in lines:
# filer all comments
if comment_char in ln:
ln = ln[: ln.index(comment_char)]
if ln: # if requirement is not empty
reqs.append(ln)
return reqs
install_requires = load_requirements()
setup(
name="box_mlc",
version="0.0.1",
author="Dhruvesh Patel",
author_email="1793dnp@gmail.com",
description="Official implementation of ICLR 2022 paper 'Modeling Label Space Interactions in Multi-label Classification using Box Embeddings.'",
long_description=long_description,
long_description_content_type="text/markdown",
url="http://www.dhruveshp.com/multilabel_learning",
project_urls={
"Documentation": "http://www.dhruveshp.com/box_mlc_iclr_2022",
"Source Code": "https://github.com/iesl/box-mlc-iclr-2022",
},
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests", "examples"]
),
package_data={"box_embeddings": ["py.typed"]},
install_requires=install_requires,
keywords=[
"pytorch",
"AI",
"ML",
"Machine Learning",
"Deep Learning",
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha" "Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
python_requires=">=3.5",
)