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
|
||||
+++ setup.py
|
||||
@@ -0,0 +1,20 @@
|
||||
@@ -0,0 +1,14 @@
|
||||
+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(
|
||||
+ name='entrypoints',
|
||||
+ version=get_version(),
|
||||
+ version='@VERSION@',
|
||||
+ description='Discover and load entry points from installed packages',
|
||||
+ author='Thomas Kluyver',
|
||||
+ author_email='thomas@kluyver.me.uk',
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'python-entrypoints'
|
||||
pkgname=python-entrypoints
|
||||
version=0.2.2
|
||||
revision=2
|
||||
version=0.2.3
|
||||
revision=1
|
||||
noarch=yes
|
||||
wrksrc="entrypoints-${version}"
|
||||
build_style=python-module
|
||||
|
@ -13,8 +13,11 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|||
homepage="https://github.com/takluyver/entrypoints"
|
||||
license="MIT"
|
||||
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() {
|
||||
for pyver in $python_versions; do
|
||||
vinstall entrypoints.py 644 usr/lib/python${pyver}/site-packages
|
||||
|
|
Loading…
Reference in a new issue