diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-10-30 09:50:10 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-10-30 09:50:10 +0000 |
| commit | e08ef2001e9e040c94c32594d8e644117e0c0929 (patch) | |
| tree | 18069d5ffad0d5dc507f45d95c2cbcee47ccf251 /dev-python/bpython | |
| parent | d4a7f2a56c813fedd229bd6af662e28cdde3cc9e (diff) | |
| download | baldeagleos-repo-e08ef2001e9e040c94c32594d8e644117e0c0929.tar.gz baldeagleos-repo-e08ef2001e9e040c94c32594d8e644117e0c0929.tar.xz baldeagleos-repo-e08ef2001e9e040c94c32594d8e644117e0c0929.zip | |
Adding metadata
Diffstat (limited to 'dev-python/bpython')
| -rw-r--r-- | dev-python/bpython/bpython-0.21.ebuild | 7 | ||||
| -rw-r--r-- | dev-python/bpython/files/bpython-0.21-fix-py3.10.patch | 48 |
2 files changed, 52 insertions, 3 deletions
diff --git a/dev-python/bpython/bpython-0.21.ebuild b/dev-python/bpython/bpython-0.21.ebuild index a675907cc126..cf857173aca4 100644 --- a/dev-python/bpython/bpython-0.21.ebuild +++ b/dev-python/bpython/bpython-0.21.ebuild @@ -4,8 +4,6 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -DISTUTILS_USE_SETUPTOOLS=rdepend - inherit distutils-r1 DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter" @@ -34,7 +32,10 @@ BDEPEND=" DOCS=( AUTHORS.rst CHANGELOG.rst ) -PATCHES=( "${FILESDIR}"/${PN}-sphinx-4.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-sphinx-4.patch + "${FILESDIR}"/${P}-fix-py3.10.patch +) distutils_enable_sphinx doc/sphinx/source --no-autodoc distutils_enable_tests unittest diff --git a/dev-python/bpython/files/bpython-0.21-fix-py3.10.patch b/dev-python/bpython/files/bpython-0.21-fix-py3.10.patch new file mode 100644 index 000000000000..5b7c63767820 --- /dev/null +++ b/dev-python/bpython/files/bpython-0.21-fix-py3.10.patch @@ -0,0 +1,48 @@ +From 78ead4c83d7c47c35ab075dd08114f51c24a709d Mon Sep 17 00:00:00 2001 +From: Thomas Ballinger <thomasballinger@gmail.com> +Date: Wed, 6 Oct 2021 19:59:38 -0700 +Subject: [PATCH] Test Python 3.10 (#924) + +* Test Python 3.10 +* Update tests for Python 3.10 + +--- a/bpython/test/test_curtsies_painting.py ++++ b/bpython/test/test_curtsies_painting.py +@@ -139,6 +139,14 @@ def test_completion(self): + "└──────────────────────────────┘", + "Welcome to bpython! Press <F1> f", + ] ++ if sys.version_info[:2] < (3, 10) ++ else [ ++ ">>> an", ++ "┌──────────────────────────────┐", ++ "│ and anext( any( │", ++ "└──────────────────────────────┘", ++ "Welcome to bpython! Press <F1> f", ++ ] + ) + self.assert_paint_ignoring_formatting(screen, (0, 4)) + +--- a/bpython/test/test_interpreter.py ++++ b/bpython/test/test_interpreter.py +@@ -35,7 +35,19 @@ def test_syntaxerror(self): + + i.runsource("1.1.1.1") + +- if sys.version_info[:2] >= (3, 8): ++ if sys.version_info[:2] >= (3, 10): ++ expected = ( ++ " File " ++ + green('"<bpython-input-148>"') ++ + ", line " ++ + bold(magenta("1")) ++ + "\n 1.1.1.1\n ^^^^^\n" ++ + bold(red("SyntaxError")) ++ + ": " ++ + cyan("invalid syntax. Perhaps you forgot a comma?") ++ + "\n" ++ ) ++ elif (3, 8) <= sys.version_info[:2] <= (3, 9): + expected = ( + " File " + + green('"<input>"') |
