2020-02-17 17:02:52 +00:00
|
|
|
"""Install ProtoTorch."""
|
|
|
|
|
|
|
|
from setuptools import setup
|
|
|
|
from setuptools import find_packages
|
|
|
|
|
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",
|
|
|
|
]
|
|
|
|
DOCS = [
|
|
|
|
"recommonmark",
|
|
|
|
"sphinx",
|
|
|
|
"sphinx_rtd_theme",
|
|
|
|
"sphinxcontrib-katex",
|
|
|
|
]
|
|
|
|
DATASETS = [
|
|
|
|
"requests",
|
|
|
|
"tqdm",
|
|
|
|
]
|
|
|
|
EXAMPLES = [
|
|
|
|
"sklearn",
|
|
|
|
"matplotlib",
|
2021-03-01 17:52:54 +00:00
|
|
|
"torchinfo",
|
2021-02-10 16:02:02 +00:00
|
|
|
]
|
|
|
|
TESTS = ["pytest"]
|
|
|
|
ALL = DOCS + DATASETS + EXAMPLES + TESTS
|
|
|
|
|
|
|
|
setup(name="prototorch",
|
|
|
|
version="0.1.1-rc0",
|
|
|
|
description="Highly extensible, GPU-supported "
|
|
|
|
"Learning Vector Quantization (LVQ) toolbox "
|
|
|
|
"built using PyTorch and its nn API.",
|
2020-02-17 17:02:52 +00:00
|
|
|
long_description=long_description,
|
2021-02-10 16:02:02 +00:00
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
author="Jensun Ravichandran",
|
|
|
|
author_email="jjensun@gmail.com",
|
2020-02-17 17:02:52 +00:00
|
|
|
url=PROJECT_URL,
|
|
|
|
download_url=DOWNLOAD_URL,
|
2021-02-10 16:02:02 +00:00
|
|
|
license="MIT",
|
|
|
|
install_requires=INSTALL_REQUIRES,
|
2020-02-17 17:02:52 +00:00
|
|
|
extras_require={
|
2021-02-10 16:02:02 +00:00
|
|
|
"docs": DOCS,
|
|
|
|
"datasets": DATASETS,
|
|
|
|
"examples": EXAMPLES,
|
|
|
|
"tests": TESTS,
|
|
|
|
"all": ALL,
|
2020-02-17 17:02:52 +00:00
|
|
|
},
|
|
|
|
classifiers=[
|
2021-02-10 16:02:02 +00:00
|
|
|
"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",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
|
|
"Topic :: Software Development :: Libraries",
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
2020-02-17 17:02:52 +00:00
|
|
|
],
|
|
|
|
packages=find_packages())
|