makedeb


python3-devgoldyutils-git 3.0.0.r8.9c9ed88-1


THEGOLDENPRO utils library.

Click here to go back to the commit logs for python3-devgoldyutils-git.

Commit:


Hash: e52ee32b589dd04e55a8703b8f7d9be58d02c4e8

Message: fix makedepends python3-setuptools-scm

Diff


diff --git a/.SRCINFO b/.SRCINFO
index e71ae74..184b942 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ pkgname = python3-devgoldyutils-git
 pkgbase = python3-devgoldyutils-git
 pkgdesc = THEGOLDENPRO utils library.
 pkgrel = 1
-pkgver = 2.5.8.r1.81509ca
+pkgver = 3.0.0.r8.9c9ed88
 arch = all
 conflicts = python3-devgoldyutils
 depends = python3
@@ -12,6 +12,7 @@ makedepends = git
 makedepends = python3-build
 makedepends = python3-installer
 makedepends = python3-wheel
+makedepends = python3-setuptools-scm
 provides = python3-devgoldyutils
 source = git+https://github.com/THEGOLDENPRO/devgoldyutils
 b2sums = SKIP
@@ -19,3 +20,4 @@ makedepends = git
 makedepends = python3-build
 makedepends = python3-installer
 makedepends = python3-wheel
+makedepends = python3-setuptools-scm
diff --git a/PKGBUILD b/PKGBUILD
index 20f4d3d..548521c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,13 @@
 _gitname=devgoldyutils
 _pkgname=python3-devgoldyutils
 pkgname=python3-devgoldyutils-git
-pkgver=2.5.8.r1.81509ca
+pkgver=3.0.0.r8.9c9ed88
 pkgrel=1
 pkgdesc="THEGOLDENPRO utils library."
 arch=('all')
 license=('GPL3')
 depends=('python3')
-makedepends=('git' 'python3-build' 'python3-installer' 'python3-wheel')
+makedepends=('git' 'python3-build' 'python3-installer' 'python3-wheel' 'python3-setuptools-scm')
 source=("git+https://github.com/THEGOLDENPRO/devgoldyutils")
 b2sums=(SKIP)
 provides=('python3-devgoldyutils')
@@ -16,7 +16,7 @@ conflicts=('python3-devgoldyutils')
 
 pkgver() {
   cd "${_gitname}"
-  printf "%s.r%s.%s" "$(grep 'version =' pyproject.toml | cut -d '"' -f 2)" "$(git rev-list --count HEAD)" "$(git describe --long --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
+  printf "%s.r%s.%s" "$(grep '__version__' devgoldyutils/__init__.py | cut -d '"' -f 2)" "$(git rev-list --count HEAD)" "$(git describe --long --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
 }
 
 build(){