diff options
author | Xiretza | 2021-04-13 19:21:27 +0200 |
---|---|---|
committer | Xiretza | 2021-04-13 19:22:38 +0200 |
commit | e0c989b339fa57c70c6861a0b8fd39f5f40953c0 (patch) | |
tree | 57404d248910c769abab1cabf86eae68f131f692 | |
parent | e97c7d1b909e78e1bd2bfbeb012bc0155c41b906 (diff) | |
download | aur-e0c989b339fa57c70c6861a0b8fd39f5f40953c0.tar.gz |
patch: avoid pip trying to install dev dependencies
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | 0001-setup.py-don-t-use-dependencies-in-requirements.txt.patch | 46 | ||||
-rw-r--r-- | PKGBUILD | 15 |
3 files changed, 61 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = python-sdf-timing-git pkgdesc = Python library for working Standard Delay Format (SDF) Timing Annotation files - pkgver = r104.5740ac4 + pkgver = r118.5b9dc79 pkgrel = 1 url = https://github.com/SymbiFlow/python-sdf-timing arch = any @@ -13,7 +13,9 @@ pkgbase = python-sdf-timing-git provides = python-sdf-timing conflicts = python-sdf-timing source = git+https://github.com/SymbiFlow/python-sdf-timing.git + source = 0001-setup.py-don-t-use-dependencies-in-requirements.txt.patch sha256sums = SKIP + sha256sums = e26af72e6dbe463dd435aa04513533410d6b67433d7be68a751cef6e21eefd04 pkgname = python-sdf-timing-git diff --git a/0001-setup.py-don-t-use-dependencies-in-requirements.txt.patch b/0001-setup.py-don-t-use-dependencies-in-requirements.txt.patch new file mode 100644 index 000000000000..4d37b88b33ac --- /dev/null +++ b/0001-setup.py-don-t-use-dependencies-in-requirements.txt.patch @@ -0,0 +1,46 @@ +From 0767b9418c7fca64d06e46a11d3469abeaca221b Mon Sep 17 00:00:00 2001 +From: Xiretza <xiretza@xiretza.xyz> +Date: Tue, 13 Apr 2021 19:14:30 +0200 +Subject: [PATCH] setup.py: don't use dependencies in requirements.txt + +These are development dependencies and are not required for packaging. +--- + setup.py | 15 +-------------- + 1 file changed, 1 insertion(+), 14 deletions(-) + +diff --git a/setup.py b/setup.py +index d79a38e..800bb99 100644 +--- a/setup.py ++++ b/setup.py +@@ -31,19 +31,6 @@ with open("README.md", "r") as fh: + long_description = fh.read() + + +-# Read in the setup_requires from the requirements.txt file. +-setup_requires = [] +-with open('requirements.txt') as fh: +- for r in fh: +- if '#' in r: +- r = r[:r.find('#')] +- r = r.strip() +- if not r: +- continue +- if r not in ('-e .',): +- setup_requires.append(r) +- +- + setuptools.setup( + # Package human readable information + name="sdf_timing", +@@ -71,7 +58,7 @@ setuptools.setup( + }, + # Requirements + python_requires=">=3.6", +- setup_requires=setup_requires, ++ setup_requires=[], + install_requires=[ + 'ply', + 'pyjson', +-- +2.31.1 + @@ -2,7 +2,7 @@ _pkgname=python-sdf-timing pkgname="$_pkgname-git" -pkgver=r104.5740ac4 +pkgver=r118.5b9dc79 pkgrel=1 pkgdesc="Python library for working Standard Delay Format (SDF) Timing Annotation files" arch=(any) @@ -13,14 +13,23 @@ makedepends=('git' 'python-setuptools') checkdepends=('python-pytest') provides=("${pkgname%%-git}") conflicts=("${pkgname%%-git}") -source=("git+$url.git") -sha256sums=('SKIP') +source=( + "git+$url.git" + "0001-setup.py-don-t-use-dependencies-in-requirements.txt.patch" +) +sha256sums=('SKIP' + 'e26af72e6dbe463dd435aa04513533410d6b67433d7be68a751cef6e21eefd04') pkgver() { cd "$_pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +prepare() { + cd "$_pkgname" + + patch -p1 < "$srcdir/0001-setup.py-don-t-use-dependencies-in-requirements.txt.patch" +} build() { cd "$_pkgname" |