Page MenuHomeSoftware Heritage

D157.diff
No OneTemporary

D157.diff

diff --git a/MANIFEST.in b/MANIFEST.in
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,3 +1,4 @@
include Makefile
include requirements.txt
+include requirements-swh.txt
include version.txt
diff --git a/requirements-swh.txt b/requirements-swh.txt
new file mode 100644
--- /dev/null
+++ b/requirements-swh.txt
@@ -0,0 +1,4 @@
+swh.core >= 0.0.27
+swh.storage >= 0.0.75
+swh.objstorage >= 0.0.13
+swh.scheduler >= 0.0.9
diff --git a/requirements.txt b/requirements.txt
--- a/requirements.txt
+++ b/requirements.txt
@@ -6,7 +6,3 @@
click
chardet
-swh.core >= 0.0.27
-swh.storage >= 0.0.75
-swh.objstorage >= 0.0.13
-swh.scheduler >= 0.0.9
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -3,13 +3,13 @@
def parse_requirements():
requirements = []
- with open('requirements.txt') as f:
- for line in f.readlines():
- line = line.strip()
- if not line or line.startswith('#'):
- continue
- requirements.append(line)
-
+ for reqf in ('requirements.txt', 'requirements-swh.txt'):
+ with open(reqf) as f:
+ for line in f.readlines():
+ line = line.strip()
+ if not line or line.startswith('#'):
+ continue
+ requirements.append(line)
return requirements

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 30, 3:21 PM (7 h, 11 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3213701

Event Timeline