mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 01:12:58 +02:00
python-entrypoints: update to 0.2.3
This commit is contained in:
parent
b972bbeb92
commit
3536ca3016
2 changed files with 8 additions and 11 deletions
|
@ -1,17 +1,11 @@
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ setup.py
|
+++ setup.py
|
||||||
@@ -0,0 +1,20 @@
|
@@ -0,0 +1,14 @@
|
||||||
+from setuptools import setup
|
+from setuptools import setup
|
||||||
+
|
+
|
||||||
+def get_version():
|
|
||||||
+ with open('entrypoints.py') as f:
|
|
||||||
+ for line in f:
|
|
||||||
+ if line.startswith('__version__'):
|
|
||||||
+ return eval(line.split('=')[-1])
|
|
||||||
+
|
|
||||||
+setup(
|
+setup(
|
||||||
+ name='entrypoints',
|
+ name='entrypoints',
|
||||||
+ version=get_version(),
|
+ version='@VERSION@',
|
||||||
+ description='Discover and load entry points from installed packages',
|
+ description='Discover and load entry points from installed packages',
|
||||||
+ author='Thomas Kluyver',
|
+ author='Thomas Kluyver',
|
||||||
+ author_email='thomas@kluyver.me.uk',
|
+ author_email='thomas@kluyver.me.uk',
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-entrypoints'
|
# Template file for 'python-entrypoints'
|
||||||
pkgname=python-entrypoints
|
pkgname=python-entrypoints
|
||||||
version=0.2.2
|
version=0.2.3
|
||||||
revision=2
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="entrypoints-${version}"
|
wrksrc="entrypoints-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -13,8 +13,11 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="https://github.com/takluyver/entrypoints"
|
homepage="https://github.com/takluyver/entrypoints"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
distfiles="https://github.com/takluyver/entrypoints/archive/${version}.tar.gz"
|
distfiles="https://github.com/takluyver/entrypoints/archive/${version}.tar.gz"
|
||||||
checksum=e54b5df8bb971507278c65df96e6486cf4aea0cdac384d0102ea0339e0a4f82b
|
checksum=a628825648fade6fba8dd94cc26e38340ed840fca3e9d5b7b3dbf755b27bbbdd
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
sed -i "s|@VERSION@|${version}|" setup.py
|
||||||
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
for pyver in $python_versions; do
|
for pyver in $python_versions; do
|
||||||
vinstall entrypoints.py 644 usr/lib/python${pyver}/site-packages
|
vinstall entrypoints.py 644 usr/lib/python${pyver}/site-packages
|
||||||
|
|
Loading…
Add table
Reference in a new issue