Skip to content
Snippets Groups Projects
Commit ba56cb59 authored by alice's avatar alice
Browse files

community/py3-cairosvg: actually fix the build

sigh python deps
https://github.com/tholo/pytest-flake8/pull/88
parent b8a105a3
No related branches found
No related tags found
No related merge requests found
......@@ -11,14 +11,22 @@ depends="
python3 py3-tinycss2 py3-cssselect2 py3-defusedxml py3-cairocffi
py3-webencodings
"
checkdepends="py3-pytest py3-pillow py3-pytest-runner"
checkdepends="
py3-pillow
py3-pytest
py3-pytest-cov
py3-pytest-flake8
py3-pytest-isort
py3-pytest-runner
"
makedepends="python3-dev py3-setuptools cairo-dev py3-pytest-runner"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz
remove-useless-testdeps.patch"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/CairoSVG-$pkgver
replaces="py-cairosvg" # Backwards compat
provides="py-cairosvg=$pkgver-r$pkgrel" # Backwards compat
# current version of pytest-flake8 breaks with flake8 so they can't run
options="!check"
prepare() {
mkdir test_non_regression/cairosvg_reference/
......@@ -39,5 +47,4 @@ package() {
sha512sums="
070fbb549614401a7d8290497b0eb7702330ee264c5f625cd1e7aac4aea7d71ee7d2d8899297212e1a3c11c93903b191c0c699336d9000796318b11f4e075576 CairoSVG-2.5.2.tar.gz
272fafa3e7f772e28dc89d2a7ed91c81aee75a2249d8c84cc39014986d905d6ff6a050dd12e1a8c6c607ff550fea0cf95eb063065dff27d034ae251e3b9e5cf6 remove-useless-testdeps.patch
"
having isort present fails the tests
diff --git a/setup.cfg b/setup.cfg
index a18eda7..85e33b3 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -50,9 +50,6 @@ install_requires =
pillow
tinycss2
tests_require =
- pytest-cov
- pytest-flake8
- pytest-isort
pytest-runner
python_requires = >= 3.5
@@ -69,9 +66,6 @@ doc =
sphinx_rtd_theme
test =
pytest-runner
- pytest-cov
- pytest-flake8
- pytest-isort
[bdist_wheel]
python-tag = py3
@@ -81,8 +75,6 @@ test = pytest
[tool:pytest]
addopts =
- --flake8
- --isort
--ignore=test_regression/cairosvg_reference
norecursedirs =
build
--- a/CairoSVG-2.5.2/CairoSVG.egg-info/requires.txt
+++ b/CairoSVG-2.5.2/CairoSVG.egg-info/requires.txt
@@ -10,6 +10,3 @@
[test]
pytest-runner
-pytest-cov
-pytest-flake8
-pytest-isort
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment