2021-04-13 10:36:22 +00:00
|
|
|
"""
|
2021-05-10 14:37:43 +00:00
|
|
|
_____ _ _______ _
|
|
|
|
| __ \ | | |__ __| | |
|
2021-04-13 10:36:22 +00:00
|
|
|
| |__) | __ ___ | |_ ___ | | ___ _ __ ___| |__
|
2021-05-10 14:37:43 +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
|
|
|
|
2021-02-10 16:02:02 +00:00
|
|
|
with open("README.md", "r") as fh:
|
2020-02-17 17:02:52 +00:00
|
|
|
long_description = fh.read()
|
|
|
|
|
2021-02-10 16:02:02 +00:00
|
|
|
INSTALL_REQUIRES = [
|
|
|
|
"torch>=1.3.1",
|
|
|
|
"torchvision>=0.5.0",
|
|
|
|
"numpy>=1.9.1",
|
2021-05-20 09:44:53 +00:00
|
|
|
"sklearn",
|
2021-02-10 16:02:02 +00:00
|
|
|
]
|
2021-05-10 14:37:43 +00:00
|
|
|
DATASETS = [
|
|
|
|
"requests",
|
|
|
|
"tqdm",
|
|
|
|
]
|
|
|
|
DEV = ["bumpversion"]
|
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 = [
|
|
|
|
"matplotlib",
|
2021-03-01 17:52:54 +00:00
|
|
|
"torchinfo",
|
2021-02-10 16:02:02 +00:00
|
|
|
]
|
2021-05-10 14:37:43 +00:00
|
|
|
TESTS = ["codecov", "pytest"]
|
|
|
|
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",
|
2021-05-28 14:15:28 +00:00
|
|
|
version="0.5.0",
|
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",
|
|
|
|
install_requires=INSTALL_REQUIRES,
|
|
|
|
extras_require={
|
|
|
|
"docs": DOCS,
|
|
|
|
"datasets": DATASETS,
|
|
|
|
"examples": EXAMPLES,
|
|
|
|
"tests": TESTS,
|
|
|
|
"all": ALL,
|
|
|
|
},
|
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 2 - Pre-Alpha",
|
|
|
|
"Environment :: Console",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: Education",
|
|
|
|
"Intended Audience :: Science/Research",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Natural Language :: English",
|
|
|
|
"Programming Language :: Python :: 3.6",
|
|
|
|
"Programming Language :: Python :: 3.7",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
2021-05-10 14:37:43 +00:00
|
|
|
"Programming Language :: Python :: 3.9",
|
2021-04-13 10:36:22 +00:00
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
|
|
"Topic :: Software Development :: Libraries",
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
|
|
],
|
|
|
|
packages=find_packages(),
|
|
|
|
zip_safe=False,
|
|
|
|
)
|