python3-dominate: update to 2.9.0.
This commit is contained in:
parent
adacaba1c4
commit
1e8f24da32
2 changed files with 5 additions and 40 deletions
|
@ -1,22 +0,0 @@
|
||||||
Python 3.12 drops the imp module, and rather than implement a convoluted
|
|
||||||
replacement for imp.load_source to automatically populate the package version,
|
|
||||||
we can just add a placeholder and vsed it in the template.
|
|
||||||
|
|
||||||
--- ./setup.py.orig 2023-09-29 09:55:31.893470107 -0400
|
|
||||||
+++ ./setup.py 2023-09-29 09:56:17.655743399 -0400
|
|
||||||
@@ -19,14 +19,11 @@
|
|
||||||
|
|
||||||
from setuptools import setup
|
|
||||||
|
|
||||||
-import imp
|
|
||||||
-_version = imp.load_source("dominate._version", "dominate/_version.py")
|
|
||||||
-
|
|
||||||
long_description = open('README.md').read()
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name = 'dominate',
|
|
||||||
- version = _version.__version__,
|
|
||||||
+ version = '@@VERSION@@',
|
|
||||||
author = 'Tom Flanagan and Jake Wharton',
|
|
||||||
author_email = 'tom@zkpq.ca',
|
|
||||||
license = 'LGPLv3',
|
|
|
@ -1,9 +1,9 @@
|
||||||
# Template file for 'python3-dominate'
|
# Template file for 'python3-dominate'
|
||||||
pkgname=python3-dominate
|
pkgname=python3-dominate
|
||||||
version=2.8.0
|
version=2.9.0
|
||||||
revision=2
|
revision=1
|
||||||
build_style=python3-module
|
build_style=python3-pep517
|
||||||
hostmakedepends="python3-setuptools"
|
hostmakedepends="python3-setuptools python3-wheel"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
checkdepends="python3-pytest"
|
checkdepends="python3-pytest"
|
||||||
short_desc="Library for creating and manipulating HTML (Python3)"
|
short_desc="Library for creating and manipulating HTML (Python3)"
|
||||||
|
@ -11,17 +11,4 @@ maintainer="Benjamín Albiñana <benalb@gmail.com>"
|
||||||
license="LGPL-3.0-or-later"
|
license="LGPL-3.0-or-later"
|
||||||
homepage="https://github.com/Knio/dominate"
|
homepage="https://github.com/Knio/dominate"
|
||||||
distfiles="https://github.com/Knio/dominate/archive/${version}.tar.gz"
|
distfiles="https://github.com/Knio/dominate/archive/${version}.tar.gz"
|
||||||
checksum=4e55f84b8446fe4338a7acaf60bbb1cb133a81c4c7a46a196b904c9f8387d377
|
checksum=0a97321ab05fbf0c73be3fa9c250d712721dd61dc4bf1381370320961ce0f58b
|
||||||
|
|
||||||
post_patch() {
|
|
||||||
# Adjust the version properly
|
|
||||||
vsed -i -e "s/@@VERSION@@/${version}/" setup.py
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_check() {
|
|
||||||
# this fix the failed test in i686
|
|
||||||
# https://github.com/Knio/dominate/issues/175
|
|
||||||
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
||||||
vsed -i '/3713141171098444831/i \\t\t1692341442, # i686' tests/test_dom_tag.py
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue