From 4aec9255c99411cb07138353f1bdda61fe0b501d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 5 Sep 2022 16:24:39 +0100 Subject: gentoo auto-resync : 05:09:2022 - 16:24:39 --- dev-python/Manifest.gz | Bin 259884 -> 260209 bytes dev-python/qstylizer/Manifest | 2 + dev-python/qstylizer/qstylizer-0.2.2.ebuild | 52 +++++ dev-python/spyder-kernels/Manifest | 2 - .../spyder-kernels/spyder-kernels-2.3.2.ebuild | 73 ------- dev-python/spyder-line-profiler/Manifest | 3 + dev-python/spyder-line-profiler/metadata.xml | 12 ++ .../spyder-line-profiler-0.3.1.ebuild | 34 +++ dev-python/spyder-unittest/Manifest | 4 +- .../spyder-unittest/spyder-unittest-0.5.0.ebuild | 42 ---- .../spyder-unittest/spyder-unittest-0.5.1.ebuild | 42 ++++ dev-python/spyder-vim/Manifest | 3 + dev-python/spyder-vim/metadata.xml | 9 + .../spyder-vim/spyder-vim-0_pre20220831.ebuild | 40 ++++ dev-python/spyder/Manifest | 7 +- dev-python/spyder/metadata.xml | 1 - dev-python/spyder/spyder-5.3.2.ebuild | 193 ----------------- dev-python/spyder/spyder-5.3.3.ebuild | 16 +- dev-python/tpm2-pytss/Manifest | 5 +- ....1.0-src-move-package-under-src-directory.patch | 239 --------------------- dev-python/tpm2-pytss/tpm2-pytss-1.1.0.ebuild | 41 ---- dev-python/tpm2-pytss/tpm2-pytss-1.2.0.ebuild | 38 ++++ 22 files changed, 250 insertions(+), 608 deletions(-) create mode 100644 dev-python/qstylizer/qstylizer-0.2.2.ebuild delete mode 100644 dev-python/spyder-kernels/spyder-kernels-2.3.2.ebuild create mode 100644 dev-python/spyder-line-profiler/Manifest create mode 100644 dev-python/spyder-line-profiler/metadata.xml create mode 100644 dev-python/spyder-line-profiler/spyder-line-profiler-0.3.1.ebuild delete mode 100644 dev-python/spyder-unittest/spyder-unittest-0.5.0.ebuild create mode 100644 dev-python/spyder-unittest/spyder-unittest-0.5.1.ebuild create mode 100644 dev-python/spyder-vim/Manifest create mode 100644 dev-python/spyder-vim/metadata.xml create mode 100644 dev-python/spyder-vim/spyder-vim-0_pre20220831.ebuild delete mode 100644 dev-python/spyder/spyder-5.3.2.ebuild delete mode 100644 dev-python/tpm2-pytss/files/tpm2-pytss-1.1.0-src-move-package-under-src-directory.patch delete mode 100644 dev-python/tpm2-pytss/tpm2-pytss-1.1.0.ebuild create mode 100644 dev-python/tpm2-pytss/tpm2-pytss-1.2.0.ebuild (limited to 'dev-python') diff --git a/dev-python/Manifest.gz b/dev-python/Manifest.gz index d96b1b7c51fa..880bc2f7f451 100644 Binary files a/dev-python/Manifest.gz and b/dev-python/Manifest.gz differ diff --git a/dev-python/qstylizer/Manifest b/dev-python/qstylizer/Manifest index 90952e489911..14818ed6cf21 100644 --- a/dev-python/qstylizer/Manifest +++ b/dev-python/qstylizer/Manifest @@ -1,3 +1,5 @@ DIST qstylizer-0.2.1.tar.gz 20687 BLAKE2B ad158ac0f88c4a0a7c6d9fe9adc611f69cb946c28be8c414dbb40532901b53faee281e7c0a798c9f680d8e5cd8a04179b16df796041133a8dd65d117964e9905 SHA512 c5e4a4194b4282a6d2782c0636ed74e9885409570466765c6e2aee0a176175bb688854244828c56ffbd00e76d297a33de211dedae8d984021c816522ea2b6085 +DIST qstylizer-0.2.2.gh.tar.gz 20752 BLAKE2B c5442821389863bc03bb0659b528322cc12f5be8137f74746e3ec7a18bf89d2822d533d13cc23842daf32a0077ad84d0e7b5dc62f231e75e57388064bd08e5fc SHA512 682f10462965a93b36f0e44b75885b9d60b4d3cd03369976b977c9b928afed4e930b6b7ef26850bdb7b40ef2a31db35a9778738582dae8715f54c1f00a957fb3 EBUILD qstylizer-0.2.1-r1.ebuild 1569 BLAKE2B a142ea81c24235a68602ea7711ba47078fc1749fa7cb42c8562681c140f09cfd83ee74d93543f346c6ac6c438fa34d2e738fad0ffcd062a25cefc06e57905e50 SHA512 a0a382c0292119c8c684db0151a4615ac2a52ff213bcd8859e8be8ad19455959786d3efc11353dcbe039aebf43072932c05a34dd80823c2b85418dd109f48b51 +EBUILD qstylizer-0.2.2.ebuild 1572 BLAKE2B 2559416329605f75f6f38d23fa4f0f9869c88038233a68fd6703b9d85763de94065d4b865151b6efb1952de1d92ed5a769d9114147495eae7dc5ae4c6399e5eb SHA512 5902178ad1de4bece2dcb7191fdf868f606d9df1b619b9bd6940d0082b3d9d27fef9f2f49f1a4634df184601b4671c45007ebb782d4feb15a3a461d97247529c MISC metadata.xml 355 BLAKE2B bbd0a92b969f24330e934a3fb9db82c99d4e0f4daeb6a4fadaa5cefa0caa2d4eab393f2743664ea7bf685df3deed81ffd3e4eb8f12089d395c4c6b231bec9d58 SHA512 504b904577a9f891df117d1ca79a0041463cef7fcadb8c2dbfcf2f88abf2c26bc08a976dff5d8e51a563d6a6070b354fa2c1918051aeccf3ea5a359a3ea04694 diff --git a/dev-python/qstylizer/qstylizer-0.2.2.ebuild b/dev-python/qstylizer/qstylizer-0.2.2.ebuild new file mode 100644 index 000000000000..7e51a4b78757 --- /dev/null +++ b/dev-python/qstylizer/qstylizer-0.2.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="Stylesheet Generator for PyQt5/PySide2" +HOMEPAGE="https://github.com/blambright/qstylizer" +SRC_URI="https://github.com/blambright/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/tinycss2-0.5[${PYTHON_USEDEP}] + =dev-python/inflection-0.3.0[${PYTHON_USEDEP}] + + + + + andrewammerlaan@gentoo.org + Andrew Ammerlaan + + + spyder-line-profiler + + + diff --git a/dev-python/spyder-line-profiler/spyder-line-profiler-0.3.1.ebuild b/dev-python/spyder-line-profiler/spyder-line-profiler-0.3.1.ebuild new file mode 100644 index 000000000000..dc37126b66a1 --- /dev/null +++ b/dev-python/spyder-line-profiler/spyder-line-profiler-0.3.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="Plugin to run the python line profiler from within the spyder editor" +HOMEPAGE="https://github.com/spyder-ide/spyder-line-profiler" +SRC_URI="https://github.com/spyder-ide/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RESTRICT="test" + +RDEPEND=" + dev-python/line_profiler[${PYTHON_USEDEP}] + dev-python/qtawesome[${PYTHON_USEDEP}] + >=dev-python/spyder-5.2.0[${PYTHON_USEDEP}] + + + + + andrewammerlaan@gentoo.org + Andrew Ammerlaan + + + diff --git a/dev-python/spyder-vim/spyder-vim-0_pre20220831.ebuild b/dev-python/spyder-vim/spyder-vim-0_pre20220831.ebuild new file mode 100644 index 000000000000..546c6239f557 --- /dev/null +++ b/dev-python/spyder-vim/spyder-vim-0_pre20220831.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 virtualx + +COMMIT="2ccf0d1e6ccaba24bd05b379065ba43bd935c7bf" + +DESCRIPTION="Plugin for Spyder to enable Vim keybindings" +HOMEPAGE="https://github.com/spyder-ide/spyder-vim" +SRC_URI="https://github.com/spyder-ide/${PN}/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RESTRICT="test" + +RDEPEND=" + >=dev-python/spyder-5.3.3[${PYTHON_USEDEP}] + spyder - spyder-ide/spyderlib spyder-ide/spyder diff --git a/dev-python/spyder/spyder-5.3.2.ebuild b/dev-python/spyder/spyder-5.3.2.ebuild deleted file mode 100644 index d4b8b5281e41..000000000000 --- a/dev-python/spyder/spyder-5.3.2.ebuild +++ /dev/null @@ -1,193 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) -DISTUTILS_USE_PEP517=setuptools - -inherit optfeature xdg distutils-r1 - -# Commit of documentation to fetch -DOCS_PV="d43d6cd46b6eb7675ec690b0dff573ca03f2e301" - -DESCRIPTION="The Scientific Python Development Environment" -HOMEPAGE=" - https://www.spyder-ide.org/ - https://github.com/spyder-ide/spyder/ - https://pypi.org/project/spyder/ -" -SRC_URI=" - https://github.com/spyder-ide/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz - https://github.com/spyder-ide/${PN}-docs/archive/${DOCS_PV}.tar.gz -> ${PN}-docs-${DOCS_PV}.gh.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -# The test suite often hangs or does not work. RESTRICTing because IMO it is -# not worth the several hours I would have to spend every single version bump -# checking which tests do and do not work. -RESTRICT="test" - -RDEPEND=" - >=dev-python/atomicwrites-1.2.0[${PYTHON_USEDEP}] - >=dev-python/chardet-2.0.0[${PYTHON_USEDEP}] - >=dev-util/cookiecutter-1.6.0[${PYTHON_USEDEP}] - >=dev-python/diff-match-patch-20181111[${PYTHON_USEDEP}] - >=dev-python/intervaltree-3.0.2[${PYTHON_USEDEP}] - >=dev-python/jellyfish-0.7[${PYTHON_USEDEP}] - >=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}] - >=dev-python/keyring-17.0.0[${PYTHON_USEDEP}] - >=dev-python/nbconvert-4.0[${PYTHON_USEDEP}] - >=dev-python/numpydoc-0.6.0[${PYTHON_USEDEP}] - >=dev-python/pexpect-4.4.0[${PYTHON_USEDEP}] - >=dev-python/pickleshare-0.4[${PYTHON_USEDEP}] - >=dev-python/psutil-5.3[${PYTHON_USEDEP}] - >=dev-python/pygments-2.0[${PYTHON_USEDEP}] - >=dev-python/python-lsp-black-1.2.0[${PYTHON_USEDEP}] - >=dev-python/pyls-spyder-0.4.0[${PYTHON_USEDEP}] - >=dev-python/pyxdg-0.26[${PYTHON_USEDEP}] - >=dev-python/pyzmq-22.1.0[${PYTHON_USEDEP}] - >=dev-python/qdarkstyle-3.0.2[${PYTHON_USEDEP}] - =dev-python/qstylizer-0.1.10[${PYTHON_USEDEP}] - >=dev-python/qtawesome-1.0.2[${PYTHON_USEDEP}] - >=dev-python/qtconsole-5.3.0[${PYTHON_USEDEP}] - =dev-python/QtPy-2.1.0[${PYTHON_USEDEP},svg,webengine] - >=sci-libs/rtree-0.9.7[${PYTHON_USEDEP}] - >=dev-python/sphinx-0.6.6[${PYTHON_USEDEP}] - >=dev-python/spyder-kernels-2.3.2[${PYTHON_USEDEP}] - =dev-python/textdistance-4.2.0[${PYTHON_USEDEP}] - >=dev-python/three-merge-0.1.1[${PYTHON_USEDEP}] - >=dev-python/watchdog-0.10.3[${PYTHON_USEDEP}] -" - -BDEPEND=" - test? ( - dev-python/cython[${PYTHON_USEDEP}] - dev-python/flaky[${PYTHON_USEDEP}] - dev-python/matplotlib[tk,${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] - dev-python/pytest-lazy-fixture[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/pytest-ordering[${PYTHON_USEDEP}] - dev-python/pytest-qt[${PYTHON_USEDEP}] - dev-python/pytest-xvfb[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/scipy[${PYTHON_USEDEP}] - dev-python/sympy[${PYTHON_USEDEP}] - )" - -# Based on the courtesy of Arfrever -# This patch removes a call to update-desktop-database during build -# This fails because access is denied to this command during build -PATCHES=( - "${FILESDIR}/${PN}-5.0.0-build.patch" - "${FILESDIR}/${PN}-5.2.0-doc-theme-renamed.patch" -) - -DOCS=( - "AUTHORS.txt" - "Announcements.md" - "CHANGELOG.md" - "CODE_OF_CONDUCT.md" - "CONTRIBUTING.md" - "NOTICE.txt" - "README.md" - "RELEASE.md" -) - -distutils_enable_tests pytest -distutils_enable_sphinx docs/doc \ - dev-python/sphinx-panels \ - dev-python/pydata-sphinx-theme \ - dev-python/sphinx-multiversion - -python_prepare_all() { - # move docs into workdir - mv ../spyder-docs-${DOCS_PV}* docs || die - - # these dependencies are packaged separately: - # dev-python/spyder-kernels, - # dev-python/python-lsp-server, - # dev-python/qdarkstyle - rm -r external-deps/* || die - # runs against things packaged in external-deps dir - rm conftest.py || die - - # Do not depend on pyqt5<5.16, this dependency is carried by QtPy[pyqt5] - # Do not depend on pyqtwebengine<5.16, this dependency is carried by QtPy[webengine] - # Do not depend on parso and jedi, this is dependency is carried in python-lsp-server - # Do not depend on python-lsp-server, this dependency is carried in pyls-spyder - # Do not depend on ipython, this dependency is carried in spyder-kernels - # The explicit version requirements only make things more complicated, if e.g. - # pyls-spyder gains compatibility with a newer version of python-lsp-server - # in a new release it will take time for this information to propagate into - # the next spyder release. So just remove the dependency and let the other - # ebuilds handle the version requirements to speed things up and prevent - # issues such as Bug 803269. - sed -i \ - -e "/'pyqt5[ 0-9<=>.,]*',/d" \ - -e "/'pyqtwebengine[ 0-9<=>.,]*',/d" \ - -e "/'python-lsp-server\[all\][ 0-9<=>.,]*',/d" \ - -e "/'parso[ 0-9<=>.,]*',/d" \ - -e "/'jedi[ 0-9<=>.,]*',/d" \ - -e "/'pylint[ 0-9<=>.,]*',/d" \ - -e "/'ipython[ 0-9<=>.,]*',/d" \ - setup.py || die - sed -i \ - -e "/^PYLS_REQVER/c\PYLS_REQVER = '>=0.0.1'" \ - -e "/^PYLSP_REQVER/c\PYLSP_REQVER = '>=0.0.1'" \ - -e "/^PARSO_REQVER/c\PARSO_REQVER = '>=0.0.1'" \ - -e "/^JEDI_REQVER/c\JEDI_REQVER = '>=0.0.1'" \ - -e "/^PYLINT_REQVER/c\PYLINT_REQVER = '>=0.0.1'" \ - -e "/^IPYTHON_REQVER/c\IPYTHON_REQVER = '>=0.0.1'" \ - spyder/dependencies.py || die - - # do not check deps, fails because we removed dependencies above - sed -i -e 's:test_dependencies_for_spyder_setup_install_requires_in_sync:_&:' \ - spyder/tests/test_dependencies_in_sync.py || die - - # can't check for update, need network - rm spyder/workers/tests/test_update.py || die - - # skip online test - rm spyder/widgets/github/tests/test_github_backend.py || die - - distutils-r1_python_prepare_all -} - -# Calling pytest directly makes the tests freeze after completing even if successful -# Exit code is nonzero even upon success, so can't add || die here test results -# should be checked for success manually -python_test() { - "${EPYTHON}" runtests.py -} - -pkg_postinst() { - xdg_pkg_postinst - - optfeature "2D/3D plotting in the Python and IPython consoles" dev-python/matplotlib - optfeature "View and edit DataFrames and Series in the Variable Explorer" dev-python/pandas - optfeature "View and edit two or three dimensional arrays in the Variable Explorer" dev-python/numpy - optfeature "Symbolic mathematics in the IPython console" dev-python/sympy - optfeature "Import Matlab workspace files in the Variable Explorer" dev-python/scipy - optfeature "Run Cython files in the IPython console" dev-python/cython - optfeature "The hdf5/h5py plugin" dev-python/h5py - # optfeature "The line profiler plugin" dev-python/spyder-line-profiler - # optfeature "The memory profiler plugin" dev-python/spyder-memory-profiler - # spyder-autopep8 does not have a release (yet) - # and are not compatible with >=spyder-4.0.0 at the moment - # optfeature "The autopep8 plugin" dev-python/spyder-autopep8 - # optfeature "Vim key bindings" dev-python/spyder-vim - optfeature "Unittest support" dev-python/spyder-unittest - # optfeature "Jupyter notebook support" dev-python/spyder-notebook - optfeature "System terminal inside spyder" dev-python/spyder-terminal - # spyder-reports not yet updated to >=spyder-4.0.0 - # optfeature "Markdown reports using Pweave" dev-python/spyder-reports -} diff --git a/dev-python/spyder/spyder-5.3.3.ebuild b/dev-python/spyder/spyder-5.3.3.ebuild index 09784e580309..7cacaf6d3cd9 100644 --- a/dev-python/spyder/spyder-5.3.3.ebuild +++ b/dev-python/spyder/spyder-5.3.3.ebuild @@ -179,15 +179,17 @@ pkg_postinst() { optfeature "Import Matlab workspace files in the Variable Explorer" dev-python/scipy optfeature "Run Cython files in the IPython console" dev-python/cython optfeature "The hdf5/h5py plugin" dev-python/h5py - # optfeature "The line profiler plugin" dev-python/spyder-line-profiler - # optfeature "The memory profiler plugin" dev-python/spyder-memory-profiler - # spyder-autopep8 does not have a release (yet) - # and are not compatible with >=spyder-4.0.0 at the moment - # optfeature "The autopep8 plugin" dev-python/spyder-autopep8 - # optfeature "Vim key bindings" dev-python/spyder-vim + optfeature "The line profiler plugin" dev-python/spyder-line-profiler + optfeature "Vim key bindings" dev-python/spyder-vim optfeature "Unittest support" dev-python/spyder-unittest - # optfeature "Jupyter notebook support" dev-python/spyder-notebook optfeature "System terminal inside spyder" dev-python/spyder-terminal + # spyder-memory-profiler is not compatible with spyder-5.2+ yet + # optfeature "The memory profiler plugin" dev-python/spyder-memory-profiler + # spyder-notebook is not compatible with spyder-5.2+ yet + # optfeature "Jupyter notebook support" dev-python/spyder-notebook # spyder-reports not yet updated to >=spyder-4.0.0 # optfeature "Markdown reports using Pweave" dev-python/spyder-reports + # Plugins with no release yet: + # optfeature "Manage virtual environments and packages" dev-python/spyder-env-manager + # optfeature "VCS (e.g. git) integration" dev-python/spyder-vcs } diff --git a/dev-python/tpm2-pytss/Manifest b/dev-python/tpm2-pytss/Manifest index 7d7dfcb6c198..2f7b900f6abf 100644 --- a/dev-python/tpm2-pytss/Manifest +++ b/dev-python/tpm2-pytss/Manifest @@ -1,4 +1,3 @@ -AUX tpm2-pytss-1.1.0-src-move-package-under-src-directory.patch 9788 BLAKE2B aa0d9ec46a92aaaa1a26ccd632ad6fae17386f31f36cd411110632507c09622f8e4fff390b787d8b33af4cbffc18b298e2829565408d14fa54deedab227688df SHA512 913170a4bafc4c059d4ea6c3d855ad2c1a10a70dfc780e493964913c26156a6f08be969b219061d8e93341279641d38aac71ddeaddaea7c341e09e30823dc4fb -DIST tpm2-pytss-1.1.0.tar.gz 162559 BLAKE2B 2c9b34c323b96b3a8ded82a04accac9647d7f0b1cf05d269ed4bdf225d785fd8454dee82f054a5085f9d49d0feabacc8c5b72a7ee8af7bc9da8473d5689501b5 SHA512 71da9e005a3f645c0528a96bb96bafde9c262c5778646a19841af6323edaf889ede7267317ea96b7d44c7901d7bea04ca15fd1b5c86d61d33e49b34f5d0e2e94 -EBUILD tpm2-pytss-1.1.0.ebuild 989 BLAKE2B 336eb07b9c14a7395a978619c12044e59d98e3fe6ec5d3cc0cad53d8b2c88fd8a3652510437d80bd747bf335b0bf33d83aabfc55f8a785f33744c7d333d22a1f SHA512 5ecf1883c8b19953445d5da4da4e971cae8caead8356e6b6a1251143dc8ca3cf6547f4785a703e2e80f0652032a9bd08bda1a8a8ef98311c09f38f349c77797c +DIST tpm2-pytss-1.2.0.tar.gz 178555 BLAKE2B 782f7d8194d2a9395213f39e5a17414ae2ab49f961b01c496fd54803a43f6846434a1d69a3993d16b6b51c2578f6f5e1a0d883be791cf6fb29ae23012b2090cf SHA512 688223d05a2ed5f3a5aeec47c77a02c10d40d4f23a97622e76acbf8f86b14ac2a92482869c5e04de395edb96b1e1b142c5ff53c7dbc97673ead531e4d6138184 +EBUILD tpm2-pytss-1.2.0.ebuild 942 BLAKE2B 4334a2f783ad0aa2c727466a96b6bc38214422558e9398bc09de139a6dfb82e3c85901a6ecefabf763617d5419ded4562cd06b12d994d4afffd26e534b4fcc36 SHA512 06a3187a9b42e6d6909cce0999175389b150d5ea794127a00c18f261509f80549321057854cb20b2d9cb6ee6c9cfebb45b46ea919f596e2ecb21e7782f18cb4e MISC metadata.xml 511 BLAKE2B b59b0da52736f7042c9357f3422cd0d3181d0dbea315b4ebdedf038c6e7c367a402a9ef4deac20940c6126977d756f6557fa5a8b2f8f4bc95b40a7510e8ea19c SHA512 6d7659472f076746cd4edae6a5413f4e34b4996ae0ac3af345ed720aabfeb991895b8dbc3f24160017bbf2633c77d8721507c14604c4cce9a8d407bf699ce635 diff --git a/dev-python/tpm2-pytss/files/tpm2-pytss-1.1.0-src-move-package-under-src-directory.patch b/dev-python/tpm2-pytss/files/tpm2-pytss-1.1.0-src-move-package-under-src-directory.patch deleted file mode 100644 index 6e6342cac5b6..000000000000 --- a/dev-python/tpm2-pytss/files/tpm2-pytss-1.1.0-src-move-package-under-src-directory.patch +++ /dev/null @@ -1,239 +0,0 @@ -From a03b66dd73a2ff58ebf847864102585aa3d11af7 Mon Sep 17 00:00:00 2001 -From: William Roberts -Date: Wed, 11 May 2022 17:07:53 -0500 -Subject: [PATCH] src: move package under src directory - -Issue #341 reports that building a wheel and running the tests fails. I -was able to reproduce this behavior with the following commands: - -python3 -Bm build -w --no-isolation -python3 -m installer --destdir=installation dist/*.whl -export PYTHONPATH="/home/wcrobert/tmp/installation/usr/lib/python3.8/site-packages" -pytest test/test_types.py - -Note: - - Current Working Directory is the repo clone, so tpm2-pytss - - The export command may need to be updated for your specific version - of python. - -It fails with: -ImportError while importing test module '/home/wcrobert/workspace/tpm2-pytss/test/test_types.py'. - -E ModuleNotFoundError: No module named 'tpm2_pytss._libtpm2_pytss' - -However, this issue is a red herring. This really has to do with the -fact that the relative import in the test code tries to resolve to -non-built package in that directory rather then the built one on -PYTHONPATH. - -Proposed solutions to use full package names also don't work, becuase it -has to resolve to the built package and it will still attempt to resolve -the non-built package. The least finicky solution to fix this, was to -match what bcrypt was doing and move it under a src directory so it -forces the resolution to not occur on that directory and inplace (pip -install -e .) installations still work as well. - -Fixes: #341 - -Signed-off-by: William Roberts ---- - .gitignore | 4 ++-- - MANIFEST.in | 8 ++++---- - scripts/prepare_headers.py | 2 +- - setup.cfg | 6 ++++-- - setup.py | 8 +++++--- - {tpm2_pytss => src/tpm2_pytss}/ESAPI.py | 0 - {tpm2_pytss => src/tpm2_pytss}/FAPI.py | 0 - {tpm2_pytss => src/tpm2_pytss}/TCTI.py | 0 - {tpm2_pytss => src/tpm2_pytss}/TCTILdr.py | 0 - {tpm2_pytss => src/tpm2_pytss}/TSS2_Exception.py | 0 - {tpm2_pytss => src/tpm2_pytss}/__init__.py | 0 - {tpm2_pytss => src/tpm2_pytss}/callbacks.py | 0 - {tpm2_pytss => src/tpm2_pytss}/constants.py | 0 - {tpm2_pytss => src/tpm2_pytss}/encoding.py | 0 - {tpm2_pytss => src/tpm2_pytss}/fapi_info.py | 0 - src/tpm2_pytss/internal/__init__.py | 0 - {tpm2_pytss => src/tpm2_pytss}/internal/constants.py | 0 - {tpm2_pytss => src/tpm2_pytss}/internal/crypto.py | 0 - {tpm2_pytss => src/tpm2_pytss}/internal/templates.py | 0 - {tpm2_pytss => src/tpm2_pytss}/internal/utils.py | 0 - {tpm2_pytss => src/tpm2_pytss}/tsskey.py | 0 - {tpm2_pytss => src/tpm2_pytss}/types.py | 0 - {tpm2_pytss => src/tpm2_pytss}/utils.py | 0 - 23 files changed, 16 insertions(+), 12 deletions(-) - rename {tpm2_pytss => src/tpm2_pytss}/ESAPI.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/FAPI.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/TCTI.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/TCTILdr.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/TSS2_Exception.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/__init__.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/callbacks.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/constants.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/encoding.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/fapi_info.py (100%) - create mode 100644 src/tpm2_pytss/internal/__init__.py - rename {tpm2_pytss => src/tpm2_pytss}/internal/constants.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/internal/crypto.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/internal/templates.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/internal/utils.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/tsskey.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/types.py (100%) - rename {tpm2_pytss => src/tpm2_pytss}/utils.py (100%) - -diff --git a/.gitignore b/.gitignore -index 07e277e..396cfdb 100644 ---- a/.gitignore -+++ b/.gitignore -@@ -40,5 +40,5 @@ public/ - *.rej - htmlcov - /.pytest_cache/ --tpm2_pytss/internal/type_mapping.py --tpm2_pytss/internal/versions.py -+src/tpm2_pytss/internal/type_mapping.py -+src/tpm2_pytss/internal/versions.py -diff --git a/MANIFEST.in b/MANIFEST.in -index 6bc43ab..7bbc96a 100644 ---- a/MANIFEST.in -+++ b/MANIFEST.in -@@ -1,8 +1,8 @@ - include README.md - include LICENSE --include tpm2_pytss/version --include tpm2_pytss/config.json --recursive-include tpm2_pytss/swig * -+include src/tpm2_pytss/version -+include src/tpm2_pytss/config.json -+recursive-include src/tpm2_pytss/swig * - recursive-include tests * - recursive-include examples * --exclude tpm2_pytss/internal/type_mapping.py -+exclude src/tpm2_pytss/internal/type_mapping.py -diff --git a/scripts/prepare_headers.py b/scripts/prepare_headers.py -index 0864a3d..7eb0a57 100644 ---- a/scripts/prepare_headers.py -+++ b/scripts/prepare_headers.py -@@ -11,7 +11,7 @@ import textwrap - - # import tpm2_pytss.constants - constants_spec = importlib.util.spec_from_file_location( -- "tpm2_pytss.internal.constants", "tpm2_pytss/internal/constants.py" -+ "tpm2_pytss.internal.constants", "src/tpm2_pytss/internal/constants.py" - ) - constants = importlib.util.module_from_spec(constants_spec) - constants_spec.loader.exec_module(constants) -diff --git a/setup.cfg b/setup.cfg -index 89a3c7a..5426a07 100644 ---- a/setup.cfg -+++ b/setup.cfg -@@ -18,9 +18,11 @@ classifiers = - Programming Language :: Python :: 3.10 - - [options] --packages = -+package_dir= -+ =src -+packages= - tpm2_pytss -- tpm2_pytss/internal -+ tpm2_pytss.internal - setup_requires = - setuptools_scm[toml]>=3.4.3 - cffi>=1.0.0 -diff --git a/setup.py b/setup.py -index f10fe73..b7f1c96 100644 ---- a/setup.py -+++ b/setup.py -@@ -200,13 +200,15 @@ class type_generator(build_ext): - - p = os.path.join(self.build_lib, "tpm2_pytss/internal/type_mapping.py") - sp = os.path.join( -- os.path.dirname(__file__), "tpm2_pytss/internal/type_mapping.py" -+ os.path.dirname(__file__), "src/tpm2_pytss/internal/type_mapping.py" - ) - - vp = os.path.join(self.build_lib, "tpm2_pytss/internal/versions.py") -- svp = os.path.join(os.path.dirname(__file__), "tpm2_pytss/internal/versions.py") -+ svp = os.path.join( -+ os.path.dirname(__file__), "src/tpm2_pytss/internal/versions.py" -+ ) - -- print(f"generated _type_map with {len(type_map)} mappings") -+ print(f"generated _type_map with {len(type_map)} mappings in {p} and {sp}") - print(f"generated _element_type_map with {len(element_type_map)} mappings") - print(f"generated _versions with {len(versions)} versions") - -diff --git a/tpm2_pytss/ESAPI.py b/src/tpm2_pytss/ESAPI.py -similarity index 100% -rename from tpm2_pytss/ESAPI.py -rename to src/tpm2_pytss/ESAPI.py -diff --git a/tpm2_pytss/FAPI.py b/src/tpm2_pytss/FAPI.py -similarity index 100% -rename from tpm2_pytss/FAPI.py -rename to src/tpm2_pytss/FAPI.py -diff --git a/tpm2_pytss/TCTI.py b/src/tpm2_pytss/TCTI.py -similarity index 100% -rename from tpm2_pytss/TCTI.py -rename to src/tpm2_pytss/TCTI.py -diff --git a/tpm2_pytss/TCTILdr.py b/src/tpm2_pytss/TCTILdr.py -similarity index 100% -rename from tpm2_pytss/TCTILdr.py -rename to src/tpm2_pytss/TCTILdr.py -diff --git a/tpm2_pytss/TSS2_Exception.py b/src/tpm2_pytss/TSS2_Exception.py -similarity index 100% -rename from tpm2_pytss/TSS2_Exception.py -rename to src/tpm2_pytss/TSS2_Exception.py -diff --git a/tpm2_pytss/__init__.py b/src/tpm2_pytss/__init__.py -similarity index 100% -rename from tpm2_pytss/__init__.py -rename to src/tpm2_pytss/__init__.py -diff --git a/tpm2_pytss/callbacks.py b/src/tpm2_pytss/callbacks.py -similarity index 100% -rename from tpm2_pytss/callbacks.py -rename to src/tpm2_pytss/callbacks.py -diff --git a/tpm2_pytss/constants.py b/src/tpm2_pytss/constants.py -similarity index 100% -rename from tpm2_pytss/constants.py -rename to src/tpm2_pytss/constants.py -diff --git a/tpm2_pytss/encoding.py b/src/tpm2_pytss/encoding.py -similarity index 100% -rename from tpm2_pytss/encoding.py -rename to src/tpm2_pytss/encoding.py -diff --git a/tpm2_pytss/fapi_info.py b/src/tpm2_pytss/fapi_info.py -similarity index 100% -rename from tpm2_pytss/fapi_info.py -rename to src/tpm2_pytss/fapi_info.py -diff --git a/src/tpm2_pytss/internal/__init__.py b/src/tpm2_pytss/internal/__init__.py -new file mode 100644 -index 0000000..e69de29 -diff --git a/tpm2_pytss/internal/constants.py b/src/tpm2_pytss/internal/constants.py -similarity index 100% -rename from tpm2_pytss/internal/constants.py -rename to src/tpm2_pytss/internal/constants.py -diff --git a/tpm2_pytss/internal/crypto.py b/src/tpm2_pytss/internal/crypto.py -similarity index 100% -rename from tpm2_pytss/internal/crypto.py -rename to src/tpm2_pytss/internal/crypto.py -diff --git a/tpm2_pytss/internal/templates.py b/src/tpm2_pytss/internal/templates.py -similarity index 100% -rename from tpm2_pytss/internal/templates.py -rename to src/tpm2_pytss/internal/templates.py -diff --git a/tpm2_pytss/internal/utils.py b/src/tpm2_pytss/internal/utils.py -similarity index 100% -rename from tpm2_pytss/internal/utils.py -rename to src/tpm2_pytss/internal/utils.py -diff --git a/tpm2_pytss/tsskey.py b/src/tpm2_pytss/tsskey.py -similarity index 100% -rename from tpm2_pytss/tsskey.py -rename to src/tpm2_pytss/tsskey.py -diff --git a/tpm2_pytss/types.py b/src/tpm2_pytss/types.py -similarity index 100% -rename from tpm2_pytss/types.py -rename to src/tpm2_pytss/types.py -diff --git a/tpm2_pytss/utils.py b/src/tpm2_pytss/utils.py -similarity index 100% -rename from tpm2_pytss/utils.py -rename to src/tpm2_pytss/utils.py --- -2.35.1 - diff --git a/dev-python/tpm2-pytss/tpm2-pytss-1.1.0.ebuild b/dev-python/tpm2-pytss/tpm2-pytss-1.1.0.ebuild deleted file mode 100644 index d7f07c588526..000000000000 --- a/dev-python/tpm2-pytss/tpm2-pytss-1.1.0.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) -inherit distutils-r1 - -DESCRIPTION="Python bindings for TSS" -HOMEPAGE=" - https://pypi.org/project/tpm2-pytss - https://github.com/tpm2-software/tpm2-pytss -" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~amd64" - -IUSE="+fapi test" - -RDEPEND="app-crypt/tpm2-tss:=[fapi=] - fapi? ( >=app-crypt/tpm2-tss-3.0.3:= ) - dev-python/cffi[${PYTHON_USEDEP}] - dev-python/asn1crypto[${PYTHON_USEDEP}] - dev-python/cryptography[${PYTHON_USEDEP}] - dev-python/pycparser[${PYTHON_USEDEP}]" - -DEPEND="${RDEPEND} - test? ( app-crypt/swtpm )" - -BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}] - dev-python/pkgconfig[${PYTHON_USEDEP}]" - -PATCHES=( - "${FILESDIR}/${PN}-1.1.0-src-move-package-under-src-directory.patch" - ) - -export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} - -distutils_enable_tests pytest diff --git a/dev-python/tpm2-pytss/tpm2-pytss-1.2.0.ebuild b/dev-python/tpm2-pytss/tpm2-pytss-1.2.0.ebuild new file mode 100644 index 000000000000..b805c0e64531 --- /dev/null +++ b/dev-python/tpm2-pytss/tpm2-pytss-1.2.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="Python bindings for TSS" +HOMEPAGE=" + https://pypi.org/project/tpm2-pytss + https://github.com/tpm2-software/tpm2-pytss +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="+fapi test" + +RDEPEND="app-crypt/tpm2-tss:=[fapi=] + fapi? ( >=app-crypt/tpm2-tss-3.0.3:= ) + dev-python/cffi[${PYTHON_USEDEP}] + dev-python/asn1crypto[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/pycparser[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}]" + +DEPEND="${RDEPEND} + test? ( app-crypt/swtpm )" + +BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}] + dev-python/pkgconfig[${PYTHON_USEDEP}]" + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + +distutils_enable_tests pytest -- cgit v1.2.3