Skip to content

Commit

Permalink
distribute v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marsggbo committed Jan 16, 2022
1 parent 725e800 commit 8e24a22
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
25 changes: 16 additions & 9 deletions distribute.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
rm -rf build dist *.egg-info
python setup.py sdist bdist_wheel
if (($1==1));then
python -m twine upload dist/*
elif (($1==2));then
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
else
echo "Wrong command, only support 1 or 2"
fi
#!/bin/bash

rm -rf build dist hyperbox.egg-info
python setup.py sdist bdist_wheel
echo Building...
echo Uploading...
if (($1==1));then
python -m twine upload dist/*
echo Uploading to PyPI...
elif (($1==2));then
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
echo Uploading to TestPyPI...
else
echo "Wrong command, only support 1 or 2"
fi
echo Done.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

setup(
name="hyperbox", # you should change "src" to your project name
version="1.0",
version="1.0.0",
description="Hyperbox: An easy-to-use NAS framework.",
author="marsggbo",
url="https://github.com/marsggbo/hyperbox",
# replace with your own github project link
install_requires=["pytorch-lightning>=1.5", "hydra-core>=1.1"],
packages=find_packages(),
Expand Down

0 comments on commit 8e24a22

Please sign in to comment.