Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7123261
D2332.id8034.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D2332.id8034.diff
View Options
diff --git a/requirements-test-db.txt b/requirements-test-db.txt
new file mode 100644
--- /dev/null
+++ b/requirements-test-db.txt
@@ -0,0 +1 @@
+pytest-postgresql
diff --git a/requirements-test.txt b/requirements-test.txt
--- a/requirements-test.txt
+++ b/requirements-test.txt
@@ -1,5 +1,4 @@
pytest
-pytest-postgresql
requests-mock
hypothesis >= 3.11.0
pre-commit
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -51,10 +51,14 @@
install_requires=parse_requirements(None, 'swh'),
setup_requires=['vcversioner'],
extras_require={
- 'testing': parse_requirements('test', 'db', 'http', 'logging'),
+ 'testing-core': parse_requirements('test'),
'logging': parse_requirements('logging'),
'db': parse_requirements('db'),
+ 'testing-db': parse_requirements('test-db'),
'http': parse_requirements('http'),
+ # kitchen sink, please do not use
+ 'testing': parse_requirements('test', 'test-db', 'db', 'http',
+ 'logging'),
},
vcversioner={},
include_package_data=True,
diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -3,9 +3,9 @@
[testenv]
deps =
- -rrequirements-test.txt
- core: -rrequirements-logging.txt
- db: .[db]
+ .[testing-core]
+ core: .[logging]
+ db: .[db,testing-db]
db: pifpaf
server: .[http]
cover: pytest-cov
@@ -34,7 +34,7 @@
[testenv:mypy]
skip_install = true
deps =
- .[testing]
+ .[logging,db,http,testing-core,testing-db]
mypy
commands =
mypy swh
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 18, 7:52 AM (19 h, 9 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3218211
Attached To
D2332: Split test requirements to try and properly minimize dependencies
Event Timeline
Log In to Comment