Skip to content

Commit

Permalink
Reorganized nemo as a PyPI package (pulp-platform#3)
Browse files Browse the repository at this point in the history
* Reorganized nemo as a PIP package

* Added install_requires requirements to setup.py
  • Loading branch information
FrancescoConti authored Apr 9, 2020
1 parent 89da083 commit 567e514
Show file tree
Hide file tree
Showing 21 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nemo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
- name: Test
run: |
# pip install pytest
cd tests; wget https://raw.githubusercontent.com/FrancescoConti/nemo_examples_helper/master/mnist_cnn_fp.pt; PYTHONPATH=`pwd`/../.. python mnist_test.py
cd tests; wget https://raw.githubusercontent.com/FrancescoConti/nemo_examples_helper/master/mnist_cnn_fp.pt; PYTHONPATH=`pwd`/.. python mnist_test.py
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import setuptools

with open("README.md", "r") as fh:
long_description = fh.read()

setuptools.setup(
name="NEMO",
version="0.1",
author="Francesco Conti",
author_email="[email protected]",
description="NEural Minimizer for pytOrch",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/pulp-platform/nemo",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires='>=3.5',
install_requires=[
"torch>=1.3.0",
"torchvision>=0.4.1",
"numpy",
"tqdm",
"packaging"
]
)

0 comments on commit 567e514

Please sign in to comment.