Update setup.py and README.md
This commit is contained in:
parent
a55320a65b
commit
4c7c9cc34a
@ -28,15 +28,19 @@ pip install -U prototorch
|
|||||||
```
|
```
|
||||||
To also install the extras, use
|
To also install the extras, use
|
||||||
```bash
|
```bash
|
||||||
pip install -U prototorch[datasets,examples,tests]
|
pip install -U prototorch[all]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
*Note: If you're using [ZSH](https://www.zsh.org/), the square brackets `[ ]`
|
||||||
|
have to be escaped like so: `\[\]`, making the install command `pip install -U
|
||||||
|
prototorch\[all\]`.*
|
||||||
|
|
||||||
To install the bleeding-edge features and improvements:
|
To install the bleeding-edge features and improvements:
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/si-cim/prototorch.git
|
git clone https://github.com/si-cim/prototorch.git
|
||||||
git checkout dev
|
git checkout dev
|
||||||
cd prototorch
|
cd prototorch
|
||||||
pip install -e .
|
pip install -e .[all]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
88
setup.py
88
setup.py
@ -3,48 +3,68 @@
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from setuptools import find_packages
|
from setuptools import find_packages
|
||||||
|
|
||||||
PROJECT_URL = 'https://github.com/si-cim/prototorch'
|
PROJECT_URL = "https://github.com/si-cim/prototorch"
|
||||||
DOWNLOAD_URL = 'https://github.com/si-cim/prototorch.git'
|
DOWNLOAD_URL = "https://github.com/si-cim/prototorch.git"
|
||||||
|
|
||||||
with open('README.md', 'r') as fh:
|
with open("README.md", "r") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
setup(name='prototorch',
|
INSTALL_REQUIRES = [
|
||||||
version='0.1.1-rc0',
|
"torch>=1.3.1",
|
||||||
description='Highly extensible, GPU-supported '
|
"torchvision>=0.5.0",
|
||||||
'Learning Vector Quantization (LVQ) toolbox '
|
"numpy>=1.9.1",
|
||||||
'built using PyTorch and its nn API.',
|
]
|
||||||
|
DOCS = [
|
||||||
|
"recommonmark",
|
||||||
|
"sphinx",
|
||||||
|
"sphinx_rtd_theme",
|
||||||
|
"sphinxcontrib-katex",
|
||||||
|
]
|
||||||
|
DATASETS = [
|
||||||
|
"requests",
|
||||||
|
"tqdm",
|
||||||
|
]
|
||||||
|
EXAMPLES = [
|
||||||
|
"sklearn",
|
||||||
|
"matplotlib",
|
||||||
|
]
|
||||||
|
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.",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type="text/markdown",
|
||||||
author='Jensun Ravichandran',
|
author="Jensun Ravichandran",
|
||||||
author_email='jjensun@gmail.com',
|
author_email="jjensun@gmail.com",
|
||||||
url=PROJECT_URL,
|
url=PROJECT_URL,
|
||||||
download_url=DOWNLOAD_URL,
|
download_url=DOWNLOAD_URL,
|
||||||
license='MIT',
|
license="MIT",
|
||||||
install_requires=[
|
install_requires=INSTALL_REQUIRES,
|
||||||
'torch>=1.3.1',
|
|
||||||
'torchvision>=0.5.0',
|
|
||||||
'numpy>=1.9.1',
|
|
||||||
],
|
|
||||||
extras_require={
|
extras_require={
|
||||||
'datasets': ['requests', 'tqdm'],
|
"docs": DOCS,
|
||||||
'examples': [
|
"datasets": DATASETS,
|
||||||
'sklearn',
|
"examples": EXAMPLES,
|
||||||
'matplotlib',
|
"tests": TESTS,
|
||||||
],
|
"all": ALL,
|
||||||
'tests': ['pytest'],
|
|
||||||
},
|
},
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 2 - Pre-Alpha', 'Environment :: Console',
|
"Development Status :: 2 - Pre-Alpha",
|
||||||
'Intended Audience :: Developers', 'Intended Audience :: Education',
|
"Environment :: Console",
|
||||||
'Intended Audience :: Science/Research',
|
"Intended Audience :: Developers",
|
||||||
'License :: OSI Approved :: MIT License',
|
"Intended Audience :: Education",
|
||||||
'Programming Language :: Python :: 3.6',
|
"Intended Audience :: Science/Research",
|
||||||
'Programming Language :: Python :: 3.7',
|
"License :: OSI Approved :: MIT License",
|
||||||
'Programming Language :: Python :: 3.8',
|
"Natural Language :: English",
|
||||||
'Operating System :: OS Independent',
|
"Programming Language :: Python :: 3.6",
|
||||||
'Topic :: Scientific/Engineering :: Artificial Intelligence',
|
"Programming Language :: Python :: 3.7",
|
||||||
'Topic :: Software Development :: Libraries',
|
"Programming Language :: Python :: 3.8",
|
||||||
'Topic :: Software Development :: Libraries :: Python Modules'
|
"Operating System :: OS Independent",
|
||||||
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
||||||
|
"Topic :: Software Development :: Libraries",
|
||||||
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||||
],
|
],
|
||||||
packages=find_packages())
|
packages=find_packages())
|
||||||
|
Loading…
Reference in New Issue
Block a user