Date: Thursday, March 30, 2023 @ 03:27:51
Author: felixonmars
Revision: 1430323
archrelease: copy trunk to community-any
Added:
python-ini2toml/repos/community-any/PKGBUILD
(from rev 1430322, python-ini2toml/trunk/PKGBUILD)
Deleted:
python-ini2toml/repos/community-any/PKGBUILD
----------+
PKGBUILD | 73 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 39 insertions(+), 34 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-03-30 03:27:43 UTC (rev 1430322)
+++ PKGBUILD 2023-03-30 03:27:51 UTC (rev 1430323)
@@ -1,34 +0,0 @@
-# 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
-}
Copied: python-ini2toml/repos/community-any/PKGBUILD (from rev 1430322,
python-ini2toml/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-03-30 03:27:51 UTC (rev 1430323)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-ini2toml
+pkgver=0.12
+_commit=94781cb458e71c63f2c6bbc3d80a6353cb61624d
+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=('git' 'python-setuptools-scm')
+checkdepends=('python-pytest-randomly' 'python-tomli-w'
'python-validate-pyproject')
+source=("git+https://github.com/abravalheri/ini2toml.git#commit=$_commit")
+sha512sums=('SKIP')
+
+prepare() {
+ cd ini2toml
+ sed -i 's/--cov ini2toml --cov-report term-missing//' setup.cfg
+}
+
+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
+}