diff -Nru pytest-cython-0.1.0/AUTHORS.rst pytest-cython-0.1.1/AUTHORS.rst --- pytest-cython-0.1.0/AUTHORS.rst 2016-04-17 14:12:12.000000000 +0000 +++ pytest-cython-0.1.1/AUTHORS.rst 1970-01-01 00:00:00.000000000 +0000 @@ -1,5 +0,0 @@ - -Authors -======= - -* Logan Page - https://github.com/lgpage diff -Nru pytest-cython-0.1.0/.bumpversion.cfg pytest-cython-0.1.1/.bumpversion.cfg --- pytest-cython-0.1.0/.bumpversion.cfg 2016-04-03 18:18:59.000000000 +0000 +++ pytest-cython-0.1.1/.bumpversion.cfg 2021-01-26 13:00:57.000000000 +0000 @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.1.0 +current_version = 0.1.1 commit = True tag = True @@ -9,3 +9,4 @@ [bumpversion:file:src/pytest_cython/__init__.py] +[bumpversion:file:tests/example-project/setup.py] diff -Nru pytest-cython-0.1.0/CHANGELOG.rst pytest-cython-0.1.1/CHANGELOG.rst --- pytest-cython-0.1.0/CHANGELOG.rst 2016-04-17 16:28:01.000000000 +0000 +++ pytest-cython-0.1.1/CHANGELOG.rst 2021-01-26 13:00:57.000000000 +0000 @@ -2,7 +2,25 @@ Changelog ========= -0.1.0 (2016-04-17) ------------------------------------------ +0.1.x +----- -* First release on PyPI. +0.1.0 +~~~~~ + +First release on PyPI (2016-04-17). + +0.1.1 +~~~~~ + +The full list of merged PRs is: + +* PR #5: Fix DoctestModule deprecated error +* PR #6: Fix typo from PR #5 +* PR #7: Fix support for relative imports +* PR #9: Maintain backwards compatibility for pytest 4.x + +Thanks to the following contributors who submitted PRs or reported issues that were merged/closed for this release: + +- embray +- thrasibule diff -Nru pytest-cython-0.1.0/CONTRIBUTING.rst pytest-cython-0.1.1/CONTRIBUTING.rst --- pytest-cython-0.1.0/CONTRIBUTING.rst 2016-04-17 14:12:12.000000000 +0000 +++ pytest-cython-0.1.1/CONTRIBUTING.rst 2021-01-26 13:00:57.000000000 +0000 @@ -54,7 +54,7 @@ Now you can make your changes locally. 4. When you're done making changes, run all the checks, doc builder and spell - checker with `tox `_ one + checker with `tox `_ one command:: tox diff -Nru pytest-cython-0.1.0/.cookiecutterrc pytest-cython-0.1.1/.cookiecutterrc --- pytest-cython-0.1.0/.cookiecutterrc 2016-04-17 16:01:12.000000000 +0000 +++ pytest-cython-0.1.1/.cookiecutterrc 2021-01-26 13:00:57.000000000 +0000 @@ -8,7 +8,7 @@ # cookiepatcher gh:ionelmc/cookiecutter-pylibrary project-path # # See: -# https://pypi.python.org/pypi/cookiecutter +# https://pypi.org/project/cookiecutter # # Alternatively, you can run: # diff -Nru pytest-cython-0.1.0/debian/changelog pytest-cython-0.1.1/debian/changelog --- pytest-cython-0.1.0/debian/changelog 2019-08-27 09:10:12.000000000 +0000 +++ pytest-cython-0.1.1/debian/changelog 2021-05-24 02:04:03.000000000 +0000 @@ -1,3 +1,15 @@ +pytest-cython (0.1.1-1) unstable; urgency=medium + + * New upstream release. + * Update Standards-Version to 4.5.1. + * Update debhelper compatibility version to 12. + * Update debian/watch file format to 4. + * Set Rules-Requires-Root to no. + * Use PYBUILD_DISABLE=test rather than a blank dh_override_auto_test + target to disable tests. + + -- Leo Singer Sun, 23 May 2021 22:04:03 -0400 + pytest-cython (0.1.0-3) unstable; urgency=medium * Team upload. diff -Nru pytest-cython-0.1.0/debian/control pytest-cython-0.1.1/debian/control --- pytest-cython-0.1.0/debian/control 2019-08-27 09:09:43.000000000 +0000 +++ pytest-cython-0.1.1/debian/control 2021-05-24 01:59:02.000000000 +0000 @@ -3,12 +3,13 @@ Uploaders: Leo Singer Section: python Priority: optional -Build-Depends: debhelper-compat (= 9), +Build-Depends: debhelper-compat (= 12), dh-python, python3-all, python3-pytest, python3-setuptools (>= 0.6.4) -Standards-Version: 4.1.3 +Standards-Version: 4.5.1 +Rules-Requires-Root: no Vcs-Browser: https://salsa.debian.org/debian-astro-team/pytest-cython Vcs-Git: https://salsa.debian.org/debian-astro-team/pytest-cython.git Homepage: https://github.com/lgpage/pytest-cython diff -Nru pytest-cython-0.1.0/debian/rules pytest-cython-0.1.1/debian/rules --- pytest-cython-0.1.0/debian/rules 2019-08-27 09:09:42.000000000 +0000 +++ pytest-cython-0.1.1/debian/rules 2021-05-24 02:00:13.000000000 +0000 @@ -2,12 +2,12 @@ export PYBUILD_NAME := pytest-cython +# Disable unit tests, because they are based on tox and only +# work within a virtualenv. +export PYBUILD_DISABLE := test + # Prevent setuptools/distribute from accessing the internet. export http_proxy := http://127.0.9.1:9 %: dh $@ --with python3 --buildsystem=pybuild - -override_dh_auto_test: - # Intentionally left blank; pytest-cython's test suite - # is based on tox and only runs tests with a virtualenv. diff -Nru pytest-cython-0.1.0/debian/watch pytest-cython-0.1.1/debian/watch --- pytest-cython-0.1.0/debian/watch 2019-08-27 09:09:42.000000000 +0000 +++ pytest-cython-0.1.1/debian/watch 2021-05-24 01:29:18.000000000 +0000 @@ -1,2 +1,2 @@ -version=3 +version=4 https://pypi.debian.net/pytest-cython/pytest-cython-(\d+(?:\.\d+)*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) diff -Nru pytest-cython-0.1.0/docs/authors.rst pytest-cython-0.1.1/docs/authors.rst --- pytest-cython-0.1.0/docs/authors.rst 2016-04-03 18:18:59.000000000 +0000 +++ pytest-cython-0.1.1/docs/authors.rst 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.. include:: ../AUTHORS.rst diff -Nru pytest-cython-0.1.0/docs/conf.py pytest-cython-0.1.1/docs/conf.py --- pytest-cython-0.1.0/docs/conf.py 2016-04-03 18:18:59.000000000 +0000 +++ pytest-cython-0.1.1/docs/conf.py 2021-01-26 13:00:57.000000000 +0000 @@ -26,7 +26,7 @@ year = '2016' author = u'Logan Page' copyright = '{0}, {1}'.format(year, author) -version = release = u'0.1.0' +version = release = u'0.1.1' pygments_style = 'trac' templates_path = ['.'] diff -Nru pytest-cython-0.1.0/docs/index.rst pytest-cython-0.1.1/docs/index.rst --- pytest-cython-0.1.0/docs/index.rst 2016-04-03 18:18:59.000000000 +0000 +++ pytest-cython-0.1.1/docs/index.rst 2021-01-26 13:00:57.000000000 +0000 @@ -10,7 +10,6 @@ usage reference/index contributing - authors changelog Indices and tables diff -Nru pytest-cython-0.1.0/.gitignore pytest-cython-0.1.1/.gitignore --- pytest-cython-0.1.0/.gitignore 1970-01-01 00:00:00.000000000 +0000 +++ pytest-cython-0.1.1/.gitignore 2021-01-26 13:00:57.000000000 +0000 @@ -0,0 +1,67 @@ +*.py[cod] + +# C extensions +*.so + +# IDE +.vscode/settings.json + +# Packages +*.egg +*.egg-info +dist +build +eggs +.eggs +parts +bin +var +sdist +develop-eggs +.installed.cfg +lib +lib64 +venv*/ +.venv +pyvenv*/ + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +.coverage +.tox +.coverage.* +nosetests.xml +coverage.xml +htmlcov + +# Translations +*.mo + +# Mr Developer +.mr.developer.cfg +.project +.pydevproject +.idea +*.iml +*.komodoproject + +# Complexity +output/*.html +output/*/index.html + +# Sphinx +docs/_build + +.DS_Store +*~ +.*.sw[po] +.build +.ve +.env +.cache +.pytest +.bootstrap +.appveyor.token +*.bak diff -Nru pytest-cython-0.1.0/MANIFEST.in pytest-cython-0.1.1/MANIFEST.in --- pytest-cython-0.1.0/MANIFEST.in 2016-04-17 16:03:21.000000000 +0000 +++ pytest-cython-0.1.1/MANIFEST.in 2021-01-26 13:00:57.000000000 +0000 @@ -10,7 +10,6 @@ include .editorconfig include .isort.cfg -include AUTHORS.rst include CHANGELOG.rst include CONTRIBUTING.rst include LICENSE diff -Nru pytest-cython-0.1.0/PKG-INFO pytest-cython-0.1.1/PKG-INFO --- pytest-cython-0.1.0/PKG-INFO 2016-04-17 16:30:45.000000000 +0000 +++ pytest-cython-0.1.1/PKG-INFO 2021-01-26 13:01:58.035710600 +0000 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 2.1 Name: pytest-cython -Version: 0.1.0 +Version: 0.1.1 Summary: A plugin for testing Cython extension modules Home-page: https://github.com/lgpage/pytest-cython Author: Logan Page @@ -9,7 +9,55 @@ Description: Overview ======== + .. start-badges + .. list-table:: + :stub-columns: 1 + + * - docs + - |docs| + * - tests + - |travis| |appveyor| |requires| + * - package + - |version| |downloads| |wheel| |supported-versions| |supported-implementations| + + .. |docs| image:: https://readthedocs.org/projects/pytest-cython/badge/?style=flat + :target: https://readthedocs.org/projects/pytest-cython + :alt: Documentation Status + + .. |travis| image:: https://api.travis-ci.org/lgpage/pytest-cython.svg?branch=master + :alt: Travis-CI Build Status + :target: https://travis-ci.org/lgpage/pytest-cython + + .. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/lgpage/pytest-cython?branch=master&svg=true + :alt: AppVeyor Build Status + :target: https://ci.appveyor.com/project/lgpage/pytest-cython + + .. |requires| image:: https://requires.io/github/lgpage/pytest-cython/requirements.svg?branch=master + :alt: Requirements Status + :target: https://requires.io/github/lgpage/pytest-cython/requirements/?branch=master + + .. |version| image:: https://img.shields.io/pypi/v/pytest-cython.svg?style=flat + :alt: PyPI Package latest release + :target: https://pypi.org/project/pytest-cython + + .. |downloads| image:: https://img.shields.io/pypi/dm/pytest-cython.svg?style=flat + :alt: PyPI Package monthly downloads + :target: https://pypi.org/project/pytest-cython + + .. |wheel| image:: https://img.shields.io/pypi/wheel/pytest-cython.svg?style=flat + :alt: PyPI Wheel + :target: https://pypi.org/project/pytest-cython + + .. |supported-versions| image:: https://img.shields.io/pypi/pyversions/pytest-cython.svg?style=flat + :alt: Supported versions + :target: https://pypi.org/project/pytest-cython + + .. |supported-implementations| image:: https://img.shields.io/pypi/implementation/pytest-cython.svg?style=flat + :alt: Supported implementations + :target: https://pypi.org/project/pytest-cython + + .. end-badges This `Pytest`_ plugin allows for the doctesting of C extension modules for Python, specifically created through `Cython`_. @@ -69,31 +117,22 @@ `cookiecutter-pylibrary`_ templates. - .. _`Cookiecutter`: https://github.com/audreyr/cookiecutter + .. _`Cookiecutter`: https://github.com/cookiecutter/cookiecutter .. _`@hackebrot`: https://github.com/hackebrot .. _`@ionelmc`: https://github.com/ionelmc - .. _`MIT`: http://opensource.org/licenses/MIT - .. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause - .. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt - .. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0 + .. _`MIT`: https://opensource.org/licenses/MIT + .. _`BSD-3`: https://opensource.org/licenses/BSD-3-Clause + .. _`GNU GPL v3.0`: https://www.gnu.org/licenses/gpl-3.0.txt + .. _`Apache Software License 2.0`: https://www.apache.org/licenses/LICENSE-2.0 .. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin .. _`cookiecutter-pylibrary`: https://github.com/ionelmc/cookiecutter-pylibrary .. _`file an issue`: https://github.com/lgpage/pytest-cython/issues .. _`pytest`: https://github.com/pytest-dev/pytest - .. _`tox`: https://tox.readthedocs.org/en/latest/ - .. _`pip`: https://pypi.python.org/pypi/pip/ - .. _`PyPI`: https://pypi.python.org/pypi - .. _`Cython`: http://cython.org/ - .. _`Cython compiler directive`: http://docs.cython.org/src/reference/compilation.html#compiler-directives - - - Changelog - ========= - - 0.1.0 (2016-04-17) - ----------------------------------------- - - * First release on PyPI. + .. _`tox`: https://tox.readthedocs.io/en/latest/ + .. _`pip`: https://pypi.org/project/pip/ + .. _`PyPI`: https://pypi.org + .. _`Cython`: https://cython.org/ + .. _`Cython compiler directive`: https://docs.cython.org/en/latest/src/reference/compilation.html#compiler-directives Keywords: pytest,py.test,cython,doctest Platform: UNKNOWN @@ -113,3 +152,4 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Software Development :: Testing Classifier: Topic :: Utilities +Description-Content-Type: text/x-rst diff -Nru pytest-cython-0.1.0/README.rst pytest-cython-0.1.1/README.rst --- pytest-cython-0.1.0/README.rst 2016-04-17 16:01:12.000000000 +0000 +++ pytest-cython-0.1.1/README.rst 2021-01-26 13:00:57.000000000 +0000 @@ -17,7 +17,7 @@ :target: https://readthedocs.org/projects/pytest-cython :alt: Documentation Status -.. |travis| image:: https://travis-ci.org/lgpage/pytest-cython.svg?branch=master +.. |travis| image:: https://api.travis-ci.org/lgpage/pytest-cython.svg?branch=master :alt: Travis-CI Build Status :target: https://travis-ci.org/lgpage/pytest-cython @@ -31,23 +31,23 @@ .. |version| image:: https://img.shields.io/pypi/v/pytest-cython.svg?style=flat :alt: PyPI Package latest release - :target: https://pypi.python.org/pypi/pytest-cython + :target: https://pypi.org/project/pytest-cython .. |downloads| image:: https://img.shields.io/pypi/dm/pytest-cython.svg?style=flat :alt: PyPI Package monthly downloads - :target: https://pypi.python.org/pypi/pytest-cython + :target: https://pypi.org/project/pytest-cython .. |wheel| image:: https://img.shields.io/pypi/wheel/pytest-cython.svg?style=flat :alt: PyPI Wheel - :target: https://pypi.python.org/pypi/pytest-cython + :target: https://pypi.org/project/pytest-cython .. |supported-versions| image:: https://img.shields.io/pypi/pyversions/pytest-cython.svg?style=flat :alt: Supported versions - :target: https://pypi.python.org/pypi/pytest-cython + :target: https://pypi.org/project/pytest-cython .. |supported-implementations| image:: https://img.shields.io/pypi/implementation/pytest-cython.svg?style=flat :alt: Supported implementations - :target: https://pypi.python.org/pypi/pytest-cython + :target: https://pypi.org/project/pytest-cython .. end-badges @@ -109,19 +109,19 @@ `cookiecutter-pylibrary`_ templates. -.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter +.. _`Cookiecutter`: https://github.com/cookiecutter/cookiecutter .. _`@hackebrot`: https://github.com/hackebrot .. _`@ionelmc`: https://github.com/ionelmc -.. _`MIT`: http://opensource.org/licenses/MIT -.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause -.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt -.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0 +.. _`MIT`: https://opensource.org/licenses/MIT +.. _`BSD-3`: https://opensource.org/licenses/BSD-3-Clause +.. _`GNU GPL v3.0`: https://www.gnu.org/licenses/gpl-3.0.txt +.. _`Apache Software License 2.0`: https://www.apache.org/licenses/LICENSE-2.0 .. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin .. _`cookiecutter-pylibrary`: https://github.com/ionelmc/cookiecutter-pylibrary .. _`file an issue`: https://github.com/lgpage/pytest-cython/issues .. _`pytest`: https://github.com/pytest-dev/pytest -.. _`tox`: https://tox.readthedocs.org/en/latest/ -.. _`pip`: https://pypi.python.org/pypi/pip/ -.. _`PyPI`: https://pypi.python.org/pypi -.. _`Cython`: http://cython.org/ -.. _`Cython compiler directive`: http://docs.cython.org/src/reference/compilation.html#compiler-directives +.. _`tox`: https://tox.readthedocs.io/en/latest/ +.. _`pip`: https://pypi.org/project/pip/ +.. _`PyPI`: https://pypi.org +.. _`Cython`: https://cython.org/ +.. _`Cython compiler directive`: https://docs.cython.org/en/latest/src/reference/compilation.html#compiler-directives diff -Nru pytest-cython-0.1.0/setup.cfg pytest-cython-0.1.1/setup.cfg --- pytest-cython-0.1.0/setup.cfg 2016-04-17 16:30:45.000000000 +0000 +++ pytest-cython-0.1.1/setup.cfg 2021-01-26 13:01:58.039710500 +0000 @@ -8,7 +8,7 @@ max-line-length = 140 exclude = tests/*,*/migrations/*,*/south_migrations/* -[pytest] +[tool:pytest] norecursedirs = .git .tox @@ -45,5 +45,4 @@ [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0 diff -Nru pytest-cython-0.1.0/setup.py pytest-cython-0.1.1/setup.py --- pytest-cython-0.1.0/setup.py 2016-04-17 16:01:12.000000000 +0000 +++ pytest-cython-0.1.1/setup.py 2021-01-26 13:00:57.000000000 +0000 @@ -3,45 +3,35 @@ from __future__ import absolute_import from __future__ import print_function -import io -import re - from glob import glob -from os.path import basename -from os.path import dirname -from os.path import join -from os.path import splitext +from os import path from setuptools import find_packages from setuptools import setup +this_directory = path.abspath(path.dirname(__file__)) -def read(*names, **kwargs): - return io.open( - join(dirname(__file__), *names), - encoding=kwargs.get('encoding', 'utf8') - ).read() +with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as readme_file: + long_description = readme_file.read() setup( name='pytest-cython', - version='0.1.0', - license='MIT', + version='0.1.1', description='A plugin for testing Cython extension modules', - long_description='%s\n%s' % ( - re.compile('^.. start-badges.*^.. end-badges', re.M | re.S).sub('', read('README.rst')), - re.sub(':[a-z]+:`~?(.*?)`', r'``\1``', read('CHANGELOG.rst')) - ), + long_description=long_description, + long_description_content_type='text/x-rst', author='Logan Page', author_email='page.lg@gmail.com', + license='MIT', url='https://github.com/lgpage/pytest-cython', packages=find_packages('src'), package_dir={'': 'src'}, - py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')], + py_modules=[path.splitext(path.basename(p))[0] for p in glob('src/*.py')], include_package_data=True, zip_safe=False, classifiers=[ - # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers + # complete classifier list: https://pypi.org/pypi?%3Aaction=list_classifiers 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', diff -Nru pytest-cython-0.1.0/src/pytest_cython/__init__.py pytest-cython-0.1.1/src/pytest_cython/__init__.py --- pytest-cython-0.1.0/src/pytest_cython/__init__.py 2016-04-04 17:09:45.000000000 +0000 +++ pytest-cython-0.1.1/src/pytest_cython/__init__.py 2021-01-26 13:00:57.000000000 +0000 @@ -1 +1 @@ -__version__ = "0.1.0" +__version__ = "0.1.1" diff -Nru pytest-cython-0.1.0/src/pytest_cython/plugin.py pytest-cython-0.1.1/src/pytest_cython/plugin.py --- pytest-cython-0.1.0/src/pytest_cython/plugin.py 2016-04-17 14:12:12.000000000 +0000 +++ pytest-cython-0.1.1/src/pytest_cython/plugin.py 2021-01-26 13:00:57.000000000 +0000 @@ -1,7 +1,10 @@ """ discover and run doctests in Cython extension modules.""" from __future__ import absolute_import +import keyword +import re import sys +import tokenize import pytest try: @@ -67,7 +70,37 @@ # only run test if matching .so and .pyx files exist # create addoption for this ?? if pyx_file is not None: - return DoctestModule(path, parent) + if hasattr(DoctestModule, 'from_parent'): + return DoctestModule.from_parent(parent, fspath=path) + else: + # Backwards-compat for older pytest + return DoctestModule(path, parent) + + +# XXX if python2 support is dropped just use str.isidentifier +def _isidentifier(s): + return (re.match('^' + tokenize.Name + '$', s) + and not keyword.iskeyword(s)) + + +# XXX copied from pytest but modified to use py.path instead; if Python 2 +# support is dropped and support for more modern pytest added we can just use +# the one from pytest +def _resolve_package_path(path): + """Return the Python package path by looking for the last + directory upwards which still contains an __init__.py. + + Returns None if it can not be determined. + """ + result = None + for parent in path.parts(reverse=True): + if parent.isdir(): + if not parent.join('__init__.py').isfile(): + break + if not _isidentifier(parent.basename): + break + result = parent + return result # XXX patch pyimport to support PEP 3149 @@ -84,12 +117,20 @@ basename = fspath.basename.split('.')[0] fspath = fspath.new(purebasename=basename, ext=fspath.ext) - pkgroot = fspath.dirpath() - fspath._ensuresyspath(True, pkgroot) - names = fspath.relto(pkgroot).split(fspath.sep) - modname = ".".join(names).replace(ext_suffix, "") - __import__(modname) - return sys.modules[modname] + pkg_path = _resolve_package_path(fspath) + if pkg_path is not None: + pkg_root = pkg_path.dirname + names = fspath.relto(pkg_root).split(fspath.sep) + if names[-1].startswith('__init__.'): + names.pop() + module_name = '.'.join(names).replace(ext_suffix, '') + else: + pkg_root = fspath.parent + module_name = fspath.basename.replace(ext_suffix, '') + + fspath._ensuresyspath(True, pkg_root) + __import__(module_name) + return sys.modules[module_name] class DoctestModule(pytest.Module): @@ -117,7 +158,12 @@ checker=checker) for test in finder.find(module, module.__name__): if test.examples: # skip empty doctests - yield DoctestItem(test.name, self, runner, test) + if hasattr(DoctestItem, 'from_parent'): + yield DoctestItem.from_parent(self, name=test.name, + runner=runner, dtest=test) + else: + # Backwards-compat for older pytest + yield DoctestItem(test.name, self, runner, test) def _importtestmodule(self): # we assume we are only called once per module diff -Nru pytest-cython-0.1.0/src/pytest_cython.egg-info/PKG-INFO pytest-cython-0.1.1/src/pytest_cython.egg-info/PKG-INFO --- pytest-cython-0.1.0/src/pytest_cython.egg-info/PKG-INFO 2016-04-17 16:30:42.000000000 +0000 +++ pytest-cython-0.1.1/src/pytest_cython.egg-info/PKG-INFO 2021-01-26 13:01:57.000000000 +0000 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 2.1 Name: pytest-cython -Version: 0.1.0 +Version: 0.1.1 Summary: A plugin for testing Cython extension modules Home-page: https://github.com/lgpage/pytest-cython Author: Logan Page @@ -9,7 +9,55 @@ Description: Overview ======== + .. start-badges + .. list-table:: + :stub-columns: 1 + + * - docs + - |docs| + * - tests + - |travis| |appveyor| |requires| + * - package + - |version| |downloads| |wheel| |supported-versions| |supported-implementations| + + .. |docs| image:: https://readthedocs.org/projects/pytest-cython/badge/?style=flat + :target: https://readthedocs.org/projects/pytest-cython + :alt: Documentation Status + + .. |travis| image:: https://api.travis-ci.org/lgpage/pytest-cython.svg?branch=master + :alt: Travis-CI Build Status + :target: https://travis-ci.org/lgpage/pytest-cython + + .. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/lgpage/pytest-cython?branch=master&svg=true + :alt: AppVeyor Build Status + :target: https://ci.appveyor.com/project/lgpage/pytest-cython + + .. |requires| image:: https://requires.io/github/lgpage/pytest-cython/requirements.svg?branch=master + :alt: Requirements Status + :target: https://requires.io/github/lgpage/pytest-cython/requirements/?branch=master + + .. |version| image:: https://img.shields.io/pypi/v/pytest-cython.svg?style=flat + :alt: PyPI Package latest release + :target: https://pypi.org/project/pytest-cython + + .. |downloads| image:: https://img.shields.io/pypi/dm/pytest-cython.svg?style=flat + :alt: PyPI Package monthly downloads + :target: https://pypi.org/project/pytest-cython + + .. |wheel| image:: https://img.shields.io/pypi/wheel/pytest-cython.svg?style=flat + :alt: PyPI Wheel + :target: https://pypi.org/project/pytest-cython + + .. |supported-versions| image:: https://img.shields.io/pypi/pyversions/pytest-cython.svg?style=flat + :alt: Supported versions + :target: https://pypi.org/project/pytest-cython + + .. |supported-implementations| image:: https://img.shields.io/pypi/implementation/pytest-cython.svg?style=flat + :alt: Supported implementations + :target: https://pypi.org/project/pytest-cython + + .. end-badges This `Pytest`_ plugin allows for the doctesting of C extension modules for Python, specifically created through `Cython`_. @@ -69,31 +117,22 @@ `cookiecutter-pylibrary`_ templates. - .. _`Cookiecutter`: https://github.com/audreyr/cookiecutter + .. _`Cookiecutter`: https://github.com/cookiecutter/cookiecutter .. _`@hackebrot`: https://github.com/hackebrot .. _`@ionelmc`: https://github.com/ionelmc - .. _`MIT`: http://opensource.org/licenses/MIT - .. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause - .. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt - .. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0 + .. _`MIT`: https://opensource.org/licenses/MIT + .. _`BSD-3`: https://opensource.org/licenses/BSD-3-Clause + .. _`GNU GPL v3.0`: https://www.gnu.org/licenses/gpl-3.0.txt + .. _`Apache Software License 2.0`: https://www.apache.org/licenses/LICENSE-2.0 .. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin .. _`cookiecutter-pylibrary`: https://github.com/ionelmc/cookiecutter-pylibrary .. _`file an issue`: https://github.com/lgpage/pytest-cython/issues .. _`pytest`: https://github.com/pytest-dev/pytest - .. _`tox`: https://tox.readthedocs.org/en/latest/ - .. _`pip`: https://pypi.python.org/pypi/pip/ - .. _`PyPI`: https://pypi.python.org/pypi - .. _`Cython`: http://cython.org/ - .. _`Cython compiler directive`: http://docs.cython.org/src/reference/compilation.html#compiler-directives - - - Changelog - ========= - - 0.1.0 (2016-04-17) - ----------------------------------------- - - * First release on PyPI. + .. _`tox`: https://tox.readthedocs.io/en/latest/ + .. _`pip`: https://pypi.org/project/pip/ + .. _`PyPI`: https://pypi.org + .. _`Cython`: https://cython.org/ + .. _`Cython compiler directive`: https://docs.cython.org/en/latest/src/reference/compilation.html#compiler-directives Keywords: pytest,py.test,cython,doctest Platform: UNKNOWN @@ -113,3 +152,4 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Software Development :: Testing Classifier: Topic :: Utilities +Description-Content-Type: text/x-rst diff -Nru pytest-cython-0.1.0/src/pytest_cython.egg-info/SOURCES.txt pytest-cython-0.1.1/src/pytest_cython.egg-info/SOURCES.txt --- pytest-cython-0.1.0/src/pytest_cython.egg-info/SOURCES.txt 2016-04-17 16:30:45.000000000 +0000 +++ pytest-cython-0.1.1/src/pytest_cython.egg-info/SOURCES.txt 2021-01-26 13:01:57.000000000 +0000 @@ -2,8 +2,8 @@ .cookiecutterrc .coveragerc .editorconfig +.gitignore .travis.yml -AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst LICENSE @@ -19,7 +19,6 @@ ci/bootstrap.py ci/templates/.travis.yml ci/templates/appveyor.yml -docs/authors.rst docs/changelog.rst docs/conf.py docs/contributing.rst @@ -44,6 +43,19 @@ tests/test_pytest_cython.py tests/example-project/.gitignore tests/example-project/setup.py +tests/example-project/build/temp.linux-x86_64-2.7/src/pypackage/cython_ext_module.o +tests/example-project/build/temp.linux-x86_64-2.7/src/pypackage/wrap_c_ext_module.o +tests/example-project/build/temp.linux-x86_64-2.7/src/pypackage/wrap_cpp_ext_module.o +tests/example-project/build/temp.linux-x86_64-3.6/src/pypackage/cython_ext_module.o +tests/example-project/build/temp.linux-x86_64-3.6/src/pypackage/wrap_c_ext_module.o +tests/example-project/build/temp.linux-x86_64-3.6/src/pypackage/wrap_cpp_ext_module.o +tests/example-project/build/temp.linux-x86_64-3.7/src/pypackage/cython_ext_module.o +tests/example-project/build/temp.linux-x86_64-3.7/src/pypackage/wrap_c_ext_module.o +tests/example-project/build/temp.linux-x86_64-3.7/src/pypackage/wrap_cpp_ext_module.o +tests/example-project/build/temp.linux-x86_64-3.8/src/pypackage/cython_ext_module.o +tests/example-project/build/temp.linux-x86_64-3.8/src/pypackage/wrap_c_ext_module.o +tests/example-project/build/temp.linux-x86_64-3.8/src/pypackage/wrap_cpp_ext_module.o +tests/example-project/src/__init__.py tests/example-project/src/clib/CMakeLists.txt tests/example-project/src/clib/sqrc.c tests/example-project/src/clib/sqrcpp.cpp Binary files /tmp/tmpaqska69u/1LmpGNQCx8/pytest-cython-0.1.0/tests/example-project/build/temp.linux-x86_64-2.7/src/pypackage/cython_ext_module.o and /tmp/tmpaqska69u/7TyHl7UhF7/pytest-cython-0.1.1/tests/example-project/build/temp.linux-x86_64-2.7/src/pypackage/cython_ext_module.o differ Binary files /tmp/tmpaqska69u/1LmpGNQCx8/pytest-cython-0.1.0/tests/example-project/build/temp.linux-x86_64-2.7/src/pypackage/wrap_c_ext_module.o and /tmp/tmpaqska69u/7TyHl7UhF7/pytest-cython-0.1.1/tests/example-project/build/temp.linux-x86_64-2.7/src/pypackage/wrap_c_ext_module.o differ Binary files /tmp/tmpaqska69u/1LmpGNQCx8/pytest-cython-0.1.0/tests/example-project/build/temp.linux-x86_64-2.7/src/pypackage/wrap_cpp_ext_module.o and /tmp/tmpaqska69u/7TyHl7UhF7/pytest-cython-0.1.1/tests/example-project/build/temp.linux-x86_64-2.7/src/pypackage/wrap_cpp_ext_module.o differ Binary files /tmp/tmpaqska69u/1LmpGNQCx8/pytest-cython-0.1.0/tests/example-project/build/temp.linux-x86_64-3.6/src/pypackage/cython_ext_module.o and /tmp/tmpaqska69u/7TyHl7UhF7/pytest-cython-0.1.1/tests/example-project/build/temp.linux-x86_64-3.6/src/pypackage/cython_ext_module.o differ Binary files /tmp/tmpaqska69u/1LmpGNQCx8/pytest-cython-0.1.0/tests/example-project/build/temp.linux-x86_64-3.6/src/pypackage/wrap_c_ext_module.o and /tmp/tmpaqska69u/7TyHl7UhF7/pytest-cython-0.1.1/tests/example-project/build/temp.linux-x86_64-3.6/src/pypackage/wrap_c_ext_module.o differ Binary files /tmp/tmpaqska69u/1LmpGNQCx8/pytest-cython-0.1.0/tests/example-project/build/temp.linux-x86_64-3.6/src/pypackage/wrap_cpp_ext_module.o and /tmp/tmpaqska69u/7TyHl7UhF7/pytest-cython-0.1.1/tests/example-project/build/temp.linux-x86_64-3.6/src/pypackage/wrap_cpp_ext_module.o differ Binary files /tmp/tmpaqska69u/1LmpGNQCx8/pytest-cython-0.1.0/tests/example-project/build/temp.linux-x86_64-3.7/src/pypackage/cython_ext_module.o and /tmp/tmpaqska69u/7TyHl7UhF7/pytest-cython-0.1.1/tests/example-project/build/temp.linux-x86_64-3.7/src/pypackage/cython_ext_module.o differ Binary files /tmp/tmpaqska69u/1LmpGNQCx8/pytest-cython-0.1.0/tests/example-project/build/temp.linux-x86_64-3.7/src/pypackage/wrap_c_ext_module.o and /tmp/tmpaqska69u/7TyHl7UhF7/pytest-cython-0.1.1/tests/example-project/build/temp.linux-x86_64-3.7/src/pypackage/wrap_c_ext_module.o differ Binary files /tmp/tmpaqska69u/1LmpGNQCx8/pytest-cython-0.1.0/tests/example-project/build/temp.linux-x86_64-3.7/src/pypackage/wrap_cpp_ext_module.o and /tmp/tmpaqska69u/7TyHl7UhF7/pytest-cython-0.1.1/tests/example-project/build/temp.linux-x86_64-3.7/src/pypackage/wrap_cpp_ext_module.o differ Binary files /tmp/tmpaqska69u/1LmpGNQCx8/pytest-cython-0.1.0/tests/example-project/build/temp.linux-x86_64-3.8/src/pypackage/cython_ext_module.o and /tmp/tmpaqska69u/7TyHl7UhF7/pytest-cython-0.1.1/tests/example-project/build/temp.linux-x86_64-3.8/src/pypackage/cython_ext_module.o differ Binary files /tmp/tmpaqska69u/1LmpGNQCx8/pytest-cython-0.1.0/tests/example-project/build/temp.linux-x86_64-3.8/src/pypackage/wrap_c_ext_module.o and /tmp/tmpaqska69u/7TyHl7UhF7/pytest-cython-0.1.1/tests/example-project/build/temp.linux-x86_64-3.8/src/pypackage/wrap_c_ext_module.o differ Binary files /tmp/tmpaqska69u/1LmpGNQCx8/pytest-cython-0.1.0/tests/example-project/build/temp.linux-x86_64-3.8/src/pypackage/wrap_cpp_ext_module.o and /tmp/tmpaqska69u/7TyHl7UhF7/pytest-cython-0.1.1/tests/example-project/build/temp.linux-x86_64-3.8/src/pypackage/wrap_cpp_ext_module.o differ diff -Nru pytest-cython-0.1.0/tests/example-project/setup.py pytest-cython-0.1.1/tests/example-project/setup.py --- pytest-cython-0.1.0/tests/example-project/setup.py 2016-04-17 14:12:12.000000000 +0000 +++ pytest-cython-0.1.1/tests/example-project/setup.py 2021-01-26 13:00:57.000000000 +0000 @@ -55,11 +55,12 @@ exclude_files = ['__init__.py'] include_dirs = [os.path.abspath(os.path.join(root, 'src/clib'))] for file_ in ext_files: - if os.path.basename(file_) in exclude_files: + basename = os.path.basename(file_) + if basename in exclude_files: continue - pyx_file, _ = os.path.splitext(file_) + pyx_file, _ = os.path.splitext(basename) extensions.append(Extension( - pyx_file, + 'src.pypackage.' + pyx_file, [file_], define_macros=macros, include_dirs=include_dirs, @@ -99,7 +100,7 @@ setup( name='pytest-cython', - version='0.1.0', + version='0.1.1', description="Example Cython project for pytest-cython tests", zip_safe=False, cmdclass={'build_ext': optional_build_ext}, diff -Nru pytest-cython-0.1.0/tests/test_pytest_cython.py pytest-cython-0.1.1/tests/test_pytest_cython.py --- pytest-cython-0.1.0/tests/test_pytest_cython.py 2016-04-17 14:12:12.000000000 +0000 +++ pytest-cython-0.1.1/tests/test_pytest_cython.py 2021-01-26 13:00:54.000000000 +0000 @@ -15,9 +15,9 @@ assert module.check() result = testdir.runpytest('-vv', '--doctest-cython', str(module)) result.stdout.fnmatch_lines([ - "*Eggs.__init__ *PASSED", - "*Eggs.blarg*PASSED", - "*Eggs.fubar*PASSED", + "*Eggs.__init__ *PASSED*", + "*Eggs.blarg*PASSED*", + "*Eggs.fubar*PASSED*", ]) assert result.ret == 0 @@ -27,7 +27,7 @@ assert module.check() result = testdir.runpytest('-vv', '--doctest-cython', str(module)) result.stdout.fnmatch_lines([ - "*sqr*PASSED", + "*sqr*PASSED*", ]) assert result.ret == 0 @@ -37,7 +37,7 @@ assert module.check() result = testdir.runpytest('-vv', '--doctest-cython', str(module)) result.stdout.fnmatch_lines([ - "*sqr*PASSED", + "*sqr*PASSED*", ]) assert result.ret == 0 @@ -47,8 +47,8 @@ assert module.check() result = testdir.runpytest('-vv', '--doctest-cython', str(module)) result.stdout.fnmatch_lines([ - "*Eggs.__init__*PASSED", - "*Eggs.foo*PASSED", - "*foo*PASSED", + "*Eggs.__init__*PASSED*", + "*Eggs.foo*PASSED*", + "*foo*PASSED*", ]) assert result.ret == 0 diff -Nru pytest-cython-0.1.0/tox.ini pytest-cython-0.1.1/tox.ini --- pytest-cython-0.1.0/tox.ini 2016-04-17 15:24:44.000000000 +0000 +++ pytest-cython-0.1.1/tox.ini 2021-01-26 13:00:57.000000000 +0000 @@ -11,11 +11,11 @@ basepython = pypy: pypy py26: {env:TOXPYTHON:python2.6} - {py27,docs}: {env:TOXPYTHON:python2.7} + py27: {env:TOXPYTHON:python2.7} py33: {env:TOXPYTHON:python3.3} py34: {env:TOXPYTHON:python3.4} py35: {env:TOXPYTHON:python3.5} - {clean,check,report,extension-coveralls,coveralls,spell}: python3.4 + {clean,check,docs,report,extension-coveralls,coveralls,spell}: python3 setenv = PYTHONPATH = {toxinidir}/tests PYTHONUNBUFFERED = yes