Package Details: pip2pkgbuild 0.5.0-2

Git Clone URL: https://aur.archlinux.org/pip2pkgbuild.git (read-only, click to copy)
Package Base: pip2pkgbuild
Description: Create PKGBUILD files for Python modules fetched with PIP
Upstream URL: https://github.com/wenLiangcan/pip2pkgbuild
Keywords: packaging pip pkgbuild python
Licenses: MIT
Conflicts: python2-pip2pkgbuild
Submitter: wenLiangcan
Maintainer: RubenKelevra
Last Packager: RubenKelevra
Votes: 25
Popularity: 0.007117
First Submitted: 2015-09-15 12:49 (UTC)
Last Updated: 2024-08-09 05:27 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

gesh commented on 2024-08-05 07:12 (UTC)

Thanks for updating this, I'm still looking over the changes. BTW, it may be worth using git+$url.git#tag=$pkgver as the source rather than the github tarball --

RubenKelevra commented on 2024-08-05 00:11 (UTC)

@frankspace your patch has been added, thanks!

RubenKelevra commented on 2024-08-04 23:31 (UTC)

@matthewq337 thanks! No offense, by had my share of bad luck doing co-maintaining. Ended up fixing packaging bugs on every update the other maintainer would do. No fun in that.

matthewq337 commented on 2024-08-04 23:22 (UTC)

@RubenKelevra it's yours now

RubenKelevra commented on 2024-08-04 16:30 (UTC)

Sure, but I have no desire to co-maintain this.

matthewq337 commented on 2024-08-04 16:28 (UTC) (edited on 2024-08-04 16:28 (UTC) by matthewq337)

@RubenKelevra you wanted to maintain this per PRQ#61442.

RubenKelevra commented on 2024-08-04 05:31 (UTC)

@matthewq337 why did you add me as maintainer?

RubenKelevra commented on 2024-07-20 00:04 (UTC)

Does not build in a chroot:

==> Starting build()...
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook
    raise BackendUnavailable(
pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'

ERROR Backend 'setuptools.build_meta:__legacy__' is not available.
==> ERROR: A failure occurred in build().

frankspace commented on 2024-05-24 12:43 (UTC)

Yeah, imp was deprecated for a long time and has finally been removed. The imp.load_source function has no tidy replacement, to the annoyance of many, but the following patch appears to get the job done:

--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,20 @@
-import imp
+import importlib
+import importlib.util
+import importlib.machinery
 import io
 import os

 from setuptools import find_packages, setup

+def load_source(modname, filename):
+    loader = importlib.machinery.SourceFileLoader(modname, filename)
+    spec = importlib.util.spec_from_file_location(modname, filename, loader=loader)
+    module = importlib.util.module_from_spec(spec)
+    loader.exec_module(module)
+    return module
+
 here = os.path.abspath(os.path.dirname(__file__))
-META = imp.load_source('',
+META = load_source('',
                        os.path.join(here, 'pip2pkgbuild/pip2pkgbuild.py')).META
 with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
     long_description = os.linesep + f.read()
@@ -41,6 +50,12 @@
         'Programming Language :: Python :: 3.4',
         'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: 3.7',
+        'Programming Language :: Python :: 3.8',
+        'Programming Language :: Python :: 3.9',
+        'Programming Language :: Python :: 3.10',
+        'Programming Language :: Python :: 3.11',
+        'Programming Language :: Python :: 3.12',

         'Topic :: Software Development :: Build Tools',
         'Topic :: Software Development :: Code Generators',

(Probably only the first change is actually necessary; the second bit with the "programming language" additions is just something I tossed in while I was there anyway.) I called it "importlib_patch.patch" and applied it in a prepare().

Also, I reiterate that I need python-setuptools added to the makedepends for this to compile in a chroot.

tzok commented on 2024-05-24 08:49 (UTC)

The package does not work with Python 3.12:

ModuleNotFoundError: No module named 'imp'