forked from basf/mamba-tabular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (48 loc) · 1.82 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from pathlib import Path
from setuptools import find_packages, setup
# Package meta-data.
NAME = 'mambular'
DESCRIPTION = "A python package for tabular deep learning with mamba blocks."
HOMEPAGE = "https://github.com/basf/mamba-tabular"
DOCS = "https://mambular.readthedocs.io/en/latest/index.html"
EMAIL = "anton.thielmann@tu-clausthal.de"
AUTHOR = "Anton Thielmann"
REQUIRES_PYTHON = ">=3.6, <3.11"
# Load the package's verison file and its content.
ROOT_DIR = Path(__file__).resolve().parent
PACKAGE_DIR = ROOT_DIR / 'mambular'
with open(PACKAGE_DIR / "__version__.py") as f:
VERSION = f.readlines()[-1].split()[-1].strip("\"'")
# ger install_reqs from requirements file, used for setup function later
with open(os.path.join(ROOT_DIR, "requirements.txt")) as f:
# next(f)
install_reqs = [line.rstrip() for line in f.readlines()
if not line.startswith("#") and not line.startswith("git+")]
# get long description from readme file
with open(os.path.join(ROOT_DIR, "README.md")) as f:
LONG_DESCRIPTION = f.read()
setup(name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author=AUTHOR,
author_email=EMAIL,
python_requires=REQUIRES_PYTHON,
install_requires=install_reqs,
# extras_require=extras_reqs,
license="Copyright (c) 2024 BASF SE", # adapt based on your needs
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
include_package_data=True,
project_urls={'Homepage:': HOMEPAGE,
'Documentation': DOCS},
url=HOMEPAGE
)