Skip to content

Commit

Permalink
Release 1.0.1 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-cip authored and sdepy committed Jan 8, 2019
1 parent f60fc7f commit 5e27e2a
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ matrix:
- python runtests.py 'run_fast()'
- popd
- python runtests.py 'exit_tests()'
# latest versions, fast tests for python 3.6
# python 3.6, latest versions of other dependencies, fast tests
- python: 3.6
before_install:
- pip install numpy>=1.13 scipy>=1.0 nose>=1.3.7
Expand All @@ -29,9 +29,8 @@ matrix:
- python runtests.py 'run_fast()'
- popd
- python runtests.py 'exit_tests()'
after_success:
- codecov
# latest versions, full tests for python 3.7
# python 3.7, latest versions of other dependencies, full tests
# with code coverage
- python: 3.7
dist: xenial # see travis-ci/travis-ci/issues/9815
sudo: true
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2018, Maurizio Cipollina
Copyright (c) 2018-2019, Maurizio Cipollina.

All rights reserved.

Expand Down
16 changes: 8 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ Start here
----------

- `Installation <https://pypi.org/project/sdepy>`_: ``pip install sdepy``
- `Quick Guide <https://sdepy.readthedocs.io/en/v1.0.0/intro.html#id2>`_
(as `code <https://github.com/sdepy/sdepy/blob/v1.0.0/quickguide.py>`_)
- `Documentation <https://sdepy.readthedocs.io/en/v1.0.0>`_
(as `pdf <https://readthedocs.org/projects/sdepy/downloads/pdf/v1.0.0>`_)
- `Quick Guide <https://sdepy.readthedocs.io/en/v1.0.1/intro.html#id2>`_
(as `code <https://github.com/sdepy/sdepy/blob/v1.0.1/quickguide.py>`_)
- `Documentation <https://sdepy.readthedocs.io/en/v1.0.1>`_
(as `pdf <https://readthedocs.org/projects/sdepy/downloads/pdf/v1.0.1>`_)
- `Source <https://github.com/sdepy/sdepy>`_
- `License <https://github.com/sdepy/sdepy/blob/v1.0.0/LICENSE.txt>`_
- `License <https://github.com/sdepy/sdepy/blob/v1.0.1/LICENSE.txt>`_
- `Bug Reports <https://github.com/sdepy/sdepy/issues>`_


.. |readthedocs| image:: https://readthedocs.org/projects/sdepy/badge/?version=v1.0.0
:target: https://sdepy.readthedocs.io/en/v1.0.0
.. |readthedocs| image:: https://readthedocs.org/projects/sdepy/badge/?version=v1.0.1
:target: https://sdepy.readthedocs.io/en/v1.0.1
:alt: Documentation Status

.. |travis| image:: https://travis-ci.org/sdepy/sdepy.svg?branch=master
.. |travis| image:: https://travis-ci.org/sdepy/sdepy.svg?branch=v1.0.1
:target: https://travis-ci.org/sdepy/sdepy

.. |codecov| image:: https://codecov.io/gh/sdepy/sdepy/branch/master/graph/badge.svg
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
source_suffix = '.rst'
master_doc = 'index'
project = 'SdePy'
copyright = '2018, MC'
copyright = '2018-2019, MC'
author = 'MC'
version = version
release = version
Expand Down
17 changes: 9 additions & 8 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ def run_quickguide():
def run_fast():
assert not issource
res = test()
return res.errors + res.failures
return len(res.errors + res.failures)


def run_full():
assert not issource
res = test('full', doctests=True)
return res.errors + res.failures
return len(res.errors + res.failures)


def run_insane():
Expand Down Expand Up @@ -151,9 +151,6 @@ def run_tests(*var, **args):
print('FULL TESTS COMPLETED')
print('--------------------\n')

print('Full tests results: {} errors, {} failures'
.format(count_errors, count_failures))

return count_errors + count_failures + res_quickguide


Expand All @@ -162,6 +159,10 @@ def run_tests(*var, **args):
# --------------------------------------

if __name__ == '__main__':
for cmd in sys.argv[1:]:
if eval(cmd):
sys.exit(1)
assert len(sys.argv) == 2
cmd = sys.argv[1]
test_result = eval(cmd)
if cmd[:3] == 'run':
print(cmd, 'FINAL RESULT (0 if all tests passed):', test_result)
if test_result:
sys.exit(1)
2 changes: 1 addition & 1 deletion sdepy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
import numpy.testing
test = numpy.testing.Tester().test

__version__ = '1.0.0' # release
__version__ = '1.0.1' # release


_exclude = ('np', 'numpy', 'scipy',
Expand Down

0 comments on commit 5e27e2a

Please sign in to comment.