Skip to content

Commit

Permalink
Finalised release script and updated CHANGELOG.
Browse files Browse the repository at this point in the history
  • Loading branch information
vtraag committed Nov 12, 2017
1 parent ccc002b commit 768b7f9
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 31 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
0.6.0
- Major API changes, now exposing actual classes and optimisation routine.
- Improved algorithm, now runs much faster and finds better solutions.
- Improved algorithm, now runs faster and finds better solutions.
- Improved error handling, doing more type checking.
- Improved documentation throughout, now done using Sphinx and available from
readthedocs.org.
Expand Down
75 changes: 45 additions & 30 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,34 +1,49 @@
#!/bin/sh

mkdir /tmp/louvain/
cp -R * /tmp/louvain/

cd /tmp/louvain/

# source dist
source ~/anaconda3/bin/activate root
python setup.py sdist
#python setup.py sdist upload --sign
#python2.7 setup.py bdist_egg upload --sign
#python3.4 setup.py bdist_egg upload --sign

# docs will be built automatically by readthedocs.org
# python setup.py build_sphinx

# Conda packages
conda config --set anaconda_upload yes
source ~/anaconda3/bin/activate root
python setup.py --no-pkg-config bdist_conda

~/miniconda3/bin/python setup.py --no-pkg-config bdist_conda
~/miniconda3/bin/anaconda upload -i ~/miniconda3/conda-bld/linux-64/louvain-0.5.3-py35_0.tar.bz2

cd -

if [ ! -d "dist/" ]; then
mkdir dist/
if [ "$1" = "release" ]; then
echo "Making release, uploading to PyPi and Anaconda..."
# source dist
source ~/anaconda2/bin/activate root
python setup.py sdist upload --sign
python setup.py bdist_egg upload --sign

source ~/anaconda3/bin/activate root
python setup.py bdist_egg upload --sign

# docs will be built automatically by readthedocs.org
# python setup.py build_sphinx

# Conda packages
~/anaconda2/bin/conda config --set anaconda_upload yes
source ~/anaconda2/bin/activate root
python setup.py --no-pkg-config bdist_conda

~/anaconda3/bin/conda config --set anaconda_upload yes
source ~/anaconda3/bin/activate root
python setup.py --no-pkg-config bdist_conda
else
echo "Dry run, not uploading anything..."
# source dist
source ~/anaconda2/bin/activate root
python setup.py sdist
python setup.py bdist_egg

source ~/anaconda3/bin/activate root
python setup.py sdist
python setup.py sdist
python setup.py bdist_egg

# docs will be built automatically by readthedocs.org
# but let's test if there is not anything going wrong
python setup.py build_sphinx

# Conda packages
~/anaconda2/bin/conda config --set anaconda_upload no
source ~/anaconda2/bin/activate root
python setup.py --no-pkg-config bdist_conda

~/anaconda3/bin/conda config --set anaconda_upload no
source ~/anaconda3/bin/activate root
python setup.py --no-pkg-config bdist_conda
fi

cp /tmp/louvain/dist/* dist/

rm -rf /tmp/louvain/

0 comments on commit 768b7f9

Please sign in to comment.