diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-12-08 07:27:14 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-12-08 07:27:14 +0000 |
| commit | 82d9bcd6fb9179a51d8655ae6fb9c7fb337f3c72 (patch) | |
| tree | 9ab9f029c3129a40e82285133f01013bc40fd9c8 /dev-python | |
| parent | c704281ee106a9903f6cab86862df5de309b1d6a (diff) | |
| download | baldeagleos-repo-82d9bcd6fb9179a51d8655ae6fb9c7fb337f3c72.tar.gz baldeagleos-repo-82d9bcd6fb9179a51d8655ae6fb9c7fb337f3c72.tar.xz baldeagleos-repo-82d9bcd6fb9179a51d8655ae6fb9c7fb337f3c72.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
24 files changed, 397 insertions, 83 deletions
diff --git a/dev-python/bcrypt/bcrypt-4.2.1.ebuild b/dev-python/bcrypt/bcrypt-4.2.1.ebuild index 71370aa2480b..8e8624fd81ce 100644 --- a/dev-python/bcrypt/bcrypt-4.2.1.ebuild +++ b/dev-python/bcrypt/bcrypt-4.2.1.ebuild @@ -64,7 +64,7 @@ LICENSE="Apache-2.0" # Dependent crate licenses LICENSE+=" Apache-2.0-with-LLVM-exceptions BSD MIT Unicode-DFS-2016" SLOT="0" -KEYWORDS="~amd64 arm arm64 ~loong ~mips ppc ~ppc64 ~riscv ~s390 sparc ~x86" +KEYWORDS="~amd64 arm arm64 ~loong ~mips ppc ~ppc64 ~riscv ~s390 sparc x86" BDEPEND=" >=dev-python/setuptools-rust-1.7.0[${PYTHON_USEDEP}] diff --git a/dev-python/dulwich/dulwich-0.22.6.ebuild b/dev-python/dulwich/dulwich-0.22.6.ebuild index 0bdccb043ac3..a63967789d76 100644 --- a/dev-python/dulwich/dulwich-0.22.6.ebuild +++ b/dev-python/dulwich/dulwich-0.22.6.ebuild @@ -51,7 +51,7 @@ LICENSE+=" Apache-2.0-with-LLVM-exceptions MIT Unicode-DFS-2016" LICENSE+=" )" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm arm64 ~ppc ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +KEYWORDS="~alpha ~amd64 ~arm arm64 ~ppc ~ppc64 ~riscv ~s390 x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" IUSE="doc examples +native-extensions test" RESTRICT="!test? ( test )" diff --git a/dev-python/inline-snapshot/Manifest b/dev-python/inline-snapshot/Manifest index c09c32eefcea..a7a82e86f39c 100644 --- a/dev-python/inline-snapshot/Manifest +++ b/dev-python/inline-snapshot/Manifest @@ -1,2 +1,3 @@ DIST inline_snapshot-0.14.0.tar.gz 209662 BLAKE2B 9bea11df88aab049af61146cb40c8afaa7607f8812c800ee7dffc7de94403029e4ae1d1ed49921f624e5327171650210744962559786e45586ae929830f81819 SHA512 32855dcd098c3e9b6a046752a3fc03c18b0df85e2cf338a928eadcd0e63bb784bdaca6855c954974ec7561e602ff3dd95ccdadb0c4f7dd1075d9d84245c171ef DIST inline_snapshot-0.14.1.tar.gz 220919 BLAKE2B 5bcd704ada3e31aad51fb22df3cfb8715580ded679b62205dd151b073428fffd6325b809b1aab4e5aa5d66cb7210b30e99189e72a0e031e98de6498465c5b22b SHA512 74462c7514861c1e1ac33da17b0dd61e77e76a37853fd765dde17233ccd36d11a8d184a9e7da6b855377e96968367ce5b30ca874cd209bb742fb1cdbdf2b0b54 +DIST inline_snapshot-0.14.2.tar.gz 221204 BLAKE2B b6ead7cafac4c83e4913fc24407f5de86a6ba5f965a67494e5463a3c784b560e063897eb6c351debb33a23a3127efbf51b928173b23641ae0b46f2e627e59b4e SHA512 fd50e80e344e58f92c9de7817515c240921b67c1035cd8b392a4a2e6133a22b22f3f88fac9b75116b4211068933e022683e719dde56d54dd1c55e8dfa7a7caf8 diff --git a/dev-python/inline-snapshot/inline-snapshot-0.14.2.ebuild b/dev-python/inline-snapshot/inline-snapshot-0.14.2.ebuild new file mode 100644 index 000000000000..92623feb8556 --- /dev/null +++ b/dev-python/inline-snapshot/inline-snapshot-0.14.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Create and update inline snapshots in your Python tests" +HOMEPAGE=" + https://15r10nk.github.io/inline-snapshot/ + https://github.com/15r10nk/inline-snapshot/ + https://pypi.org/project/inline-snapshot/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/asttokens-2.0.5[${PYTHON_USEDEP}] + >=dev-python/black-23.3.0[${PYTHON_USEDEP}] + >=dev-python/click-8.1.4[${PYTHON_USEDEP}] + >=dev-python/executing-2.1.0[${PYTHON_USEDEP}] + >=dev-python/rich-13.7.1[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/tomli-2.0.0[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + test? ( + >=dev-python/dirty-equals-0.7.0[${PYTHON_USEDEP}] + >=dev-python/hypothesis-6.75.5[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/mypy[${PYTHON_USEDEP}] + ' 'python*') + dev-python/pydantic[${PYTHON_USEDEP}] + >=dev-python/pytest-freezer-0.4.8[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-3.14.0[${PYTHON_USEDEP}] + >=dev-python/pytest-subtests-0.11.0[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # requires pyright + 'tests/test_typing.py::test_typing[pyright]' + ) + + local -x COLUMNS=80 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=inline_snapshot.pytest_plugin,pytest_freezer,pytest_subtests.plugin,xdist.plugin + local -x PYTHONPATH=${S}/src + epytest -p pytest_mock +} diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index a11d7c268c91..37a64204a00a 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1 +1,3 @@ DIST langdetect-1.0.9.tar.gz 981474 BLAKE2B ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c SHA512 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db +EBUILD langdetect-1.0.9.ebuild 494 BLAKE2B 9b3521c5721afa49a58e0c35267f7d82bb56bd7e1d6d3152be0d36cd220180a526cb20b90b1113fbf0fff4a512137570f0b3bcf864498b7b7cc00403cb61ca27 SHA512 16d311400bf84a5f04e15f3da4b68b2810e4b005009f4d03dc8a487176dfc294403c976c412c83dcfa8084a49ef7b7d5389b43fb2ba446ce107ce4595e3558c6 +MISC metadata.xml 457 BLAKE2B 630128a3e982b6d60cc7b9f74c79fcb5ee47a71a02c73a50af9da8cedb6fad8e20a7f74b881e5b25c6483b92c9edbd56552cd38b2d9cbfa8b3eb4530facea969 SHA512 674f4f5cd809c6c77bc14e0f5687fa972bef14bdfa0b3343c5d66b7163eef1906eb87d060c8288732f825de71dce291ad0b841a5f2f0dd230f957b5687e45d45 diff --git a/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch b/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch deleted file mode 100644 index 637368d2f237..000000000000 --- a/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch +++ /dev/null @@ -1,13 +0,0 @@ -Fix "Package 'langdetect.profiles' is absent from the `packages` configuration." - ---- a/setup.py -+++ b/setup.py -@@ -18,7 +18,7 @@ setup( - author_email='michal.danilak@gmail.com', - url='https://github.com/Mimino666/langdetect', - keywords='language detection library', -- packages=['langdetect', 'langdetect.utils', 'langdetect.tests'], -+ packages=['langdetect', 'langdetect.utils', 'langdetect.tests', 'langdetect.profiles'], - include_package_data=True, - install_requires=['six'], - license='MIT', diff --git a/dev-python/langdetect/langdetect-1.0.9.ebuild b/dev-python/langdetect/langdetect-1.0.9.ebuild index eb2586280d80..56733bbffc48 100644 --- a/dev-python/langdetect/langdetect-1.0.9.ebuild +++ b/dev-python/langdetect/langdetect-1.0.9.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2024 Gentoo Authors +# Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,6 +19,4 @@ KEYWORDS="~amd64" RDEPEND="dev-python/six[${PYTHON_USEDEP}]" -PATCHES=( "${FILESDIR}/${P}-explicit-config.patch" ) - distutils_enable_tests unittest diff --git a/dev-python/langdetect/metadata.xml b/dev-python/langdetect/metadata.xml index c0f74ac187e2..020e07f2a3dd 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -2,9 +2,11 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>pastalian46@gmail.com</email> - <name>Takuya Wakazono</name> + <email>marcin.deranek@slonko.net</email> + <name>Marcin Deranek</name> </maintainer> - - <origin>gentoo-guru-overlay</origin> + <upstream> + <bugs-to>https://github.com/Mimino666/langdetect/issues</bugs-to> + </upstream> + <origin>slonko-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/mako/Manifest b/dev-python/mako/Manifest index c44eceeda6de..cfcd070467f6 100644 --- a/dev-python/mako/Manifest +++ b/dev-python/mako/Manifest @@ -1,2 +1,3 @@ DIST mako-1.3.6.tar.gz 390206 BLAKE2B 9ead8381e738033d06950a537ecd04b8f83909027430f5d246a0dac13f3e7ad874353d3945d2d1f5ff188d5379db051a1092c68b84e0f6f4d93a7fc8ed715b4d SHA512 ad7a05b7cb4a330495ba5842d578565356d19912fee20e2d894a6e5a7812197944943d947eb15a539ef4a11d2bafde29fc7b007767228bd8e40f154d53631073 DIST mako-1.3.7.tar.gz 392052 BLAKE2B 06e5c850f77c85fd5e11a66707f0eb3d318dcc5f5080f6a8f4292270a0195f17a032ecc87cbe418e2364e6ebe74e29ca2b6acbf9cdf0bc2b4992981acc85168c SHA512 b52bcaa688091ae0fb8195e16bec6b4075c1424073cb0aef9cfdd7a92a27386f492181aeeb6c1b30aea57a9c9c4c32dc909133e9ef8e1de858d24c2d816c776c +DIST mako-1.3.8.tar.gz 392069 BLAKE2B aa0815aecb41435498adc1c62e30d91762bd778ec62c3ff9650f1c4ca43445c5a5381555f0b0af071ffe7bd1ceb9273de1b763303c297383668b98fdb8512734 SHA512 e7fc401526b2b1d69f94be68511aac7e99a0692b1fa8fe8e46894fd6c331bd9e19656715ed6523b04c0bf0e1c78268bb6b54d53f6c7402119ba057c119eccf0b diff --git a/dev-python/mako/mako-1.3.8.ebuild b/dev-python/mako/mako-1.3.8.ebuild new file mode 100644 index 000000000000..8fafab0f5a3e --- /dev/null +++ b/dev-python/mako/mako-1.3.8.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_PN=${PN^} +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="A Python templating language" +HOMEPAGE=" + https://www.makotemplates.org/ + https://github.com/sqlalchemy/mako/ + https://pypi.org/project/Mako/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="doc" + +RDEPEND=" + >=dev-python/markupsafe-0.9.2[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/babel[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + test/test_exceptions.py::ExceptionsTest::test_alternating_file_names + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} + +python_install_all() { + rm -r doc/build || die + + use doc && local HTML_DOCS=( doc/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/pikepdf/pikepdf-9.4.2.ebuild b/dev-python/pikepdf/pikepdf-9.4.2.ebuild index 99ce5e28e3b8..264eab74744d 100644 --- a/dev-python/pikepdf/pikepdf-9.4.2.ebuild +++ b/dev-python/pikepdf/pikepdf-9.4.2.ebuild @@ -17,7 +17,7 @@ HOMEPAGE=" LICENSE="MPL-2.0" SLOT="0" -KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~loong ppc ~ppc64 ~riscv ~s390 sparc ~x86" +KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~loong ppc ~ppc64 ~riscv ~s390 sparc x86" IUSE="big-endian" # Check QPDF_MIN_VERSION in pyproject.toml on bumps, as well as diff --git a/dev-python/pyqtgraph/metadata.xml b/dev-python/pyqtgraph/metadata.xml index caa92d53604f..2a416c96939f 100644 --- a/dev-python/pyqtgraph/metadata.xml +++ b/dev-python/pyqtgraph/metadata.xml @@ -10,7 +10,7 @@ It is intended for use in mathematics / scientific / engineering applications. Despite being written entirely in python, the library is very fast due to its heavy leverage of numpy for number crunching - and Qt's GraphicsView framework for fast display. + and Qt's GraphicsView framework for fast display. </longdescription> <origin>gentoo-staging</origin> diff --git a/dev-python/pyqtgraph/pyqtgraph-0.13.7.ebuild b/dev-python/pyqtgraph/pyqtgraph-0.13.7-r1.ebuild index 685a5fb86956..8f8c89f46d48 100644 --- a/dev-python/pyqtgraph/pyqtgraph-0.13.7.ebuild +++ b/dev-python/pyqtgraph/pyqtgraph-0.13.7-r1.ebuild @@ -28,14 +28,14 @@ REQUIRED_USE="test? ( opengl svg )" RDEPEND=" >=dev-python/numpy-1.22[${PYTHON_USEDEP}] + dev-python/pyqt6[gui,widgets,opengl=,svg=,${PYTHON_USEDEP}] dev-python/scipy[${PYTHON_USEDEP}] - dev-python/pyqt5[gui,widgets,opengl=,svg=,${PYTHON_USEDEP}] opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] ) " BDEPEND=" test? ( dev-python/h5py[${PYTHON_USEDEP}] - dev-python/pyqt5[testlib,${PYTHON_USEDEP}] + dev-python/pyqt6[testlib,${PYTHON_USEDEP}] dev-python/pytest-xvfb[${PYTHON_USEDEP}] dev-vcs/git ) @@ -50,6 +50,29 @@ python_prepare_all() { if ! use opengl; then rm -r pyqtgraph/opengl || die fi + + # pyqtgraph will automatically use any QT bindings it finds, + # Since we only want qt6, hardcode this where upstream allows an envvar to pick. + sed -i "s/QT_LIB = os.getenv('PYQTGRAPH_QT_LIB')/QT_LIB = 'PyQt6'/" pyqtgraph/Qt/__init__.py || + die "Failed to set QT_LIB" + + # We only want to run tests for qt6 so don't try other frontends if they're installed. + if use test; then + awk -i inplace ' + /frontends = {/ { + i = 6 # length of frontends + + print "frontends = {" + print " Qt.PYQT6: False," + print "}" + } + i > 0 { + i-- + next + } + { print } + ' pyqtgraph/examples/test_examples.py || die "Failed to patch test frontends" + fi } python_test() { diff --git a/dev-python/pytest-subtests/Manifest b/dev-python/pytest-subtests/Manifest index b09258cbad40..9e7d4a367aeb 100644 --- a/dev-python/pytest-subtests/Manifest +++ b/dev-python/pytest-subtests/Manifest @@ -1 +1,2 @@ DIST pytest_subtests-0.13.1.tar.gz 15936 BLAKE2B 6301c0dae6eccd9f20acf6c08e0b1b77c7e80a64e4558628cc85e0d6c202d0b2bb0d7be27f930d7bf68ab8c4c2076e7fe68ab24b9b45cb22fbb3a4b31fd7b4e7 SHA512 c1c92a7a608710fd75a3a67cfd620ec257d7b1fa191fc4788a747ffebdf3973dde9407ed85e1842f15947558f6ec7c15e5c13ad84ce59489398386d6578f1caf +DIST pytest_subtests-0.14.0.tar.gz 17363 BLAKE2B 3b0ebe86b0acd1e2f00c75f11a2d04f8269774ca44f2b55b337a2c1d68da9d1636e5c159e4e554c21f27f8a80adc91dd36bee7d8f2ec359340e9cc5de0edd702 SHA512 53306f887fdd500226991394624fac06c60dd1339e8689f041f5b14ee6ad75470a08cca48230dab774f04d75f5ae5a63c2f3f08231e5ae61a7d928f6e23781b6 diff --git a/dev-python/pytest-subtests/pytest-subtests-0.14.0.ebuild b/dev-python/pytest-subtests/pytest-subtests-0.14.0.ebuild new file mode 100644 index 000000000000..f91ee1b59cf8 --- /dev/null +++ b/dev-python/pytest-subtests/pytest-subtests-0.14.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Unittest subTest() support and subtests fixture" +HOMEPAGE=" + https://github.com/pytest-dev/pytest-subtests/ + https://pypi.org/project/pytest-subtests/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + >=dev-python/pytest-7.4[${PYTHON_USEDEP}] +" +# pytest-xdist is used to test compatibility +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=xdist.plugin,pytest_subtests.plugin + epytest +} diff --git a/dev-python/smartypants/Manifest b/dev-python/smartypants/Manifest index 79e9099de5d4..972b658f1a6e 100755..100644 --- a/dev-python/smartypants/Manifest +++ b/dev-python/smartypants/Manifest @@ -1 +1 @@ -DIST smartypants-2.0.1.tar.gz 24152 BLAKE2B 258c9692eec675054dc31f760cf3a9fc3995683d7a15fc549fb390611761c0b09f73e077f5917f9f071a8fc1ae3f06e36f745fdc0e2c368f465e29f6ce51457f SHA512 d47a866a5478c3520251f87a93a468a5eea10318b24b2e8d4bc918d533b5a5789aa56d3a8d5fb8ccff9572fb63e5b6f2eafc44f93fb57a19e6621ebef5d64d9d +DIST smartypants-2.0.1.gh.tar.gz 24152 BLAKE2B 258c9692eec675054dc31f760cf3a9fc3995683d7a15fc549fb390611761c0b09f73e077f5917f9f071a8fc1ae3f06e36f745fdc0e2c368f465e29f6ce51457f SHA512 d47a866a5478c3520251f87a93a468a5eea10318b24b2e8d4bc918d533b5a5789aa56d3a8d5fb8ccff9572fb63e5b6f2eafc44f93fb57a19e6621ebef5d64d9d diff --git a/dev-python/smartypants/files/smartypants-2.0.1-py312.patch b/dev-python/smartypants/files/smartypants-2.0.1-py312.patch new file mode 100644 index 000000000000..e1e3a1ac6249 --- /dev/null +++ b/dev-python/smartypants/files/smartypants-2.0.1-py312.patch @@ -0,0 +1,110 @@ +From ea46bf36343044a7a61ba3acce4a7f188d986ec5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= <mimi.vx@gmail.com> +Date: Mon, 25 Sep 2023 10:31:37 +0200 +Subject: [PATCH] Fix regexps and tests for python3.12 + +--- + smartypants.py | 4 ++-- + tests/test.py | 4 ++-- + tests/test_cli.py | 16 ++++++++-------- + 3 files changed, 12 insertions(+), 12 deletions(-) + +diff --git a/smartypants.py b/smartypants.py +index c39f409..37368fb 100755 +--- a/smartypants.py ++++ b/smartypants.py +@@ -268,13 +268,13 @@ def smartypants(text, attr=None): + if do_quotes: + if t == "'": + # Special case: single-character ' token +- if re.match("\S", prev_token_last_char): ++ if re.match(r"\S", prev_token_last_char): + t = "’" + else: + t = "‘" + elif t == '"': + # Special case: single-character " token +- if re.match("\S", prev_token_last_char): ++ if re.match(r"\S", prev_token_last_char): + t = "”" + else: + t = "“" +diff --git a/tests/test.py b/tests/test.py +index 2c1a0ea..ac5075a 100644 +--- a/tests/test.py ++++ b/tests/test.py +@@ -24,7 +24,7 @@ def test_change_default_attr(self): + + T = sp(TEXT) + E = '“foo” -- bar' +- self.assertEquals(T, E) ++ self.assertEqual(T, E) + + attr = Attr.q | Attr.d + Attr.default = attr +@@ -32,7 +32,7 @@ def test_change_default_attr(self): + + T = sp(TEXT) + E = '“foo” — bar' +- self.assertEquals(T, E) ++ self.assertEqual(T, E) + + def test_dates(self): + +diff --git a/tests/test_cli.py b/tests/test_cli.py +index e85545a..6b5e136 100644 +--- a/tests/test_cli.py ++++ b/tests/test_cli.py +@@ -34,7 +34,7 @@ def test_pipe(self): + E = '“foobar”' + + output = self._p([CLI_SCRIPT], T) +- self.assertEquals(output, E) ++ self.assertEqual(output, E) + + def test_pipe_attr(self): + +@@ -42,11 +42,11 @@ def test_pipe_attr(self): + + E = T + output = self._p([CLI_SCRIPT, '--attr', '0'], T) +- self.assertEquals(output, E) ++ self.assertEqual(output, E) + + E = """"foo" “bar”""" + output = self._p([CLI_SCRIPT, '--attr', 'b'], T) +- self.assertEquals(output, E) ++ self.assertEqual(output, E) + + def test_skipped_elements(self): + +@@ -54,19 +54,19 @@ def test_skipped_elements(self): + + E = '<a>“foo”</a> <b>“bar”</b>' + output = self._p([CLI_SCRIPT], T) +- self.assertEquals(output, E) ++ self.assertEqual(output, E) + + E = '<a>"foo"</a> <b>“bar”</b>' + output = self._p([CLI_SCRIPT, '--skip', 'a'], T) +- self.assertEquals(output, E) ++ self.assertEqual(output, E) + + E = '<a>“foo”</a> <b>"bar"</b>' + output = self._p([CLI_SCRIPT, '--skip', 'b'], T) +- self.assertEquals(output, E) ++ self.assertEqual(output, E) + + E = T + output = self._p([CLI_SCRIPT, '--skip', 'a,b'], T) +- self.assertEquals(output, E) ++ self.assertEqual(output, E) + + def test_file(self): + +@@ -81,4 +81,4 @@ def test_file(self): + output = self._p([CLI_SCRIPT, F]) + finally: + os.remove(F) +- self.assertEquals(output, E) ++ self.assertEqual(output, E) diff --git a/dev-python/smartypants/metadata.xml b/dev-python/smartypants/metadata.xml index 36acccda7221..e995402d961b 100644 --- a/dev-python/smartypants/metadata.xml +++ b/dev-python/smartypants/metadata.xml @@ -2,9 +2,15 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> + <email>python@gentoo.org</email> + <name>Python</name> </maintainer> + <longdescription lang="en"> + smartypants does transformations of plain old ASCII straight quotes, + plain dashes, and plain dots, into smart quotes, em-dashes, and + proper ellipses. + </longdescription> - <origin>ports</origin> + <origin>gentoo-staging</origin> + <stabilize-allarches/> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/smartypants/smartypants-2.0.1-r1.ebuild b/dev-python/smartypants/smartypants-2.0.1-r1.ebuild new file mode 100644 index 000000000000..d7583e43601f --- /dev/null +++ b/dev-python/smartypants/smartypants-2.0.1-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 + +MY_P="${PN}.py-${PV}" +DESCRIPTION="ASCII quote-dot-dash to HTML entity converter" +HOMEPAGE=" + https://pypi.org/project/smartypants/ + https://github.com/leohemsted/smartypants.py/ +" +SRC_URI=" + https://github.com/leohemsted/smartypants.py/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" + +distutils_enable_sphinx docs +distutils_enable_tests unittest + +src_prepare() { + local PATCHES=( + # https://github.com/leohemsted/smartypants.py/pull/21 + "${FILESDIR}/${P}-py312.patch" + ) + + # relevant only to upstream packaging, requires docutils + rm tests/test_setup.py || die + distutils-r1_src_prepare +} + +python_test() { + eunittest -s tests +} diff --git a/dev-python/smartypants/smartypants-2.0.1-r2.ebuild b/dev-python/smartypants/smartypants-2.0.1-r2.ebuild deleted file mode 100755 index 54255c4ee635..000000000000 --- a/dev-python/smartypants/smartypants-2.0.1-r2.ebuild +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 2020-2021 LiGurOs Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 - -DESCRIPTION="SmartyPants: a smart-quotes plugin." -HOMEPAGE="https://github.com/leohemsted/smartypants.py -https://pypi.python.org/pypi/smartypants" -SRC_URI="https://github.com/leohemsted/${PN}.py/archive/v${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64 ~x86" - -S="${WORKDIR}/${PN}.py-${PV}" - -LICENSE="BSD" -SLOT="0" -IUSE="" - -DEPEND="" -RDEPEND="" - -DOCS=( README.rst COPYING CHANGES.rst ) - diff --git a/dev-python/typogrify/metadata.xml b/dev-python/typogrify/metadata.xml index 36acccda7221..e13160c02dd0 100644 --- a/dev-python/typogrify/metadata.xml +++ b/dev-python/typogrify/metadata.xml @@ -2,9 +2,12 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> + <email>python@gentoo.org</email> + <name>Python</name> </maintainer> - - <origin>ports</origin> + <upstream> + <bugs-to>https://github.com/mintchaos/typogrify/issues/</bugs-to> + </upstream> + <origin>gentoo-staging</origin> + <stabilize-allarches/> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/typogrify/typogrify-2.0.7-r1.ebuild b/dev-python/typogrify/typogrify-2.0.7-r1.ebuild new file mode 100644 index 000000000000..1cc927fc9678 --- /dev/null +++ b/dev-python/typogrify/typogrify-2.0.7-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Filters for web typography, supporting Django & Jinja templates" +HOMEPAGE=" + https://github.com/mintchaos/typogrify/ + https://pypi.org/project/typogrify/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" + +RDEPEND=" + >=dev-python/smartypants-1.8.3[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_test() { + epytest --doctest-modules \ + typogrify/filters.py \ + typogrify/packages/titlecase/tests.py +} diff --git a/dev-python/typogrify/typogrify-2.0.7-r2.ebuild b/dev-python/typogrify/typogrify-2.0.7-r2.ebuild deleted file mode 100755 index 6838ba64929b..000000000000 --- a/dev-python/typogrify/typogrify-2.0.7-r2.ebuild +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2020-2023 LiGurOs Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 - -DESCRIPTION="Filters to enhance web typography, often used with Jinja or Django" -SRC_URI="https://files.pythonhosted.org/packages/8a/bf/64959d6187d42472acb846bcf462347c9124952c05bd57e5769d5f28f9a6/typogrify-2.0.7.tar.gz" -HOMEPAGE="https://github.com/mintchaos/typogrify https://pypi.python.org/pypi/typogrify/" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="*" - -DEPEND=${PYTHON_DEPS} -RDEPEND="${PYTHON_DEPS} - dev-python/smartypants" - -RESTRICT="mirror" - -DOCS="README.rst" diff --git a/dev-python/wrapt/wrapt-1.17.0.ebuild b/dev-python/wrapt/wrapt-1.17.0.ebuild index 2868c7846ccf..3afffb4a6b50 100644 --- a/dev-python/wrapt/wrapt-1.17.0.ebuild +++ b/dev-python/wrapt/wrapt-1.17.0.ebuild @@ -23,7 +23,7 @@ S=${WORKDIR}/${MY_P} LICENSE="BSD" SLOT="0" -KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ~ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="+native-extensions" distutils_enable_tests pytest |
