diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-05-06 01:02:13 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-05-06 01:02:13 +0000 |
| commit | d6af944fc045bab411dbe102573b5f4e1743566b (patch) | |
| tree | 6d78cb563e4f3a5c92eccfe0fb94e512bc6c2506 /dev-python/astunparse | |
| parent | 3cc2502c66a22cd84449a4d0b3d04bda656a9383 (diff) | |
| download | baldeagleos-repo-d6af944fc045bab411dbe102573b5f4e1743566b.tar.gz baldeagleos-repo-d6af944fc045bab411dbe102573b5f4e1743566b.tar.xz baldeagleos-repo-d6af944fc045bab411dbe102573b5f4e1743566b.zip | |
Adding metadata
Diffstat (limited to 'dev-python/astunparse')
| -rw-r--r-- | dev-python/astunparse/astunparse-1.6.3-r1.ebuild | 4 | ||||
| -rw-r--r-- | dev-python/astunparse/files/astunparse-1.6.3-test-py311.patch | 26 |
2 files changed, 29 insertions, 1 deletions
diff --git a/dev-python/astunparse/astunparse-1.6.3-r1.ebuild b/dev-python/astunparse/astunparse-1.6.3-r1.ebuild index 4c73b9daa499..e1738bda3476 100644 --- a/dev-python/astunparse/astunparse-1.6.3-r1.ebuild +++ b/dev-python/astunparse/astunparse-1.6.3-r1.ebuild @@ -25,8 +25,10 @@ RDEPEND=" PATCHES=( "${FILESDIR}/astunparse-1.6.2-tests.patch" - # from Fedora + # From Fedora "${FILESDIR}/${P}-py39.patch" + # From Debian + "${FILESDIR}/${P}-test-py311.patch" ) distutils_enable_tests unittest diff --git a/dev-python/astunparse/files/astunparse-1.6.3-test-py311.patch b/dev-python/astunparse/files/astunparse-1.6.3-test-py311.patch new file mode 100644 index 000000000000..f17ff76f0f6f --- /dev/null +++ b/dev-python/astunparse/files/astunparse-1.6.3-test-py311.patch @@ -0,0 +1,26 @@ +From: Carsten Schoenert <c.schoenert@t-online.de> +Date: Sat, 31 Dec 2022 12:01:26 +0100 +Subject: tests: Skip test_files() on Python >= 3.11 + +Given functions from astunparse are now mostly "battery included" in +Python 3.10 and ongoing und the test itself is only a small part of the +testing I think it's o.k. to simply skip now this test until upstream +will probably do some adjustment. + +Forwarded: https://github.com/simonpercivall/astunparse/issues/67 +--- + tests/common.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/common.py b/tests/common.py +index 95b9755..7c8fa27 100644 +--- a/tests/common.py ++++ b/tests/common.py +@@ -179,6 +179,7 @@ class AstunparseCommonTestCase: + os.path.join(getattr(sys, 'real_prefix', sys.prefix), + 'lib', 'python%s.%s' % sys.version_info[:2])] + ++ @unittest.skipIf(sys.version_info >= (3, 11), "Ignoring if Python >= 3.11") + def test_files(self): + names = [] + for test_dir in self.test_directories: |
