prototorch_models/setup.py

98 lines
2.8 KiB
Python
Raw Normal View History

2021-04-21 11:13:28 +00:00
"""
######
# # ##### #### ##### #### ##### #### ##### #### # #
# # # # # # # # # # # # # # # # # #
###### # # # # # # # # # # # # # ######
# ##### # # # # # # # # ##### # # #
# # # # # # # # # # # # # # # # #
# # # #### # #### # #### # # #### # #Plugin
2021-04-21 11:13:28 +00:00
2021-04-21 11:30:50 +00:00
ProtoTorch models Plugin Package
2021-04-21 11:13:28 +00:00
"""
from pkg_resources import safe_name
2021-04-23 15:27:47 +00:00
from setuptools import find_namespace_packages, setup
2021-04-21 11:13:28 +00:00
2021-04-21 11:30:50 +00:00
PLUGIN_NAME = "models"
2021-04-21 11:13:28 +00:00
2021-04-21 11:30:50 +00:00
PROJECT_URL = "https://github.com/si-cim/prototorch_models"
DOWNLOAD_URL = "https://github.com/si-cim/prototorch_models.git"
2021-04-21 11:13:28 +00:00
with open("README.md", "r") as fh:
long_description = fh.read()
2021-05-18 17:41:58 +00:00
INSTALL_REQUIRES = [
2021-08-30 18:31:50 +00:00
"prototorch>=0.7.0",
"pytorch_lightning>=1.3.5",
2021-05-18 17:41:58 +00:00
"torchmetrics",
]
2021-06-02 11:01:27 +00:00
CLI = [
"jsonargparse",
]
2021-05-18 17:41:58 +00:00
DEV = [
"bumpversion",
"pre-commit",
2021-05-18 17:41:58 +00:00
]
DOCS = [
"recommonmark",
"sphinx",
"nbsphinx",
"ipykernel",
2021-05-18 17:41:58 +00:00
"sphinx_rtd_theme",
"sphinxcontrib-katex",
2021-05-26 19:20:17 +00:00
"sphinxcontrib-bibtex",
2021-05-18 17:41:58 +00:00
]
EXAMPLES = [
"matplotlib",
"scikit-learn",
]
TESTS = [
"codecov",
"pytest",
]
2021-06-02 11:01:27 +00:00
ALL = CLI + DEV + DOCS + EXAMPLES + TESTS
2021-04-21 11:13:28 +00:00
setup(
name=safe_name("prototorch_" + PLUGIN_NAME),
2022-01-11 17:29:55 +00:00
version="0.4.1",
2021-05-10 13:50:06 +00:00
description="Pre-packaged prototype-based "
"machine learning models using ProtoTorch and PyTorch-Lightning.",
2021-04-21 11:13:28 +00:00
long_description=long_description,
2021-05-10 15:12:54 +00:00
long_description_content_type="text/markdown",
2021-04-21 11:13:28 +00:00
author="Alexander Engelsberger",
author_email="engelsbe@hs-mittweida.de",
url=PROJECT_URL,
download_url=DOWNLOAD_URL,
license="MIT",
python_requires=">=3.6",
2021-04-21 11:13:28 +00:00
install_requires=INSTALL_REQUIRES,
2021-04-21 12:51:08 +00:00
extras_require={
2021-05-10 13:50:06 +00:00
"dev": DEV,
2021-04-21 12:51:08 +00:00
"examples": EXAMPLES,
"tests": TESTS,
"all": ALL,
},
2021-04-21 11:13:28 +00:00
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Plugins",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
2021-04-21 12:51:08 +00:00
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.6",
2021-04-21 11:13:28 +00:00
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
2021-04-21 12:51:08 +00:00
entry_points={
"prototorch.plugins": f"{PLUGIN_NAME} = prototorch.{PLUGIN_NAME}"
},
2021-04-21 11:13:28 +00:00
packages=find_namespace_packages(include=["prototorch.*"]),
zip_safe=False,
)