Changeset View
Changeset View
Standalone View
Standalone View
package.yml
| name : python-pycurl | name : python-pycurl | ||||
| version : 7.43.0.3 | version : 7.43.0.3 | ||||
| release : 12 | release : 13 | ||||
| source : | source : | ||||
| - https://files.pythonhosted.org/packages/source/p/pycurl/pycurl-7.43.0.3.tar.gz : 6f08330c5cf79fa8ef68b9912b9901db7ffd34b63e225dce74db56bb21deda8e | - https://files.pythonhosted.org/packages/source/p/pycurl/pycurl-7.43.0.3.tar.gz : 6f08330c5cf79fa8ef68b9912b9901db7ffd34b63e225dce74db56bb21deda8e | ||||
| homepage : http://pycurl.io/ | homepage : http://pycurl.io/ | ||||
| license : MIT | license : | ||||
| - LGPL-2.1-or-later | |||||
| - MIT | |||||
| component : system.base | component : system.base | ||||
| summary : Curl module for python | summary : Curl module for python | ||||
| description: | | description: | | ||||
| PycURL is a Python interface to libcurl. PycURL can be used to fetch objects identified by a URL from a Python program, similar to the urllib Python module. PycURL is mature, very fast, and supports a lot of features. | PycURL is a Python interface to libcurl. PycURL can be used to fetch objects identified by a URL from a Python program, similar to the urllib Python module. PycURL is mature, very fast, and supports a lot of features. | ||||
| ccache : no | ccache : no | ||||
| networking : yes # Tests for examples/tests/test_xmlrpc.py | |||||
| builddeps : | builddeps : | ||||
| - pkgconfig(libcurl) | - pkgconfig(libcurl) | ||||
| - pkgconfig(python3) | |||||
| - pyflakes | - pyflakes | ||||
| - python-bottle | - python-bottle | ||||
| - python-flaky | - python-flaky | ||||
| - python-nose | - python-nose | ||||
| - python-pytest | |||||
| - python-setuptools | - python-setuptools | ||||
| setup : | | setup : | | ||||
| %patch -p1 < $pkgfiles/skip-incompatible-libcurl-tests.patch | %patch -p1 < $pkgfiles/skip-incompatible-libcurl-tests.patch | ||||
| # remove bundled libraries | # remove bundled libraries | ||||
| rm -f tests/fake-curl/libcurl/*.so | rm -f tests/fake-curl/libcurl/*.so | ||||
| # remove test-cases that won't work in our sandbox | # remove test-cases that won't work in our sandbox | ||||
| rm -f tests/{ftp_test.py,seek_cb_test.py,ssh_key_cb_test.py} | rm -f tests/{ftp_test.py,seek_cb_test.py,ssh_key_cb_test.py} | ||||
| # We don't have nose-show-skipped in the repo | # We don't have nose-show-skipped in the repo | ||||
| sed -e 's/ --show-skipped//' -i tests/run.sh | sed -e 's/ --show-skipped//' -i tests/run.sh | ||||
| build : | | build : | | ||||
| %python_setup --with-openssl | %python_setup --with-openssl | ||||
| %python3_setup --with-openssl | |||||
| install : | | install : | | ||||
| %python_install --with-openssl | %python_install --with-openssl | ||||
| %python3_install --with-openssl | |||||
| mv $installdir/usr/share/doc/pycurl $installdir/usr/share/doc/python-pycurl | mv $installdir/usr/share/doc/pycurl $installdir/usr/share/doc/python-pycurl | ||||
| check : | | check : | | ||||
| export PYCURL_SSL_LIBRARY=openssl | export PYCURL_SSL_LIBRARY=openssl | ||||
| %python_test %make test NOSETESTS="nosetests-%python2_version% -v" | %python_test %make test NOSETESTS="nosetests-%python2_version% -v" | ||||
| pushd $PKG_BUILD_DIR/py3build | |||||
| rm examples/tests/{test_gtk.py,test_build_config.py} | |||||
| # Deselect test_getinfo tests because they require python-bottle=<0.12.16 | |||||
| # Deselect test_libcurl_ssl tests because they require bundled libcurl | |||||
| %python3_test pytest3 -v -k "not (test_getinfo or test_libcurl_ssl)" | |||||
| popd | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.