summarylogtreecommitdiffstats
path: root/0001-setup.py-don-t-use-dependencies-in-requirements.txt.patch
diff options
context:
space:
mode:
authorXiretza2021-04-13 19:21:27 +0200
committerXiretza2021-04-13 19:22:38 +0200
commite0c989b339fa57c70c6861a0b8fd39f5f40953c0 (patch)
tree57404d248910c769abab1cabf86eae68f131f692 /0001-setup.py-don-t-use-dependencies-in-requirements.txt.patch
parente97c7d1b909e78e1bd2bfbeb012bc0155c41b906 (diff)
downloadaur-python-sdf-timing-git.tar.gz
patch: avoid pip trying to install dev dependencies
Diffstat (limited to '0001-setup.py-don-t-use-dependencies-in-requirements.txt.patch')
-rw-r--r--0001-setup.py-don-t-use-dependencies-in-requirements.txt.patch46
1 files changed, 46 insertions, 0 deletions
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 00000000000..4d37b88b33a
--- /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
+