git » python-pycurl.git » commit 01ca1b8

python-pycurl 7.45.4

author Urja (ARMLFS builder)
2025-05-11 08:10:22 UTC
committer Urja (ARMLFS builder)
2025-05-11 08:10:22 UTC
parent a01aa79994e2af835f11135dfaf9245b0c6664df

python-pycurl 7.45.4

.SRCINFO +1 -5
.gitignore +2 -0
PKGBUILD +1 -47

diff --git a/.SRCINFO b/.SRCINFO
index a9f2c81..5669ee0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,12 +4,8 @@ pkgbase = python-pycurl
 	pkgrel = 1
 	url = http://pycurl.sourceforge.net/
 	arch = x86_64
+	arch = armv7h
 	license = LGPL-2.1-only OR MIT
-	checkdepends = python-flask
-	checkdepends = python-pytest
-	checkdepends = vsftpd
-	checkdepends = python-flaky
-	checkdepends = python-pyflakes
 	makedepends = git
 	makedepends = python-build
 	makedepends = python-installer
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a43258a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/src/
+/pkg/
diff --git a/PKGBUILD b/PKGBUILD
index 0ffe17b..1870dce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,12 +7,11 @@ pkgname=python-pycurl
 pkgver=7.45.4
 pkgrel=1
 pkgdesc="A Python 3.x interface to libcurl"
-arch=('x86_64')
+arch=('x86_64' 'armv7h')
 url="http://pycurl.sourceforge.net/"
 license=('LGPL-2.1-only OR MIT')
 depends=('curl' 'glibc' 'openssl' 'python')
 makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
-checkdepends=('python-flask' 'python-pytest' 'vsftpd' 'python-flaky' 'python-pyflakes')
 source=("git+https://github.com/pycurl/pycurl.git#tag=REL_${pkgver//./_}")
 sha512sums=('80ba18c4054f61182c99fec6c3ec08fb60d9ded8e8f7ef8bcb8b8767c5acdfce6daaddb05259ef1c06c343823563d4e5fbec73a7029a09629422893e37ba018c')
 
@@ -20,51 +19,6 @@ build() {
   cd pycurl
   # the unified source release builds (see PYCURL_RELEASE=1 in Makefile) do not work with tests
   python -m build --wheel --no-isolation
-  # needed for tests
-  make -C tests/fake-curl/libcurl
-}
-
-check() {
-  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
-  local pytest_options=(
-    -vv
-    --ignore tests/ftp_test.py  # downloads the internet
-    # hanging tests (probably also due to downloading the internet)
-    --ignore tests/multi_socket_test.py
-    --ignore tests/multi_test.py
-    --ignore tests/multi_timer_test.py
-    --deselect tests/open_socket_cb_test.py::OpenSocketCbTest::test_socket_open
-    --ignore tests/perform_test.py
-    --ignore tests/post_test.py
-    --ignore tests/read_cb_test.py
-    --ignore tests/readdata_test.py
-    --deselect tests/reset_test.py::ResetTest::test_reset
-    --deselect tests/resolve_test.py::ResolveTest::test_resolve
-    --deselect tests/seek_cb_test.py::SeekCbTest::test_seek_function
-    --deselect tests/setopt_lifecycle_test.py::SetoptLifecycleTest::test_postfields_lifecycle
-    --deselect tests/setopt_string_test.py::SetoptTest::test_setopt_string
-    --deselect tests/relative_url_test.py::RelativeUrlTest::test_get_relative
-    --deselect tests/pause_test.py::PauseTest::test_pause_via_call
-    --deselect tests/pause_test.py::PauseTest::test_pause_via_return
-    --deselect tests/setopt_test.py::SetoptTest::test_set_httpheader_none
-    --deselect tests/setopt_test.py::SetoptTest::test_unset_httpheader
-    --deselect tests/setopt_unicode_test.py::SetoptUnicodeTest::test_ascii_string
-    --deselect tests/setopt_unicode_test.py::SetoptUnicodeTest::test_unicode_encoded
-    --deselect tests/share_test.py::ShareTest::test_share
-    --deselect tests/sockopt_cb_test.py::SockoptCbTest::test_sockoptfunction_ok
-    --deselect tests/user_agent_string_test.py::UserAgentStringTest::test_pycurl_user_agent_string
-    --ignore tests/write_test.py
-    --ignore tests/write_to_stringio_test.py
-    --deselect tests/xferinfo_cb_test.py::XferinfoCbTest::test_xferinfo_cb
-    # unclear failures
-    --deselect tests/multi_callback_test.py::MultiCallbackTest::test_multi_socket_action
-    --deselect tests/multi_socket_select_test.py::MultiSocketSelectTest::test_multi_socket_select
-  )
-
-  cd pycurl
-  python -m installer --destdir=test_dir dist/*.whl
-  export PYTHONPATH="$PWD/test_dir/$site_packages:$PYTHONPATH"
-  pytest "${pytest_options[@]}"
 }
 
 package() {