Skip to content
Permalink
Browse files

release 0.6.0

  • Loading branch information...
mluerig committed Feb 15, 2019
1 parent e99126d commit 37febd068b4f696c1f14769ecb14d4da3c41682a
Showing with 1,392 additions and 650 deletions.
  1. +6 −0 .eggs/README.txt
  2. +7 −0 .eggs/pytest_runner-4.4-py3.7.egg/EGG-INFO/LICENSE
  3. +143 −0 .eggs/pytest_runner-4.4-py3.7.egg/EGG-INFO/PKG-INFO
  4. +8 −0 .eggs/pytest_runner-4.4-py3.7.egg/EGG-INFO/RECORD
  5. +6 −0 .eggs/pytest_runner-4.4-py3.7.egg/EGG-INFO/WHEEL
  6. +4 −0 .eggs/pytest_runner-4.4-py3.7.egg/EGG-INFO/entry_points.txt
  7. +1 −0 .eggs/pytest_runner-4.4-py3.7.egg/EGG-INFO/namespace_packages.txt
  8. +12 −0 .eggs/pytest_runner-4.4-py3.7.egg/EGG-INFO/requires.txt
  9. +1 −0 .eggs/pytest_runner-4.4-py3.7.egg/EGG-INFO/top_level.txt
  10. +203 −0 .eggs/pytest_runner-4.4-py3.7.egg/ptr.py
  11. +1 −1 docs/.buildinfo
  12. +14 −0 docs/build/html/_sources/index.rst.txt
  13. +1 −1 docs/build/html/_static/basic.css
  14. +1 −1 docs/build/html/_static/doctools.js
  15. +1 −1 docs/build/html/_static/documentation_options.js
  16. +1 −1 docs/build/html/_static/language_data.js
  17. +1 −1 docs/build/html/_static/searchtools.js
  18. +1 −1 docs/build/html/_static/websupport.js
  19. +9 −28 docs/build/html/genindex.html
  20. +123 −104 docs/build/html/index.html
  21. BIN docs/build/html/objects.inv
  22. +3 −3 docs/build/html/search.html
  23. +1 −1 docs/build/html/searchindex.js
  24. +9 −28 docs/genindex.html
  25. +123 −104 docs/index.html
  26. BIN docs/objects.inv
  27. +3 −3 docs/search.html
  28. +1 −1 docs/searchindex.js
  29. +14 −0 docs/source/index.rst
  30. +1 −1 phenopype/_version.py
  31. +49 −58 phenopype/base.py
  32. +26 −0 phenopype/utils.py
  33. +13 −9 setup.py
  34. +1 −1 tutorials/1_python_intro.ipynb
  35. +604 −95 tutorials/2_object_detection.ipynb
  36. +0 −207 tutorials/3_landmarks_and_local_features.ipynb
@@ -0,0 +1,6 @@
This directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins.

This directory caches those eggs to prevent repeated downloads.

However, it is safe to delete this directory.

@@ -0,0 +1,7 @@
Copyright Jason R. Coombs

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,143 @@
Metadata-Version: 2.1
Name: pytest-runner
Version: 4.4
Summary: Invoke py.test as distutils command with dependency resolution
Home-page: https://github.com/pytest-dev/pytest-runner
Author: Jason R. Coombs
Author-email: jaraco@jaraco.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Framework :: Pytest
Requires-Python: >=2.7,!=3.0,!=3.1
Provides-Extra: docs
Requires-Dist: sphinx ; extra == 'docs'
Requires-Dist: jaraco.packaging (>=3.2) ; extra == 'docs'
Requires-Dist: rst.linker (>=1.9) ; extra == 'docs'
Provides-Extra: testing
Requires-Dist: pytest (>=2.8) ; extra == 'testing'
Requires-Dist: pytest-sugar (>=0.9.1) ; extra == 'testing'
Requires-Dist: collective.checkdocs ; extra == 'testing'
Requires-Dist: pytest-flake8 ; extra == 'testing'
Requires-Dist: pytest-virtualenv ; extra == 'testing'

.. image:: https://img.shields.io/pypi/v/pytest-runner.svg
:target: https://pypi.org/project/pytest-runner

.. image:: https://img.shields.io/pypi/pyversions/pytest-runner.svg

.. image:: https://img.shields.io/travis/pytest-dev/pytest-runner/master.svg
:target: https://travis-ci.org/pytest-dev/pytest-runner

.. .. image:: https://img.shields.io/appveyor/ci/pytest-dev/pytest-runner/master.svg
.. :target: https://ci.appveyor.com/project/pytest-dev/pytest-runner/branch/master

.. .. image:: https://readthedocs.org/projects/pytest-runner/badge/?version=latest
.. :target: https://pytest-runner.readthedocs.io/en/latest/?badge=latest

Setup scripts can use pytest-runner to add setup.py test support for pytest
runner.

Usage
=====

