mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-15 21:57:02 +02:00
udiskie: update to 2.5.3.
This commit is contained in:
parent
99f0abb5e5
commit
0a884b89fb
2 changed files with 47 additions and 2 deletions
45
srcpkgs/udiskie/patches/setuptools.patch
Normal file
45
srcpkgs/udiskie/patches/setuptools.patch
Normal file
|
@ -0,0 +1,45 @@
|
|||
udiskie tries to monkey-patch entry-point generation to improve performance,
|
||||
but it relies on context that is not available in setuptools 75.
|
||||
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -1,5 +1,4 @@
|
||||
from setuptools import setup, Command
|
||||
-from setuptools.command.easy_install import ScriptWriter
|
||||
from setuptools.command.install import install as orig_install
|
||||
from distutils.command.build import build as orig_build
|
||||
|
||||
@@ -68,33 +67,6 @@
|
||||
pass
|
||||
|
||||
|
||||
-def fast_entrypoint_script_template():
|
||||
- """
|
||||
- Replacement for ``easy_install.ScriptWriter.template`` to generate faster
|
||||
- entry points that don't depend on and import pkg_resources.
|
||||
-
|
||||
- NOTE: `pip install` already does the right thing (at least for pip 19.0)
|
||||
- without our help, but this is still needed for setuptools install, i.e.
|
||||
- ``python setup.py install`` or develop.
|
||||
- """
|
||||
- SCRIPT_TEMPLATE = dedent(r'''
|
||||
- # encoding: utf-8
|
||||
- import sys
|
||||
- from {ep.module_name} import {ep.attrs[0]}
|
||||
-
|
||||
- if __name__ == '__main__':
|
||||
- sys.exit({func}())
|
||||
- ''').lstrip()
|
||||
-
|
||||
- class ScriptTemplate(str):
|
||||
- def __mod__(self, context):
|
||||
- func = '.'.join(context['ep'].attrs)
|
||||
- return self.format(func=func, **context)
|
||||
-
|
||||
- return ScriptTemplate(SCRIPT_TEMPLATE)
|
||||
-
|
||||
-
|
||||
-ScriptWriter.template = fast_entrypoint_script_template()
|
||||
setup(
|
||||
cmdclass={
|
||||
'install': install,
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'udiskie'
|
||||
pkgname=udiskie
|
||||
version=2.5.2
|
||||
version=2.5.3
|
||||
revision=1
|
||||
build_style=python3-module
|
||||
hostmakedepends="gettext asciidoc python3-setuptools"
|
||||
|
@ -13,7 +13,7 @@ license="MIT"
|
|||
homepage="https://github.com/coldfix/udiskie"
|
||||
changelog="https://raw.githubusercontent.com/coldfix/udiskie/master/CHANGES.rst"
|
||||
distfiles="https://github.com/coldfix/udiskie/archive/refs/tags/v${version}.tar.gz"
|
||||
checksum=fb81930ac046e90c8a03135c5ca93454653c23f57ef5659f6eaed87a9098754d
|
||||
checksum=6971adaa00dcd6b799b8a0b62c47103e0ad9a3f1880112c51ccc662316d2b306
|
||||
make_check=ci-skip # privilege issue with keyring in container
|
||||
|
||||
post_build() {
|
||||
|
|
Loading…
Add table
Reference in a new issue