Package Details: python-python-jenkins 1.8.2-4

Git Clone URL: https://aur.archlinux.org/python-python-jenkins.git (read-only, click to copy)
Package Base: python-python-jenkins
Description: A python wrapper for the Jenkins REST API which aims to provide a more conventionally pythonic way of controlling a Jenkins server
Upstream URL: https://opendev.org/jjb/python-jenkins/
Licenses: BSD-3-Clause
Submitter: synthead
Maintainer: jaxvanyang
Last Packager: jaxvanyang
Votes: 1
Popularity: 0.000000
First Submitted: 2016-04-28 01:25 (UTC)
Last Updated: 2024-09-09 03:23 (UTC)

Latest Comments

jaxvanyang commented on 2024-09-06 01:47 (UTC) (edited on 2024-09-06 02:43 (UTC) by jaxvanyang)

@Universebenzene

Sorry, I should have built this package in a clean root. I can reproduce this in a clean root. It can be solved using the method according to https://docs.openstack.org/pbr/latest/user/packagers.html#versioning. I have pushed a fix for that, it should build now.

But it's weird, I think I should take some time to learn the pbr stuff.

EDIT:

pbr uses .git directory to generate a version number automaticly. I build this package inside my aur repo, so it uses the wrong aur git directory to generate a version number and it builds. Inside the clean root, there's no .git/, so it fails.

Universebenzene commented on 2024-09-05 13:06 (UTC)

@jaxvanyang Sorry for replying late. I used both AUR helper and devtools to build the package, but the error always occur. Full log with devtools:

==> Starting build()...
* Getting build dependencies for wheel...
/usr/lib/python3.12/site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!

        ********************************************************************************
        Usage of dash-separated 'description-file' will not be supported in future
        versions. Please use the underscore name 'description_file' instead.

        By 2024-Sep-26, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self.warn_dash_deprecation(opt, section)
/usr/lib/python3.12/site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!

        ********************************************************************************
        Usage of dash-separated 'home-page' will not be supported in future
        versions. Please use the underscore name 'home_page' instead.

        By 2024-Sep-26, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self.warn_dash_deprecation(opt, section)
/usr/lib/python3.12/site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!

        ********************************************************************************
        Usage of dash-separated 'project-urls' will not be supported in future
        versions. Please use the underscore name 'project_urls' instead.

        By 2024-Sep-26, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self.warn_dash_deprecation(opt, section)
* Building wheel...
Error parsing
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pbr/core.py", line 105, in pbr
    attrs = util.cfg_to_args(path, dist.script_args)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pbr/util.py", line 272, in cfg_to_args
    pbr.hooks.setup_hook(config)
  File "/usr/lib/python3.12/site-packages/pbr/hooks/__init__.py", line 25, in setup_hook
    metadata_config.run()
  File "/usr/lib/python3.12/site-packages/pbr/hooks/base.py", line 27, in run
    self.hook()
  File "/usr/lib/python3.12/site-packages/pbr/hooks/metadata.py", line 25, in hook
    self.config['version'] = packaging.get_version(
                             ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pbr/packaging.py", line 866, in get_version
    raise Exception("Versioning for this project requires either an sdist"
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name python-jenkins was given, but was not able to be found.
error in setup command: Error parsing /build/python-python-jenkins/src/python-jenkins/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name python-jenkins was given, but was not able to be found.

ERROR Backend subprocess exited when trying to invoke build_wheel
==> ERROR: A failure occurred in build().
    Aborting...

jaxvanyang commented on 2024-09-05 08:57 (UTC)

@Universebenzene

Could you please explain how to reproduce this exception and provide the full log? I can build and use this package on my machine without errors.

Universebenzene commented on 2024-09-05 08:16 (UTC) (edited on 2024-09-05 13:07 (UTC) by Universebenzene)

Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name python-jenkins was given, but was not able to be found.

jaxvanyang commented on 2024-07-24 03:41 (UTC)

@jonathanio Hi, I made some changes to the PKGBUILD, including:

Could you please add me to co-maintainers, so that I can push the update. And here's the diff:

diff --git a/PKGBUILD b/PKGBUILD
index 6347782..17051c0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,13 +3,13 @@

 _pkgname=python-jenkins
 pkgname=python-$_pkgname
-pkgver=1.8.0
+pkgver=1.8.2
 pkgrel=1
 pkgdesc="A python wrapper for the Jenkins REST API which aims to provide a more conventionally pythonic way of controlling a Jenkins server"
 url='https://opendev.org/jjb/python-jenkins/'
 license=('BSD')
 arch=('any')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
 depends=(
   'python'
   'python-six>=1.3.0'
@@ -17,17 +17,17 @@ depends=(
   'python-multi_key_dict'
   'python-requests'
 )
-source=("https://pypi.io/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz")
-sha512sums=('b08ab34af3cd37ab997577573e4e22bf1d2c4d14e2ec203d34df9b7c66f105bf98b570832a4b020cd0d42918ee35549ea03fc84aeb99ae1df5f3a9e86396a8e5')
+source=("$_pkgname-$pkgver.tar.gz::https://opendev.org/jjb/$_pkgname/archive/$pkgver.tar.gz")
+sha512sums=('da0da245b7df2a08d1f9d715682abc95d3e5baa514223ad6a39b8e6cd93c9c58b819d01c8a040c989e073bcd2e9815cf6cab5d3999a4a71b24316486b701afc8')

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

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

   install -D COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 }