diff --git a/srcpkgs/python-testpath/patches/testpath-setup.py.patch b/srcpkgs/python-testpath/patches/testpath-setup.py.patch deleted file mode 100644 index 6379243cf87..00000000000 --- a/srcpkgs/python-testpath/patches/testpath-setup.py.patch +++ /dev/null @@ -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', -+ ] -+) diff --git a/srcpkgs/python-testpath/template b/srcpkgs/python-testpath/template index c1dd06eab04..a1654ec2e66 100644 --- a/srcpkgs/python-testpath/template +++ b/srcpkgs/python-testpath/template @@ -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 " 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