Package Details: python-coveralls 4.0.1-1

Git Clone URL: https://aur.archlinux.org/python-coveralls.git (read-only, click to copy)
Package Base: python-coveralls
Description: Python integration with coveralls.io
Upstream URL: https://github.com/thekevjames/coveralls-python
Licenses: MIT
Submitter: GI_Jack
Maintainer: jaxvanyang
Last Packager: jaxvanyang
Votes: 3
Popularity: 0.000000
First Submitted: 2018-09-09 01:46 (UTC)
Last Updated: 2024-08-20 06:49 (UTC)

Latest Comments

iyanmv commented on 2022-09-16 16:21 (UTC)

Hi, consider modifying the check() function. I tested the following with extra-x86_64-build and it works.

check() {
    cd "${srcdir}/${pkgname}"
    python -m installer --destdir="$srcdir/test" dist/*.whl
    local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
    export PYTHONPATH="$srcdir"/test/usr/lib/python${python_version}/site-packages
    python -m pytest -k 'not test_reporter_with_branches' tests
}

actionless commented on 2022-09-09 08:29 (UTC)

test target of the build still failing with, if i recall correct, the same message:

======================================== FAILURES =========================================
________________________ ReporterTest.test_reporter_with_branches _________________________

self = <tests.api.reporter_test.ReporterTest testMethod=test_reporter_with_branches>

    def test_reporter_with_branches(self):
        subprocess.call(['coverage', 'run', '--branch', '--omit=**/.tox/*',
                         'runtests.py'], cwd=EXAMPLE_DIR)
        results = Coveralls(repo_token='xxx').get_coverage()
        assert len(results) == 2

        # Branches are expressed as four values each in a flat list
        assert not len(results[0]['branches']) % 4
        assert not len(results[1]['branches']) % 4

        expected_results = self.make_test_results(with_branches=True)
>       assert_coverage(results[0], expected_results[0])

/home/lie/.cache/pikaur/build/python-coveralls/src/python-coveralls/tests/api/reporter_test.py:177:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

actual = {'branches': [5, 0, 6, 1, 5, 0, ...], 'coverage': [1, 1, None, None, 1, None, ...], 'name': 'project.py', 'source': 'd...1:\n        print(\'condition tested both
ways\')\n    if cond2:\n        print(\'condition not tested both ways\')\n'}
expected = {'branches': [13, 0, 14, 1, 13, 0, ...], 'coverage': [1, 1, None, None, 1, None, ...], 'name': 'project.py', 'source':...1:\n        print(\'condition tested bot
h ways\')\n    if cond2:\n        print(\'condition not tested both ways\')\n'}

    def assert_coverage(actual, expected):
        assert actual['source'].strip() == expected['source'].strip()
        assert actual['name'] == expected['name']
        assert actual['coverage'] == expected['coverage']
>       assert actual.get('branches') == expected.get('branches')
E       assert [5, 0, 6, 1, 5, 0, ...] == [13, 0, 14, 1, 13, 0, ...]
E         At index 0 diff: 5 != 13
E         Left contains 8 more items, first extra item: 15
E         Use -v to get more diff

/home/lie/.cache/pikaur/build/python-coveralls/src/python-coveralls/tests/api/reporter_test.py:17: AssertionError
---------------------------------- Captured stdout call -----------------------------------
world
condition not tested both ways
condition tested both ways
condition not tested both ways
================================= short test summary info =================================

dustovich commented on 2022-09-08 01:18 (UTC)

It looks like python-coverage is at 6.2 now. Does that work for updating this package. Flagging as out of date now.

lmartinez-mirror commented on 2021-11-11 23:08 (UTC) (edited on 2021-11-16 22:29 (UTC) by lmartinez-mirror)

Version 3.3.1 is out, however I cannot update this package yet because it does not currently work with Arch's python-coverage just yet.

See here for more details.

EDIT: This will probably not work until python-coverage gets bumped to 6.1.2. Stay tuned.

yochananmarqos commented on 2020-08-16 01:28 (UTC)

@GI_Jack: Thanks for updating it. However, for some strange reason, python2-setuptools is in makedepends() for no particular reason. ;)

yochananmarqos commented on 2020-08-08 15:49 (UTC)

Updated PKGBUILD.

actionless commented on 2019-10-23 20:00 (UTC)

==> ERROR: makedepends can not be set inside a package function