Date: Tuesday, December 13, 2022 @ 18:36:13
Author: alerque
Revision: 1358946
archrelease: copy trunk to community-testing-any
Added:
python-isort/repos/community-testing-any/PKGBUILD
(from rev 1358945, python-isort/trunk/PKGBUILD)
Deleted:
python-isort/repos/community-testing-any/PKGBUILD
----------+
PKGBUILD | 189 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 95 insertions(+), 94 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-12-13 18:36:04 UTC (rev 1358945)
+++ PKGBUILD 2022-12-13 18:36:13 UTC (rev 1358946)
@@ -1,94 +0,0 @@
-# Maintainer: Caleb Maclennan <[email protected]>
-# Contributor: Felix Yan <[email protected]>
-# Contributor: Yaron de Leeuw <[email protected]>
-
-_pyname=isort
-pkgname=python-$_pyname
-pkgver=5.11.1
-pkgrel=1
-pkgdesc='A Python utility / library to sort Python imports'
-arch=(any)
-url="https://github.com/PyCQA/$_pyname"
-license=(MIT)
-_pydeps=(toml
- tomli)
-depends=(python
- "${_pydeps[@]/#/python-}")
-makedepends=(python-{build,installer,wheel}
- python-poetry-core)
-_pycheckdeps=(black
- hypothesis
- 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)
-# Besides the overflowing plethora of specific test problems as noted in the
-# check() function --dselects, the switch from dephell to poetry broke a whole
-# batch more tests related to output formatting. There are a bunch of lines
where
-# the expected output has whitespace and the actual output does not any more.
-# checkdepends=(git
-# pylama
-# "${_pycheckdeps[@]/#/python-}")
-_archive="$_pyname-$pkgver"
-source=("$url/archive/$pkgver/$_archive.tar.gz")
-sha256sums=('5a65bd85f819f72b2da5280d391fcc51da3737d20cbec07a4e7400022447b98c')
-
-prepare() {
- cd "$_archive"
-
- # Devendor toml
- rm -r isort/_vendored
- sed -i 's/from ._vendored //' isort/settings.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 -m build -wn
-}
-
-# 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.10/site-packages"
PATH="$PWD/tmp_install/usr/bin:$PATH" \
-# python -m 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/integration/test_projects_using_isort.py::test_typeshed $(: requires
network ) \
-# --deselect tests/test_importable.py::test_importable $(: just weird
) \
-# --deselect tests/benchmark/test_api.py $(: no benchmarks thanks )
-# }
-
-package() {
- cd "$_archive"
- python -m installer -d "$pkgdir" dist/*.whl
- install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
-}
Copied: python-isort/repos/community-testing-any/PKGBUILD (from rev 1358945,
python-isort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-12-13 18:36:13 UTC (rev 1358946)
@@ -0,0 +1,95 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+# Contributor: Yaron de Leeuw <[email protected]>
+
+_pyname=isort
+pkgname=python-$_pyname
+pkgver=5.11.1
+pkgrel=2
+pkgdesc='A Python utility / library to sort Python imports'
+arch=(any)
+url="https://github.com/PyCQA/$_pyname"
+license=(MIT)
+_pydeps=(toml
+ tomli)
+depends=(python
+ "${_pydeps[@]/#/python-}")
+makedepends=(python-{build,installer,wheel}
+ python-poetry-core)
+_pycheckdeps=(black
+ hypothesis
+ 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)
+# Besides the overflowing plethora of specific test problems as noted in the
+# check() function --dselects, the switch from dephell to poetry broke a whole
+# batch more tests related to output formatting. There are a bunch of lines
where
+# the expected output has whitespace and the actual output does not any more.
+# checkdepends=(git
+# pylama
+# "${_pycheckdeps[@]/#/python-}")
+_archive="$_pyname-$pkgver"
+source=("$url/archive/$pkgver/$_archive.tar.gz")
+sha256sums=('5a65bd85f819f72b2da5280d391fcc51da3737d20cbec07a4e7400022447b98c')
+
+prepare() {
+ cd "$_archive"
+
+ # Devendor toml
+ rm -r isort/_vendored
+ sed -i 's/from ._vendored //' isort/settings.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 -m build -wn
+}
+
+# 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.10/site-packages"
PATH="$PWD/tmp_install/usr/bin:$PATH" \
+# python -m 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/integration/test_projects_using_isort.py::test_typeshed $(: requires
network ) \
+# --deselect tests/test_importable.py::test_importable $(: just weird
) \
+# --deselect tests/benchmark/test_api.py $(: no benchmarks thanks )
+# }
+
+package() {
+ cd "$_archive"
+ python -m installer -d "$pkgdir" dist/*.whl
+ rm -f "$pkgdir"/usr/lib/python*/site-packages/{LICENSE,CHANGELOG.md}
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}