[arch-commits] Commit in python-ini2toml/repos (community-any community-any/PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Jun 10 18:14:07 UTC 2022
Date: Friday, June 10, 2022 @ 18:14:07
Author: felixonmars
Revision: 1231219
archrelease: copy trunk to community-any
Added:
python-ini2toml/repos/community-any/
python-ini2toml/repos/community-any/PKGBUILD
(from rev 1231218, python-ini2toml/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-ini2toml/repos/community-any/PKGBUILD (from rev 1231218, python-ini2toml/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-06-10 18:14:07 UTC (rev 1231219)
@@ -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