2021-04-13 10:36:22 +00:00
|
|
|
"""
|
2021-06-16 11:12:28 +00:00
|
|
|
|
|
|
|
######
|
|
|
|
# # ##### #### ##### #### ##### #### ##### #### # #
|
|
|
|
# # # # # # # # # # # # # # # # # #
|
|
|
|
###### # # # # # # # # # # # # # ######
|
|
|
|
# ##### # # # # # # # # ##### # # #
|
|
|
|
# # # # # # # # # # # # # # # # #
|
|
|
|
# # # #### # #### # #### # # #### # #
|
2021-04-13 10:36:22 +00:00
|
|
|
|
|
|
|
ProtoTorch Core Package
|
|
|
|
"""
|
2021-04-23 15:24:53 +00:00
|
|
|
from setuptools import find_packages, setup
|
2020-02-17 17:02:52 +00:00
|
|
|
|
2021-02-10 16:02:02 +00:00
|
|
|
PROJECT_URL = "https://github.com/si-cim/prototorch"
|
|
|
|
DOWNLOAD_URL = "https://github.com/si-cim/prototorch.git"
|
2020-02-17 17:02:52 +00:00
|
|
|
|
2023-06-20 14:27:54 +00:00
|
|
|
with open("README.md", encoding="utf-8") as fh:
|
2020-02-17 17:02:52 +00:00
|
|
|
long_description = fh.read()
|
|
|
|
|
2021-02-10 16:02:02 +00:00
|
|
|
INSTALL_REQUIRES = [
|
2023-06-20 14:27:54 +00:00
|
|
|
"torch>=2.0.0",
|
|
|
|
"torchvision",
|
|
|
|
"numpy",
|
2022-12-05 15:31:33 +00:00
|
|
|
"scikit-learn",
|
2022-03-21 13:38:00 +00:00
|
|
|
"matplotlib",
|
2021-02-10 16:02:02 +00:00
|
|
|
]
|
2021-05-10 14:37:43 +00:00
|
|
|
DATASETS = [
|
|
|
|
"requests",
|
|
|
|
"tqdm",
|
|
|
|
]
|
2021-06-16 10:44:00 +00:00
|
|
|
DEV = [
|
2022-01-10 19:23:18 +00:00
|
|
|
"bump2version",
|
2021-06-16 10:44:00 +00:00
|
|
|
"pre-commit",
|
|
|
|
]
|
2021-02-10 16:02:02 +00:00
|
|
|
DOCS = [
|
|
|
|
"recommonmark",
|
|
|
|
"sphinx",
|
|
|
|
"sphinx_rtd_theme",
|
|
|
|
"sphinxcontrib-katex",
|
2021-05-18 16:54:43 +00:00
|
|
|
"sphinx-autodoc-typehints",
|
2021-02-10 16:02:02 +00:00
|
|
|
]
|
|
|
|
EXAMPLES = [
|
2021-03-01 17:52:54 +00:00
|
|
|
"torchinfo",
|
2021-02-10 16:02:02 +00:00
|
|
|
]
|
2022-01-10 19:23:18 +00:00
|
|
|
TESTS = [
|
|
|
|
"flake8",
|
|
|
|
"pytest",
|
|
|
|
]
|
2021-05-10 14:37:43 +00:00
|
|
|
ALL = DATASETS + DEV + DOCS + EXAMPLES + TESTS
|
2021-02-10 16:02:02 +00:00
|
|
|
|
2021-04-13 10:36:22 +00:00
|
|
|
setup(
|
2021-04-19 14:43:15 +00:00
|
|
|
name="prototorch",
|
2022-12-05 16:03:04 +00:00
|
|
|
version="0.7.5",
|
2021-04-13 10:36:22 +00:00
|
|
|
description="Highly extensible, GPU-supported "
|
|
|
|
"Learning Vector Quantization (LVQ) toolbox "
|
|
|
|
"built using PyTorch and its nn API.",
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
author="Jensun Ravichandran",
|
|
|
|
author_email="jjensun@gmail.com",
|
|
|
|
url=PROJECT_URL,
|
|
|
|
download_url=DOWNLOAD_URL,
|
|
|
|
license="MIT",
|
2023-06-20 14:27:54 +00:00
|
|
|
python_requires=">=3.8",
|
2021-04-13 10:36:22 +00:00
|
|
|
install_requires=INSTALL_REQUIRES,
|
|
|
|
extras_require={
|
|
|
|
"datasets": DATASETS,
|
2021-06-18 16:20:30 +00:00
|
|
|
"dev": DEV,
|
|
|
|
"docs": DOCS,
|
2021-04-13 10:36:22 +00:00
|
|
|
"examples": EXAMPLES,
|
|
|
|
"tests": TESTS,
|
|
|
|
"all": ALL,
|
|
|
|
},
|
|
|
|
classifiers=[
|
|
|
|
"Environment :: Console",
|
2021-08-30 15:42:22 +00:00
|
|
|
"Natural Language :: English",
|
|
|
|
"Development Status :: 4 - Beta",
|
2021-04-13 10:36:22 +00:00
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: Education",
|
|
|
|
"Intended Audience :: Science/Research",
|
|
|
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
|
|
"Topic :: Software Development :: Libraries",
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
2021-08-30 15:42:22 +00:00
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
2022-04-27 07:56:06 +00:00
|
|
|
"Programming Language :: Python :: 3.10",
|
2023-06-20 14:27:54 +00:00
|
|
|
"Programming Language :: Python :: 3.11",
|
2021-04-13 10:36:22 +00:00
|
|
|
],
|
|
|
|
packages=find_packages(),
|
|
|
|
zip_safe=False,
|
|
|
|
)
|