Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
   No module named 'py._path'; 'py' is not a package
  • Loading branch information
Zeno-sole committed Nov 22, 2023
1 parent 0387d57 commit 9461f9e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
quart (0.18.3-2deepin1) unstable; urgency=medium

* fix No module named 'py._path'; 'py' is not a package.

-- LiChengGang <[email protected]> Wed, 22 Nov 2023 09:37:34 +0800

quart (0.18.3-2) unstable; urgency=medium

* Team upload
Expand Down
23 changes: 23 additions & 0 deletions debian/patches/fix-LocalPath
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

--- quart-0.18.3.orig/tests/test_helpers.py
+++ quart-0.18.3/tests/test_helpers.py
@@ -6,7 +6,7 @@ from pathlib import Path
from typing import AsyncGenerator

import pytest
-from py._path.local import LocalPath
+#from py._path.local import LocalPath
from werkzeug.exceptions import NotFound

from quart import Blueprint, Quart, request
--- quart-0.18.3.orig/tests/wrappers/test_response.py
+++ quart-0.18.3/tests/wrappers/test_response.py
@@ -8,7 +8,7 @@ from typing import Any, AsyncGenerator

import pytest
from hypothesis import given, strategies as strategies
-from py._path.local import LocalPath
+#from py._path.local import LocalPath
from werkzeug.datastructures import Headers
from werkzeug.exceptions import RequestedRangeNotSatisfiable

1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix-LocalPath

0 comments on commit 9461f9e

Please sign in to comment.