Skip to content

Commit

Permalink
Merge pull request #682 from PMEAL/deploy_to_pip
Browse files Browse the repository at this point in the history
adding version number to openpnm, setting up autodeploy to pip
  • Loading branch information
jgostick committed Feb 18, 2017
2 parents f9cdb7d + 4f33e1f commit a78d71c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,13 @@ after_success:

notifications:
email: false

deploy:
provider: pypi
distribution: sdist
user: jgostick
password:
secure: SInoWqd5ayXQAXWr4tbXJNIaNl8Im0vOTGWNiLLlaQZYL/RZCQ5NqUyoi87lIJyjiKApMExOm/RwKKe/bHoSRHLXX/6U0u+4otSC6ZyeAJAhEXqohNmJhGUHhADlqYAhg2vlfjh7CxwNSObvr0SdlTUA5l5ivcofBXiYfxk3i/o=
on:
tags: true
branch: master
18 changes: 14 additions & 4 deletions OpenPNM/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@
------
>>> import OpenPNM
Example
-------
The following few lines setup all the necessary objects for performing
simulations:
>>> import OpenPNM as op
>>> net = op.Network.Cubic(shape=[5, 5, 5], spacing=0.001)
>>> geo = op.Geometry.Stick_and_Ball(network=net, pores=net.Ps, throats=net.Ts)
>>> air = op.Phases.Air(network=net)
>>> water = op.Phases.Water(network=net)
>>> phys_air = op.Physics.Standard(network=net, geometry=geo, phase=air)
>>> phys_wat = op.Physics.Standard(network=net, geometry=geo, phase=water)
"""
import sys as _sys
import scipy as _sp
Expand All @@ -41,10 +54,7 @@
if _sys.version_info < (3, 4):
raise Exception('OpenPNM requires Python 3.4 or greater to run')

if _sp.__version__ < '0.14.0':
raise Exception('OpenPNM requires SciPy version 0.14.0 or greater')

__version__ = '1.5'
__version__ = '1.6.1'

from . import Base
from . import Network
Expand Down

0 comments on commit a78d71c

Please sign in to comment.