[arch-commits] Commit in python-isort/repos (2 files)

Caleb Maclennan alerque at gemini.archlinux.org
Fri Aug 20 22:58:16 UTC 2021


    Date: Friday, August 20, 2021 @ 22:58:16
  Author: alerque
Revision: 1004044

archrelease: copy trunk to community-testing-any

Added:
  python-isort/repos/community-testing-any/
  python-isort/repos/community-testing-any/PKGBUILD
    (from rev 1004043, python-isort/trunk/PKGBUILD)

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

Copied: python-isort/repos/community-testing-any/PKGBUILD (from rev 1004043, python-isort/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-08-20 22:58:16 UTC (rev 1004044)
@@ -0,0 +1,91 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Yaron de Leeuw <me at jarondl.net>
+
+_pyname=isort
+pkgname=python-$_pyname
+pkgver=5.9.3
+pkgrel=1
+pkgdesc='A Python utility / library to sort Python imports'
+arch=(any)
+url="https://github.com/PyCQA/$_pyname"
+license=(MIT)
+_pydeps=(toml)
+depends=(python
+         "${_pydeps[@]/#/python-}")
+makedepends=(python-dephell
+             python-setuptools)
+_pycheckdeps=(black
+              hypothesis-auto
+              hypothesmith
+              libcst
+              natsort
+              ## deps that make it harder not easier to tell if things work
+              # pip
+              # pip-api
+              # pipreqs
+              pytest
+              pytest-mock
+              requirementslib)
+checkdepends=(git
+              pylama
+              "${_pycheckdeps[@]/#/python-}")
+_archive="$_pyname-$pkgver"
+source=("$url/archive/$pkgver/$_archive.tar.gz")
+sha256sums=('0ad5e0ec066302c7aece422b2675b81abe7e417dbf64b18438ca8b79219540dd')
+
+prepare() {
+	cd "$_archive"
+
+	# Devendor toml
+	rm -r isort/_vendored
+	sed -i 's/from ._vendored //' isort/settings.py
+
+	# Upstream is poetry only
+	dephell deps convert --from pyproject.toml --to setup.py
+
+	## Skipping example integration tests
+	# for _plugin in example_*; do
+	#     pushd $_plugin
+	#     dephell deps convert --from pyproject.toml --to setup.py
+	#     popd
+	# done
+}
+
+build() {
+	cd "$_archive"
+	python setup.py build
+}
+
+check() {
+	cd "$_archive"
+	## Skipping example integration tests
+	# python setup.py install --root="$PWD/tmp_install" --optimize=1
+	# for _plugin in example_*; do
+	#     pushd $_plugin
+	#     python setup.py install --root="$srcdir/isort-$pkgver/tmp_install" --optimize=1
+	#     popd
+	# done
+	# PYTHONPATH="$PWD/example_isort_formatting_plugin:$PWD/example_shared_isort_profile:$PWD/tmp_install/usr/lib/python3.9/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" \
+	pytest -p no:warnings \
+		--deselect tests/unit/test_deprecated_finders.py::TestRequirementsFinder::test_requirements_dir $(: having pip in ruins other tests ) \
+		--deselect tests/unit/test_deprecated_finders.py::test_requirements_finder $(: having pip in ruins other tests ) \
+		--deselect tests/unit/test_deprecated_finders.py::test_pipfile_finder $(: having pip in ruins other tests ) \
+		--deselect tests/unit/test_isort.py::test_settings_path_skip_issue_909 $(: example integrations ) \
+		--deselect tests/unit/test_isort.py::test_skip_paths_issue_938 $(: example integrations ) \
+		--deselect tests/unit/test_ticketed_features.py::test_isort_supports_shared_profiles_issue_970 $(: example integrations ) \
+		--deselect tests/unit/test_literal.py::test_value_assignment_list $(: unknown) \
+		--deselect tests/unit/test_ticketed_features.py::test_isort_supports_formatting_plugins_issue_1353 $(: unknown) \
+		--deselect tests/unit/test_ticketed_features.py::test_isort_literals_issue_1358 $(: unknown ) \
+		--deselect tests/unit/test_ticketed_features.py::test_sort_configurable_sort_issue_1732 $(: unknown ) \
+		--deselect tests/integration/test_setting_combinations.py $(: unknown ) \
+		--deselect tests/test_importable.py::test_importable $(: just weird ) \
+		--deselect tests/benchmark/test_api.py $(: no benchmarks thanks )
+}
+
+package() {
+	cd "$_archive"
+	export PYTHONHASHSEED=0
+	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}



More information about the arch-commits mailing list