Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Python3 cairosvg #38129

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 31 additions & 0 deletions srcpkgs/python3-CairoSVG/patches/pytest-runner.patch
@@ -0,0 +1,31 @@
diff --git a/setup.cfg b/setup.cfg
index a18eda7..f84758d 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -41,7 +41,6 @@ project_urls =
[options]
packages = cairosvg
setup_requires =
- pytest-runner
setuptools
install_requires =
cairocffi
@@ -50,10 +49,8 @@ install_requires =
pillow
tinycss2
tests_require =
- pytest-cov
pytest-flake8
pytest-isort
- pytest-runner
python_requires = >= 3.5

[options.entry_points]
@@ -68,7 +65,6 @@ doc =
sphinx
sphinx_rtd_theme
test =
- pytest-runner
pytest-cov
pytest-flake8
pytest-isort
16 changes: 16 additions & 0 deletions srcpkgs/python3-CairoSVG/template
@@ -0,0 +1,16 @@
# Template file for 'python3-CairoSVG'
pkgname=python3-CairoSVG
version=2.5.2
revision=1
wrksrc="${pkgname#*-}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-webencodings python3-cssselect2 python3-tinycss2 python3-cairocffi python3-defusedxml"
depends="python3-cairocffi python3-cssselect2 python3-defusedxml python3-Pillow python3-tinycss2 python3-wheel python3-webencodings"
checkdepends="python3-pytest python3-pytest-cov python3-pytest-flake8 python3-pytest-isort python3-wheel"
short_desc="Simple SVG Converter based on Cairo"
maintainer="Eloi Torrents <eloitor@disroot.org>"
license="LGPL-3.0-or-later"
homepage="https://cairosvg.org/"
changelog="https://github.com/Kozea/CairoSVG/blob/master/NEWS.rst"
distfiles="${PYPI_SITE}/C/CairoSVG/CairoSVG-${version}.tar.gz"
checksum=b0b9929cf5dba005178d746a8036fcf0025550f498ca54db61873322384783bc
18 changes: 18 additions & 0 deletions srcpkgs/python3-cssselect2/template
@@ -0,0 +1,18 @@
# Template file for 'python3-cssselect2'
pkgname=python3-cssselect2
version=0.6.0
revision=1
wrksrc="cssselect2-${version}"
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-flit_core python3-webencodings python3-tinycss2"
depends="python3 python3-webencodings python3-tinycss2"
short_desc="CSS selectors for Python2 ElementTree"
maintainer="Eloi Torrents <eloitor@disroot.org>"
license="BSD-3-Clause"
homepage="https://cssselect2.readthedocs.io/"
distfiles="${PYPI_SITE}/c/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz"
checksum=5b5d6dea81a5eb0c9ca39f116c8578dd413778060c94c1f51196371618909325

post_install() {
vlicense LICENSE
}
20 changes: 20 additions & 0 deletions srcpkgs/python3-pytest-isort/template
@@ -0,0 +1,20 @@
# Template file for 'python3-pytest-isort'
pkgname=python3-pytest-isort
version=3.0.0
revision=1
wrksrc="${pkgname#python3-}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-setuptools_scm"
depends="python3-pytest python3-isort"
checkdepends="python3-pytest python3-wheel"
short_desc="Pytest plugin to check import ordering using isort"
maintainer="Eloi Torrents <eloitor@disroot.org>"
license="MIT"
homepage="https://pypi.org/project/pytest-isort"
changelog="https://github.com/stephrdev/pytest-isort/blob/master/CHANGELOG.rst"
distfiles="${PYPI_SITE}/p/pytest-isort/pytest-isort-${version}.tar.gz"
checksum=4fe4b26ead2af776730ec23f5870d7421f35aace22a41c4e938586ef4d8787cb

post_install() {
vlicense LICENSE
}
20 changes: 20 additions & 0 deletions srcpkgs/python3-tinycss2/template
@@ -0,0 +1,20 @@
# Template file for 'python3-tinycss2'
pkgname=python3-tinycss2
version=1.1.1
revision=1
wrksrc="tinycss2-${version}"
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-flit_core python3-webencodings"
makedepends="python3-devel"
depends="python3-webencodings"
short_desc="Complete yet simple CSS parser for Python"
maintainer="Eloi Torrents <eloitor@disroot.org>"
license="BSD-3-Clause"
homepage="https://tinycss2.readthedocs.io/en/latest/"
changelog="https://doc.courtbouillon.org/tinycss2/latest/changelog.html"
distfiles="${PYPI_SITE}/t/tinycss2/tinycss2-${version}.tar.gz"
checksum=b2e44dd8883c360c35dd0d1b5aad0b610e5156c2cb3b33434634e539ead9d8bf

post_install() {
vlicense LICENSE
}