- Add 'pytest-runner' to your 'setup_requires'. Pin to '>=2.0,<3dev' (or
similar) to avoid pulling in incompatible versions.
- Include 'pytest' and any other testing requirements to 'tests_require'.
- Invoke tests with ``setup.py pytest``.
- Pass ``--index-url`` to have test requirements downloaded from an alternate
index URL (unnecessary if specified for easy_install in setup.cfg).
- Pass additional py.test command-line options using ``--addopts``.
- Set permanent options for the ``python setup.py pytest`` command (like ``index-url``)
in the ``[pytest]`` section of ``setup.cfg``.
- Set permanent options for the ``py.test`` run (like ``addopts`` or ``pep8ignore``) in the ``[pytest]``
section of ``pytest.ini`` or ``tox.ini`` or put them in the ``[tool:pytest]``
section of ``setup.cfg``. See `pytest issue 567
<https://github.com/pytest-dev/pytest/issues/567>`_.
- Optionally, set ``test=pytest`` in the ``[aliases]`` section of ``setup.cfg``
to cause ``python setup.py test`` to invoke pytest.

Example
=======

The most simple usage looks like this in setup.py::

setup(
setup_requires=[
'pytest-runner',
],
tests_require=[
'pytest',
],
)

Additional dependencies require to run the tests (e.g. mock or pytest
plugins) may be added to tests_require and will be downloaded and
required by the session before invoking pytest.

Follow `this search on github
<https://github.com/search?utf8=%E2%9C%93&q=filename%3Asetup.py+pytest-runner&type=Code&ref=searchresults>`_
for examples of real-world usage.

Standalone Example
==================

This technique is deprecated - if you have standalone scripts
you wish to invoke with dependencies, `use rwt
<https://pypi.org/project/rwt>`_.

Although ``pytest-runner`` is typically used to add pytest test
runner support to maintained packages, ``pytest-runner`` may
also be used to create standalone tests. Consider `this example
failure <https://gist.github.com/jaraco/d979a558bc0bf2194c23>`_,
reported in `jsonpickle #117
<https://github.com/jsonpickle/jsonpickle/issues/117>`_
or `this MongoDB test
<https://gist.github.com/jaraco/0b9e482f5c0a1300dc9a>`_
demonstrating a technique that works even when dependencies
are required in the test.

Either example file may be cloned or downloaded and simply run on
any system with Python and Setuptools. It will download the
specified dependencies and run the tests. Afterward, the the
cloned directory can be removed and with it all trace of
invoking the test. No other dependencies are needed and no
system configuration is altered.

Then, anyone trying to replicate the failure can do so easily
and with all the power of pytest (rewritten assertions,
rich comparisons, interactive debugging, extensibility through
plugins, etc).

As a result, the communication barrier for describing and
replicating failures is made almost trivially low.

Considerations
==============

Conditional Requirement
-----------------------

Because it uses Setuptools setup_requires, pytest-runner will install itself
on every invocation of setup.py. In some cases, this causes delays for
invocations of setup.py that will never invoke pytest-runner. To help avoid
this contingency, consider requiring pytest-runner only when pytest
is invoked::

needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []

# ...

setup(
#...
setup_requires=[
#... (other setup requirements)
] + pytest_runner,
)


@@ -0,0 +1,8 @@
ptr.py,sha256=cob8buAJLgkLEkulgZOuGdlvhCx2g-qgZUTuixKz_XE,5628
pytest_runner-4.4.dist-info/LICENSE,sha256=pV4v_ptEmY5iHVHYwJS-0JrMS1I27nPX3zlaM7o8GP0,1050
pytest_runner-4.4.dist-info/METADATA,sha256=ut9ehcqjeRbRhrqadjWQG_WJmvY_-2QXVULK8tgsOzM,5378
pytest_runner-4.4.dist-info/WHEEL,sha256=aSdOKpzTGLLkKenfdFGiq92od_Dmr98YfEe8iw7iZoo,110
pytest_runner-4.4.dist-info/entry_points.txt,sha256=JLlBw8SyLCUnYguY0hs5dVnA9dMbhuEVPnDjojJbXHw,59
pytest_runner-4.4.dist-info/namespace_packages.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
pytest_runner-4.4.dist-info/top_level.txt,sha256=DPzHbWlKG8yq8EOD5UgEvVNDWeJRPyimrwfShwV6Iuw,4
pytest_runner-4.4.dist-info/RECORD,,
@@ -0,0 +1,6 @@
Wheel-Version: 1.0
Generator: bdist_wheel (0.33.0)
Root-Is-Purelib: true
Tag: py2-none-any
Tag: py3-none-any

@@ -0,0 +1,4 @@
[distutils.commands]
ptr = ptr:PyTest
pytest = ptr:PyTest

@@ -0,0 +1 @@

@@ -0,0 +1,12 @@

[docs]
jaraco.packaging>=3.2
rst.linker>=1.9
sphinx

[testing]
collective.checkdocs
pytest-flake8
pytest-sugar>=0.9.1
pytest-virtualenv
pytest>=2.8
@@ -0,0 +1 @@
ptr
Oops, something went wrong.

0 comments on commit 37febd0

Please sign in to comment.
You can’t perform that action at this time.