94 lines
2.6 KiB
Python
Raw Permalink Normal View History

2021-04-21 13:13:28 +02:00
"""
######
# # ##### #### ##### #### ##### #### ##### #### # #
# # # # # # # # # # # # # # # # # #
###### # # # # # # # # # # # # # ######
# ##### # # # # # # # # ##### # # #
# # # # # # # # # # # # # # # # #
# # # #### # #### # #### # # #### # #Plugin
2021-04-21 13:13:28 +02:00
2021-04-21 13:30:50 +02:00
ProtoTorch models Plugin Package
2021-04-21 13:13:28 +02:00
"""
from pkg_resources import safe_name
2021-04-23 17:27:47 +02:00
from setuptools import find_namespace_packages, setup
2021-04-21 13:13:28 +02:00
2021-04-21 13:30:50 +02:00
PLUGIN_NAME = "models"
2021-04-21 13:13:28 +02:00
2021-04-21 13:30:50 +02:00
PROJECT_URL = "https://github.com/si-cim/prototorch_models"
DOWNLOAD_URL = "https://github.com/si-cim/prototorch_models.git"
2021-04-21 13:13:28 +02:00
with open("README.md", "r") as fh:
long_description = fh.read()
2021-05-18 19:41:58 +02:00
INSTALL_REQUIRES = [
2021-06-20 17:40:07 +02:00
"prototorch>=0.5.0,<0.6.0",
"pytorch_lightning>=1.3.5",
2021-05-18 19:41:58 +02:00
"torchmetrics",
]
2021-06-02 13:01:27 +02:00
CLI = [
"jsonargparse",
]
2021-05-18 19:41:58 +02:00
DEV = [
"bumpversion",
"pre-commit",
2021-05-18 19:41:58 +02:00
]
DOCS = [
"recommonmark",
"sphinx",
"nbsphinx",
"sphinx_rtd_theme",
"sphinxcontrib-katex",
2021-05-26 21:20:17 +02:00
"sphinxcontrib-bibtex",
2021-05-18 19:41:58 +02:00
]
EXAMPLES = [
"matplotlib",
"scikit-learn",
]
TESTS = [
"codecov",
"pytest",
]
2021-06-02 13:01:27 +02:00
ALL = CLI + DEV + DOCS + EXAMPLES + TESTS
2021-04-21 13:13:28 +02:00
setup(
name=safe_name("prototorch_" + PLUGIN_NAME),
2021-06-20 17:56:21 +02:00
version="0.1.8",
2021-05-10 15:50:06 +02:00
description="Pre-packaged prototype-based "
"machine learning models using ProtoTorch and PyTorch-Lightning.",
2021-04-21 13:13:28 +02:00
long_description=long_description,
2021-05-10 17:12:54 +02:00
long_description_content_type="text/markdown",
2021-04-21 13:13:28 +02:00
author="Alexander Engelsberger",
author_email="engelsbe@hs-mittweida.de",
url=PROJECT_URL,
download_url=DOWNLOAD_URL,
license="MIT",
2021-06-20 17:40:07 +02:00
python_requires=">=3.9",
2021-04-21 13:13:28 +02:00
install_requires=INSTALL_REQUIRES,
2021-04-21 14:51:08 +02:00
extras_require={
2021-05-10 15:50:06 +02:00
"dev": DEV,
2021-04-21 14:51:08 +02:00
"examples": EXAMPLES,
"tests": TESTS,
"all": ALL,
},
2021-04-21 13:13:28 +02: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 14:51:08 +02:00
"Programming Language :: Python :: 3.9",
2021-04-21 13:13:28 +02:00
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
2021-04-21 14:51:08 +02:00
entry_points={
"prototorch.plugins": f"{PLUGIN_NAME} = prototorch.{PLUGIN_NAME}"
},
2021-04-21 13:13:28 +02:00
packages=find_namespace_packages(include=["prototorch.*"]),
zip_safe=False,
)