Skip to content

Commit 630a9b1

Browse files
authored
Merge pull request #14 from simpeg/ref/requirements
Ref/requirements
2 parents 8c68ce3 + 51a5b30 commit 630a9b1

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ python:
55

66
sudo: false
77

8+
env:
9+
global:
10+
- MASTER_BRANCH=master
11+
812
env:
913
- TEST_DIR='tests'
1014

@@ -33,3 +37,23 @@ script:
3337

3438
after_success:
3539
- bash <(curl -s https://codecov.io/bash)
40+
41+
# early exit if not on a deplotment branch
42+
- if ! [ "$TRAVIS_BRANCH" = "$MASTER_BRANCH" -o "$TRAVIS_TAG" = "true" ]; then
43+
echo "Not deploying (because this is not a deployment branch)" ;
44+
exit 0 ;
45+
fi
46+
- if ! [ $TRAVIS_PULL_REQUEST = "false" ] ; then
47+
echo "Not deploying (because this is a pull request)" ;
48+
exit 0 ;
49+
fi
50+
- echo "Deploying"
51+
52+
# unpack credentials
53+
- openssl aes-256-cbc -K $encrypted_e1a1deb7b9e1_key -iv $encrypted_e1a1deb7b9e1_iv -in credentials.tar.gz.enc -out credentials.tar.gz -d
54+
- tar -xvzf credentials.tar.gz
55+
56+
# deploy to pypi
57+
- mv credentials/.pypirc ~/.pypirc ;
58+
- python setup.py sdist ;
59+
- twine upload dist/* --skip-existing ;

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _geoana:
22

33

4-
| `getting_started`_ | `connecting`_ | `installing`_ | `license`_ | `Documentation <http://geoana.readthedocs.io/en/latest/>`_ |
4+
| `getting_started`_ | `connecting`_ | `installing`_ | `license`_ | `documentation <http://geoana.readthedocs.io/en/latest/>`_ |
55
66
geoana
77
======

credentials.tar.gz.enc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��'o-��I�ӏ]�kr���(MzB,Q֐&1TM&Nj��2&����[_�pq� �x:��"eA�G�����BNI૜�a�v�J��勍�=}�D�4�����"F �ԓ�v9ͫ��Xv.~��y�_L�,9�Dm��Z��a+����n��M��'��l�� �W��L�pE�����G�&)0�z�ݝ�SXd5���c'Z�x>�~i�r��^^s�|����U���v��9�ݎt��C�

requirements_dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
git+https://github.com/simpeg/discretize.git@feat/3Dcylmesh
21
sphinx_rtd_theme
32
sphinx-gallery
43
SimPEG

0 commit comments

Comments
 (0)