]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
drop requirements.in
authorKefu Chai <kchai@redhat.com>
Fri, 19 Jun 2020 07:59:49 +0000 (15:59 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 24 Jun 2020 11:33:41 +0000 (19:33 +0800)
dependabot adds an entry in generated requirements.txt like
```
-e file:///home/dependabot/dependabot-updater/tmp/dependabot_20200617-72-1n8af4b  # via -r requirements.in
```

this is expected. as dependabot does not read docs/INSTALL.rst, hence
failed to apply
```
sed '/^-e / d' to the generated file.

instead of teaching dependabot to read the manual, it's simpler
just ditch requirements.in .

see also #1367

* update-requirements.sh: add a helper script for updating
  requirements.txt
* requirements.in: removed
* docs/INSTALL.rst: updated to point user to the new
  helper script

Signed-off-by: Kefu Chai <kchai@redhat.com>
docs/INSTALL.rst
requirements.in [deleted file]
update-requirements.sh [new file with mode: 0755]

index c5099333135a19e2a4dd6ddc65a3494ef8405527..76ae0b6e6edae975cca028231782deb0c7c920b0 100644 (file)
@@ -68,9 +68,9 @@ Update Dependencies
 We track the dependencies using ``requirements.txt`` 
 for python2 and python3 respectively. These packages are tested, and should work 
 with teuthology. But if you want to bump up the versions of them, please use the 
-following command to update these files. For python3 ::
+following command to update these files::
 
-  pip-compile -qo- | sed '/^-e / d' > requirements.txt
+  ./update-requirements.sh
 
 Please upgrade pip-tool using following command ::
 
diff --git a/requirements.in b/requirements.in
deleted file mode 100644 (file)
index 0a15c75..0000000
+++ /dev/null
@@ -1 +0,0 @@
--e .[orchestra,test]
diff --git a/update-requirements.sh b/update-requirements.sh
new file mode 100755 (executable)
index 0000000..0dea241
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+echo "-e .[orchestra,test]" | pip-compile - -qo- | sed '/^-e / d' > requirements.txt