prototorch_models/setup.py

100 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 = [
2022-04-27 07:50:48 +00:00
"prototorch>=0.7.3",
"pytorch_lightning>=1.6.0",
2021-05-18 17:41:58 +00:00
"torchmetrics",
2022-06-01 12:14:57 +00:00
"protobuf<3.20.0",
2021-05-18 17:41:58 +00:00
]
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-06-01 12:25:44 +00:00
version="0.5.2",
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",
2022-04-27 07:50:48 +00:00
python_requires=">=3.7",
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",
2022-04-27 08:37:12 +00:00
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
2021-04-21 12:51:08 +00:00
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.7",
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,
)