New package: python-testpath-0.3

This commit is contained in:
Alessio Sergi 2017-05-09 15:45:45 +02:00
parent c43b504377
commit aad42409d1
3 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,34 @@
--- /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

@ -0,0 +1,34 @@
# Template file for 'python-testpath'
pkgname=python-testpath
version=0.3
revision=1
noarch=yes
wrksrc="testpath-${version}"
build_style=python-module
pycompile_module="testpath"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
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=01cc3cd59a59d42b238252774b9ebfc9d2af1d0d9bac81d7801409f570b1cda5
pre_build() {
rm -f testpath/cli-*.exe
}
post_install() {
vlicense LICENSE
}
python3-testpath_package() {
noarch=yes
depends="python3"
pycompile_module="testpath"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}

1
srcpkgs/python3-testpath Symbolic link
View file

@ -0,0 +1 @@
python-testpath