mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-26 23:42:57 +02:00
udiskie: update to 2.5.7.
This commit is contained in:
parent
abc4392d9a
commit
6e788beb55
2 changed files with 2 additions and 47 deletions
|
@ -1,45 +0,0 @@
|
||||||
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'
|
# Template file for 'udiskie'
|
||||||
pkgname=udiskie
|
pkgname=udiskie
|
||||||
version=2.5.3
|
version=2.5.7
|
||||||
revision=1
|
revision=1
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
hostmakedepends="gettext asciidoc python3-setuptools"
|
hostmakedepends="gettext asciidoc python3-setuptools"
|
||||||
|
@ -13,7 +13,7 @@ license="MIT"
|
||||||
homepage="https://github.com/coldfix/udiskie"
|
homepage="https://github.com/coldfix/udiskie"
|
||||||
changelog="https://raw.githubusercontent.com/coldfix/udiskie/master/CHANGES.rst"
|
changelog="https://raw.githubusercontent.com/coldfix/udiskie/master/CHANGES.rst"
|
||||||
distfiles="https://github.com/coldfix/udiskie/archive/refs/tags/v${version}.tar.gz"
|
distfiles="https://github.com/coldfix/udiskie/archive/refs/tags/v${version}.tar.gz"
|
||||||
checksum=6971adaa00dcd6b799b8a0b62c47103e0ad9a3f1880112c51ccc662316d2b306
|
checksum=9a70fc97b89c03c3c70b6c87f058acd5ef2f5eb5b8158fe52738fd1cc1b61ea7
|
||||||
make_check=ci-skip # privilege issue with keyring in container
|
make_check=ci-skip # privilege issue with keyring in container
|
||||||
|
|
||||||
post_build() {
|
post_build() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue