From 0c57003b8d31a464ba01848f241f009b1a534ce2 Mon Sep 17 00:00:00 2001 From: Nicolas Porcel Date: Mon, 27 Jan 2020 19:12:11 +0000 Subject: [PATCH] python3-pylibgen: update to 2.0.2. In 2.0.2, the release archive does not include requirements-dev.txt which is necessary for setup.py to work. In order to upgrade to 2.0.2, we need to remove any reference to requirements-dev.txt from setup.py. --- .../python3-pylibgen/patches/fix-setup.patch | 27 +++++++++++++++++++ srcpkgs/python3-pylibgen/template | 9 +++---- 2 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/python3-pylibgen/patches/fix-setup.patch diff --git a/srcpkgs/python3-pylibgen/patches/fix-setup.patch b/srcpkgs/python3-pylibgen/patches/fix-setup.patch new file mode 100644 index 00000000000..1fa9e9f2acb --- /dev/null +++ b/srcpkgs/python3-pylibgen/patches/fix-setup.patch @@ -0,0 +1,27 @@ +diff --git setup.py setup.py +index 1a84791..1a6d7c2 100644 +--- setup.py ++++ setup.py +@@ -14,9 +14,6 @@ with open(os.path.join(here, "README.md")) as f: + with open(os.path.join(here, "requirements.txt")) as f: + install_requires = f.read() + +-with open(os.path.join(here, "requirements-dev.txt")) as f: +- dev_requires = f.read() +- + setup( + name="pylibgen", + version=version, +@@ -43,12 +40,6 @@ setup( + packages=find_packages(exclude=("tests",)), + python_requires=">=3.6", + install_requires=install_requires, +- extras_require={ +- # linting and formatting tools (flake8, black) we let pre-commit pin versions +- # build and publishing tools (setuptools, wheel, twine) we always want latest (see makefile) +- # only dev dependencies that should be pinned in extras (imo) is testing (pytest) and pre-commit +- "dev": dev_requires, +- }, + classifiers=[ + "Development Status :: 7 - Inactive", + "Intended Audience :: Developers", diff --git a/srcpkgs/python3-pylibgen/template b/srcpkgs/python3-pylibgen/template index 540ccb32790..30fb465a637 100644 --- a/srcpkgs/python3-pylibgen/template +++ b/srcpkgs/python3-pylibgen/template @@ -1,19 +1,18 @@ # Template file for 'python3-pylibgen' pkgname=python3-pylibgen -version=2.0.1 -revision=2 +version=2.0.2 +revision=1 archs=noarch wrksrc="pylibgen-${version}" build_style=python3-module -pycompile_module="pylibgen" hostmakedepends="python3-setuptools" -depends="python3-requests>2.20.9<2.21.1" +depends="python3-requests" short_desc="Python3 interface to Library Genesis" maintainer="xaltsc " license="MIT" homepage="https://github.com/JoshuaRLi/pylibgen" distfiles="${PYPI_SITE}/p/pylibgen/pylibgen-${version}.tar.gz" -checksum=3c2a82b47cb7225dcf4ecea27081b0185ae4d195499140cdbb9597d914e1ae9e +checksum=87b28a27fa7c1912e2b38020262dd6086b292d670b0c08d76baecbcd7678b9ee post_install() { vlicense LICENSE