[arch-commits] Commit in (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Jun 10 17:58:50 UTC 2022


    Date: Friday, June 10, 2022 @ 17:58:50
  Author: felixonmars
Revision: 1231127

addpkg: python-ini2toml 0.10-1

Added:
  python-ini2toml/
  python-ini2toml/repos/
  python-ini2toml/trunk/
  python-ini2toml/trunk/PKGBUILD

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

Added: python-ini2toml/trunk/PKGBUILD
===================================================================
--- python-ini2toml/trunk/PKGBUILD	                        (rev 0)
+++ python-ini2toml/trunk/PKGBUILD	2022-06-10 17:58:50 UTC (rev 1231127)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-ini2toml
+pkgver=0.10
+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=('3d88f97c50a13fe3878e3fa35d70c9051874bec99d278411dcc7098d86898deb0e490be26f293e9a304d4c9a2842274e68126a2d20dac77b526161fde682dd75')
+
+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
+}



More information about the arch-commits mailing list