python-testpath: update to 0.4.1

This commit is contained in:
Alessio Sergi 2018-09-29 13:06:00 +02:00
parent 5e9d577c3b
commit 08829fb0ad
2 changed files with 4 additions and 38 deletions

View File

@ -1,34 +0,0 @@
--- /dev/null
+++ setup.py
@@ -0,0 +1,31 @@
+import os
+import re
+from io import open
+
+from setuptools import setup
+
+with open(os.path.join('testpath', '__init__.py'), encoding='utf-8') as f:
+ version = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M).group(1)
+
+with open('README.rst', encoding='utf-8') as f:
+ long_description = f.read()
+
+setup(
+ name='testpath',
+ version=version,
+ description='Test utilities for code working with files and commands',
+ long_description=long_description,
+ author='Jupyter Development Team',
+ author_email='jupyter@googlegroups.com',
+ url='https://github.com/jupyter/testpath',
+ license='MIT',
+ packages=['testpath'],
+ classifiers=[
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: MIT License',
+ 'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
+ 'Programming Language :: Python :: 3',
+ 'Topic :: Software Development :: Testing',
+ ]
+)

View File

@ -1,7 +1,7 @@
# Template file for 'python-testpath'
pkgname=python-testpath
version=0.3.1
revision=2
version=0.4.1
revision=1
noarch=yes
wrksrc="testpath-${version}"
build_style=python-module
@ -12,8 +12,8 @@ short_desc="Test utilities for code working with files and commands (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/jupyter/testpath"
license="MIT"
distfiles="https://github.com/jupyter/testpath/archive/${version}.tar.gz"
checksum=acd1e9ae3582e03b806ebcc40fbb2c660032d3f3ad991e5460e6856d69e6ba12
distfiles="${PYPI_SITE}/t/testpath/testpath-${version}.tar.gz"
checksum=e4824c689b97e3cfc76b440add3d20a4bb28a671079787a3d07a6bc3ba3d1eca
pre_build() {
rm -f testpath/cli-*.exe