Date: Tuesday, January 31, 2023 @ 20:12:12
  Author: felixonmars
Revision: 1391525

archrelease: copy trunk to community-any

Added:
  python-ini2toml/repos/community-any/PKGBUILD
    (from rev 1391524, python-ini2toml/trunk/PKGBUILD)
Deleted:
  python-ini2toml/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   68 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 34 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 20:12:00 UTC (rev 1391524)
+++ PKGBUILD    2023-01-31 20:12:12 UTC (rev 1391525)
@@ -1,34 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-ini2toml
-pkgver=0.11.3
-pkgrel=1
-pkgdesc="Automatically conversion of .ini/.cfg files to TOML equivalents"
-url="https://github.com/abravalheri/ini2toml";
-license=('MPL')
-arch=('any')
-# The default installation is broken. Adding [full] flavor dependencies here.
-depends=('python-configupdater' 'python-packaging' 'python-tomlkit')
-makedepends=('python-setuptools-scm')
-checkdepends=('python-pytest-cov' 'python-tomli-w' 'python-validate-pyproject')
-source=("https://github.com/abravalheri/ini2toml/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('f1331bc47a2d4593788de9d8b1fdbc2231ac22524aaf3a83695c810e0dcbdce4bb46c48363ea150a583e4b24264d7a25f85ece737b31fa0ec0b8a6a2e098a9d5')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-build() {
-  cd ini2toml-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd ini2toml-$pkgver
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  # TODO
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" 
pytest --deselect tests/test_cli.py::test_auto_formatting
-}
-
-package() {
-  cd ini2toml-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-ini2toml/repos/community-any/PKGBUILD (from rev 1391524, 
python-ini2toml/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-01-31 20:12:12 UTC (rev 1391525)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-ini2toml
+pkgver=0.11.3
+_commit=aeec167df452289c38da07a3dce520d1d1749230
+pkgrel=2
+pkgdesc="Automatically conversion of .ini/.cfg files to TOML equivalents"
+url="https://github.com/abravalheri/ini2toml";
+license=('MPL')
+arch=('any')
+# The default installation is broken. Adding [full] flavor dependencies here.
+depends=('python-configupdater' 'python-packaging' 'python-tomlkit')
+makedepends=('git' 'python-setuptools-scm')
+checkdepends=('python-pytest-cov' 'python-tomli-w' 'python-validate-pyproject')
+source=("git+https://github.com/abravalheri/ini2toml.git#commit=$_commit";)
+sha512sums=('SKIP')
+
+build() {
+  cd ini2toml
+  python setup.py build
+}
+
+check() {
+  cd ini2toml
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  # TODO
+  PYTHONPATH="$PWD/tmp_install$site_packages:$PYTHONPATH" pytest --deselect 
tests/test_cli.py::test_auto_formatting
+}
+
+package() {
+  cd ini2toml
+  python setup.py install --root="$pkgdir" --optimize=1
+}

Reply via email to