Package Details: python-dephell-setuptools 0.2.5-1

Git Clone URL: https://aur.archlinux.org/python-dephell-setuptools.git (read-only, click to copy)
Package Base: python-dephell-setuptools
Description: Extract meta information from setup.py
Upstream URL: https://github.com/dephell/dephell_setuptools
Licenses: MIT
Submitter: arojas
Maintainer: gkbrk
Last Packager: gkbrk
Votes: 3
Popularity: 1.52
First Submitted: 2022-08-01 08:20 (UTC)
Last Updated: 2022-09-01 14:39 (UTC)

Latest Comments

cmsigler commented on 2022-08-16 12:28 (UTC)

Hi all,

python-setuptools 1:62.1.0-1 has been flagged as out-of-date as the latest upstream version is 65.0.1. Once this is updated, maybe this bug will "evaporate?" :) HTH.

Clemmitt Sigler

elabjer commented on 2022-08-08 05:41 (UTC)

it builds w/o pytest.

fsyy commented on 2022-08-05 16:31 (UTC) (edited on 2022-08-05 16:32 (UTC) by fsyy)

there's no maintainer for that package.

does it work without the pytest?

something like that:

PKGBUILD:


# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Eli Schwartz <eschwartz@archlinux.org>

pkgname=python-dephell-setuptools
_pyname=dephell_setuptools
pkgver=0.2.5
pkgrel=1
pkgdesc='Extract meta information from setup.py'
arch=(any)
url="https://github.com/dephell/$_pyname"
license=(MIT)
depends=(python-setuptools)
makedepends=(python-build python-installer python-wheel)
checkdepends=(python-pytest)
_archive="$_pyname-v.$pkgver"
source=("https://github.com/dephell/dephell_setuptools/archive/v.$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('8c635643fec3ce191734ad1918ee871e97e5b3555782f1a709b1408abbc00f75')

prepare() {
    cd "$_archive"
    # pycache slipped into release tarballs
    find . -name \*.pyc -delete
}

build(){
    cd "$_archive"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_archive"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}

makepkg -si

K4LCIFER commented on 2022-08-04 01:52 (UTC)

Won't build due to errors in check:

==> Starting check()...
============================= test session starts ==============================
platform linux -- Python 3.10.5, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/<username>/.cache/yay/python-dephell-setuptools/src/dephell_setuptools-v.0.2.5
plugins: anyio-3.6.1
collected 5 items                                                              

tests/test_cfg.py F                                                      [ 20%]
tests/test_cmd.py .                                                      [ 40%]
tests/test_static.py ...                                                 [100%]

=================================== FAILURES ===================================
___________________________________ test_cfg ___________________________________

    def test_cfg():
        path = Path(__file__).parent / 'setups' / 'setup.cfg'
>       actual = CfgReader(path).content

tests/test_cfg.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
dephell_setuptools/_cached_property.py:17: in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <dephell_setuptools._cfg.CfgReader object at 0x7fc1a734abf0>

    @cached_property
    def content(self) -> Dict[str, Any]:
        path = self.path
        if path.name == 'setup.py':
            path = path.parent / 'setup.cfg'
            if not path.exists():
                raise FileNotFoundError(str(path))

        parser = ConfigParser()
        parser.read(str(path))

        options = deepcopy(parser._sections)  # type: ignore
        for section, content in options.items():
            for k, v in content.items():
                options[section][k] = ('', v)

        container = type('container', (), dict.fromkeys(FIELDS))()
>       ConfigOptionsHandler(container, options).parse()
E       TypeError: ConfigOptionsHandler.__init__() missing 2 required positional arguments: 'ignore_option_errors' and 'ensure_discovered'

dephell_setuptools/_cfg.py:42: TypeError
=========================== short test summary info ============================
FAILED tests/test_cfg.py::test_cfg - TypeError: ConfigOptionsHandler.__init__...
========================= 1 failed, 4 passed in 1.10s ==========================
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-dephell-setuptools

kayaman commented on 2022-08-02 06:03 (UTC) (edited on 2022-08-05 06:51 (UTC) by kayaman)

Same here, litte more info:

============================= test session starts ==============================
platform linux -- Python 3.10.5, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/chri/Downloads/aur/python-dephell-setuptools/src/dephell_setuptools-v.0.2.5
collected 5 items

tests/test_cfg.py F                                                      [ 20%]
tests/test_cmd.py .                                                      [ 40%]
tests/test_static.py ...                                                 [100%]

=================================== FAILURES ===================================
___________________________________ test_cfg ___________________________________

    def test_cfg():
        path = Path(__file__).parent / 'setups' / 'setup.cfg'
>       actual = CfgReader(path).content

tests/test_cfg.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
dephell_setuptools/_cached_property.py:17: in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <dephell_setuptools._cfg.CfgReader object at 0x7f93fea7a860>

    @cached_property
    def content(self) -> Dict[str, Any]:
        path = self.path
        if path.name == 'setup.py':
            path = path.parent / 'setup.cfg'
            if not path.exists():
                raise FileNotFoundError(str(path))

        parser = ConfigParser()
        parser.read(str(path))

        options = deepcopy(parser._sections)  # type: ignore
        for section, content in options.items():
            for k, v in content.items():
                options[section][k] = ('', v)

        container = type('container', (), dict.fromkeys(FIELDS))()
>       ConfigOptionsHandler(container, options).parse()
E       TypeError: ConfigOptionsHandler.__init__() missing 2 required positional arguments: 'ignore_option_errors' and 'ensure_discovered'

dephell_setuptools/_cfg.py:42: TypeError
=========================== short test summary info ============================
FAILED tests/test_cfg.py::test_cfg - TypeError: ConfigOptionsHandler.__init__...
========================= 1 failed, 4 passed in 0.81s ==========================

I did remove all the orphans since this pkg seems to be abandoned

klauswaugh commented on 2022-08-01 22:50 (UTC)

I keep getting the following error when trying to install this package

==================================================================================================== short test summary info ====================================================================================================
FAILED tests/test_cfg.py::test_cfg - TypeError: ConfigOptionsHandler.__init__() missing 2 required positional arguments: 'ignore_option_errors' and 'ensure_discovered'
================================================================================================== 1 failed, 4 passed in 1.20s ==================================================================================================
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-dephell-setuptools