File: apipkg.patch

package info (click to toggle)
pycsw 2.6.2%2Bdfsg-3
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 10,928 kB
  • sloc: xml: 38,354; python: 11,552; makefile: 173; sh: 3
file content (38 lines) | stat: -rw-r--r-- 984 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: Don't use apipkg, not compatible with pytest 9.
 Reverts https://github.com/geopython/pycsw/pull/536
Author: Bas Couwenberg <sebastic@debian.org>
Bug-Debian: https://bugs.debian.org/1120888
Forwarded: https://github.com/geopython/pycsw/pull/536#issuecomment-3544961862

--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -1,7 +1,6 @@
 -r requirements.txt
 -r requirements-standalone.txt
 
-apipkg>=1.4
 mock>=2.0.0
 Paver>=1.2.4
 pytest>=3.0.3
--- a/tests/functionaltests/conftest.py
+++ b/tests/functionaltests/conftest.py
@@ -35,18 +35,12 @@ import os
 import re
 import configparser
 
-import apipkg
+import psycopg2
 import pytest
 
 from pycsw.core import admin
 from pycsw.core.config import StaticContext
 
-apipkg.initpkg("optionaldependencies", {
-    "psycopg2": "psycopg2",
-})
-
-from optionaldependencies import psycopg2  # NOQA: E402
-
 TESTS_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 
 SuiteDirs = namedtuple("SuiteDirs", [