Package Details: python-configparser 7.1.0-1

Git Clone URL: https://aur.archlinux.org/python-configparser.git (read-only, click to copy)
Package Base: python-configparser
Description: backport of configparser from Python 3
Upstream URL: https://github.com/jaraco/configparser/
Keywords: config parser python
Licenses: MIT
Submitter: PMay
Maintainer: fryfrog (wallabra, rurkilafyi)
Last Packager: fryfrog
Votes: 11
Popularity: 0.97
First Submitted: 2020-04-07 06:47 (UTC)
Last Updated: 2024-08-21 15:56 (UTC)

Latest Comments

1 2 Next › Last »

fryfrog commented on 2023-12-20 17:49 (UTC)

This package is a backport of the refreshed and enhanced ConfigParser from later Python versions. To use the backport instead of the built-in version, simply import it explicitly as a backport.

Hey @drejeck, I think I just tried to summarize what it was from their own description. Happy to change it to be more accurate, what would you suggest?

dreieck commented on 2023-12-20 16:42 (UTC)

Package description "backport of configparser from Python 3" seems wrong:

  • It is a Python 3 package, so it is not a backport from Python 3,
  • it misses the description of what it really is.

Thanks for maintaining!

wallabra commented on 2023-09-05 20:53 (UTC)

Should be fixed now.

fryfrog commented on 2023-09-05 20:33 (UTC)

Hey @gustavo6046 and @rurkilafyi, sorry for missing this! I guess I have notifications off for this one! I've added you both as co-maintainers, feel free to fix it up before I can get around to it!

rurkilafyi commented on 2023-07-17 20:24 (UTC)

Hey fryfrog,

it would be nice if you could include the proposed patch from ZhangHua in this package, because currently the package fails to build. This is due to the missing setup.py file. The owner of the source code repository says, that the use of setup.py was discouraged for quite some time. See: https://github.com/jaraco/jaraco.classes/issues/6#issuecomment-1258777740 In a corresponding issue, which was opened in the source code repo, the maintainer himself said that the proposed patch from ZhangHua is the correct fix. See: https://github.com/jaraco/configparser/issues/66#issuecomment-1626656908

ZhangHua commented on 2023-06-22 02:04 (UTC)

This patch maybe helpful for someone want to build this package:

diff --git a/PKGBUILD b/PKGBUILD
index 90d49cf..ce516de 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,19 +11,21 @@ license=('MIT')
 depends=()
 optdepends=()
 makedepends=(
-    'python-setuptools'
-    'python-pip'
+    'python-setuptools-scm'
     'python-wheel'
+    'python-build'
+    'python-installer'
+    'git'
     )
 source=("git+https://github.com/jaraco/${_pkgname}.git#tag=v${pkgver}")
 sha256sums=('SKIP')

 build() {
     cd "${srcdir}/${_pkgname}"
-    python setup.py build
+    python -m build --wheel --no-isolation
 }

 package() {
     cd "${srcdir}/${_pkgname}"
-    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+    python -m installer --destdir="$pkgdir" dist/*.whl
 }

Eothred commented on 2023-03-15 09:47 (UTC)

Package is still broken due to missing setup.py, I followed section 4.1 on https://wiki.archlinux.org/title/Python_package_guidelines to build, which worked and seems similar to what gyara proposed a while back, though probably less accurate solution.

keilmillerjr commented on 2022-11-28 18:27 (UTC) (edited on 2022-11-28 19:30 (UTC) by keilmillerjr)

Thank you for the hint tubajoe. It's been a while with this package failing for the missing setup.py file. I edited the build file to include the following wget command after the cd in the build and package functions. This will download the file into the source directory. Perhaps make a patch for this package fryfrog?

wget -nc https://raw.githubusercontent.com/jaraco/configparser/4f9825dafa8d13a5f8b8bd8eb8bfc6414329cb18/setup.py

<deleted-account> commented on 2022-10-19 02:16 (UTC)

I have created a patch, using python-build as PEP 517 frontend to build this package, which can fix the build error.

patch: https://paste.sr.ht/~fubuki/e5bdf5cf9dfde0b5b202a5904765a856a48065a1

tubajoe commented on 2022-09-03 13:03 (UTC)

Workaround for setup.py-error: create setup.py-file from https://github.com/jaraco/configparser/commit/7e01b721c237ee4947e3b9d6e56bb03a028f3f6a

In pacman, edit build-files and change path to both setup.py-entries to the temporary path of the setup.py-file