Browse Source

set version number to 1.0

Sebastian Heimann 1 year ago
parent
commit
f4d7aeda94
3 changed files with 8 additions and 8 deletions
  1. 6 6
      maintenance/deploy-docs.sh
  2. 1 1
      setup.py
  3. 1 1
      src/version.py

+ 6 - 6
maintenance/deploy-docs.sh

@@ -3,19 +3,19 @@ set -e
 VERSION=v`python3 -c "import grond; print(grond.__version__);"`
 
 if [ ! -f maintenance/deploy-docs.sh ] ; then
-    echo "must be run from pyrocko's toplevel directory"
+    echo "must be run from grond's toplevel directory"
     exit 1
 fi
 
-cd doc
+cd docs
 rm -rf build/$VERSION
 make clean; make html $1
 cp -r build/html build/$VERSION
 
-read -r -p "Are your sure to update live docs at http://pyrocko.org/docs/grond/$VERSION [y/N]?" resp
+read -r -p "Are your sure to update live docs at http://pyrocko.org/grond/docs/$VERSION/ [y/N]?" resp
 case $resp in
     [yY][eE][sS]|[yY] )
-        rsync -av build/$VERSION pyrocko@hive:/var/www/pyrocko.org/docs/grond/;
+        rsync -av build/$VERSION/ pyrocko@hive:/var/www/pyrocko.org/grond/docs/$VERSION/;
         ;;
     * ) ;;
 esac
@@ -23,8 +23,8 @@ esac
 read -r -p "Do you want to link 'current' to the just uploaded version $VERSION [y/N]?" resp
 case $resp in
     [yY][eE][sS]|[yY] )
-        echo "Linking docs/grond/$VERSION to docs/grond/current";
-        ssh pyrocko@hive "rm -rf /var/www/pyrocko.org/docs/grond/current; ln -s /var/www/pyrocko.org/docs/grond/$VERSION /var/www/pyrocko.org/docs/grond/current";
+        echo "Linking grond/docs/$VERSION to grond/docs/current";
+        ssh pyrocko@hive "rm -f /var/www/pyrocko.org/grond/docs/current; ln -s /var/www/pyrocko.org/grond/docs/$VERSION /var/www/pyrocko.org/grond/docs/current";
         ;;
     * ) ;;
 esac

+ 1 - 1
setup.py

@@ -19,7 +19,7 @@ setup(
     description='A probabilistic earthquake source inversion framework. '
                 'Designed and crafted in Mordor.',
 
-    version='0.2',
+    version='1.0',
 
     author='The Grond Developers',
 

+ 1 - 1
src/version.py

@@ -1 +1 @@
-__version__ = '0.2'
+__version__ = '1.0'