[-- Attachment #1: Type: text/plain, Size: 1780 bytes --] There is a new pull request by heliocat against master on the void-packages repository https://github.com/heliocat/void-packages python3-pytest-mock https://github.com/void-linux/void-packages/pull/28903 python3-pytest-mock: update to 3.5.1 Breaking changes: drop deprecated mock alias to mocker drop python 2.7 and 3.4 support <!-- Mark items with [x] where applicable --> #### General - [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements) #### Have the results of the proposed changes been tested? - [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me - [x] I generally don't use the affected packages but briefly tested this PR <!-- If GitHub CI cannot be used to validate the build result (for example, if the build is likely to take several hours), make sure to [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration). When skipping CI, uncomment and fill out the following section. Note: for builds that are likely to complete in less than 2 hours, it is not acceptable to skip CI. --> <!-- #### Does it build and run successfully? (Please choose at least one native build and, if supported, at least one cross build. More are better.) - [ ] I built this PR locally for my native architecture, (ARCH-LIBC) - [ ] I built this PR locally for these architectures (if supported. mark crossbuilds): - [ ] aarch64-musl - [ ] armv7l - [ ] armv6l-musl --> Updating some low-hanging fruit, I noted any breaking changes as documented. A patch file from https://github.com/void-linux/void-packages/pull/28903.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-python3-pytest-mock-28903.patch --] [-- Type: text/x-diff, Size: 1240 bytes --] From 3b3ea92b3aea2b5eddf72e37c3e9b3398e65e56d Mon Sep 17 00:00:00 2001 From: Colin Booth <colin@heliocat.net> Date: Fri, 19 Feb 2021 00:56:14 -0800 Subject: [PATCH] python3-pytest-mock: update to 3.5.1 Breaking changes: drop deprecated mock alias to mocker drop python 2.7 and 3.4 support --- srcpkgs/python3-pytest-mock/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python3-pytest-mock/template b/srcpkgs/python3-pytest-mock/template index c1dc8183009..1d7b4ceedfe 100644 --- a/srcpkgs/python3-pytest-mock/template +++ b/srcpkgs/python3-pytest-mock/template @@ -1,7 +1,7 @@ # Template file for 'python3-pytest-mock' pkgname=python3-pytest-mock -version=1.10.4 -revision=4 +version=3.5.1 +revision=1 wrksrc="${pkgname#*-}-${version}" build_style=python3-module hostmakedepends="python3-setuptools" @@ -12,7 +12,7 @@ maintainer="Orphaned <orphan@voidlinux.org>" license="MIT" homepage="https://github.com/pytest-dev/pytest-mock/" distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz" -checksum=5bf5771b1db93beac965a7347dc81c675ec4090cb841e49d9d34637a25c30568 +checksum=a1e2aba6af9560d313c642dae7e00a2a12b022b80301d9d7fc8ec6858e1dd9fc pre_build() { sed -i setup.py \
[-- Attachment #1: Type: text/plain, Size: 1785 bytes --] There is an updated pull request by heliocat against master on the void-packages repository https://github.com/heliocat/void-packages python3-pytest-mock https://github.com/void-linux/void-packages/pull/28903 python3-pytest-mock: update to 3.5.1 Breaking changes: drop deprecated mock alias to mocker drop python 2.7 and 3.4 support <!-- Mark items with [x] where applicable --> #### General - [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements) #### Have the results of the proposed changes been tested? - [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me - [x] I generally don't use the affected packages but briefly tested this PR <!-- If GitHub CI cannot be used to validate the build result (for example, if the build is likely to take several hours), make sure to [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration). When skipping CI, uncomment and fill out the following section. Note: for builds that are likely to complete in less than 2 hours, it is not acceptable to skip CI. --> <!-- #### Does it build and run successfully? (Please choose at least one native build and, if supported, at least one cross build. More are better.) - [ ] I built this PR locally for my native architecture, (ARCH-LIBC) - [ ] I built this PR locally for these architectures (if supported. mark crossbuilds): - [ ] aarch64-musl - [ ] armv7l - [ ] armv6l-musl --> Updating some low-hanging fruit, I noted any breaking changes as documented. A patch file from https://github.com/void-linux/void-packages/pull/28903.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-python3-pytest-mock-28903.patch --] [-- Type: text/x-diff, Size: 1580 bytes --] From 3f661d99c1dacf8a0eb99ffe9c6389b7fda1ce81 Mon Sep 17 00:00:00 2001 From: Colin Booth <colin@heliocat.net> Date: Fri, 19 Feb 2021 00:56:14 -0800 Subject: [PATCH] python3-pytest-mock: update to 3.5.1 Breaking changes: drop deprecated mock alias to mocker drop python 2.7 and 3.4 support Note that pytest-mock needs pytest-mock installed to be able to test itself so I'm stubbing out do_check. If someone wants to take a stab at getting this cleaned up be my guest. --- srcpkgs/python3-pytest-mock/template | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python3-pytest-mock/template b/srcpkgs/python3-pytest-mock/template index c1dc8183009..7a930f8841b 100644 --- a/srcpkgs/python3-pytest-mock/template +++ b/srcpkgs/python3-pytest-mock/template @@ -1,7 +1,7 @@ # Template file for 'python3-pytest-mock' pkgname=python3-pytest-mock -version=1.10.4 -revision=4 +version=3.5.1 +revision=1 wrksrc="${pkgname#*-}-${version}" build_style=python3-module hostmakedepends="python3-setuptools" @@ -12,7 +12,7 @@ maintainer="Orphaned <orphan@voidlinux.org>" license="MIT" homepage="https://github.com/pytest-dev/pytest-mock/" distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz" -checksum=5bf5771b1db93beac965a7347dc81c675ec4090cb841e49d9d34637a25c30568 +checksum=a1e2aba6af9560d313c642dae7e00a2a12b022b80301d9d7fc8ec6858e1dd9fc pre_build() { sed -i setup.py \ @@ -20,6 +20,11 @@ pre_build() { -e "s|use_scm_version=.*|version='${version}',|" } +do_check() { + : +} + + post_install() { vlicense LICENSE }
[-- Attachment #1: Type: text/plain, Size: 170 bytes --] New review comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/28903#discussion_r579700996 Comment: Please move to `vsed`
[-- Attachment #1: Type: text/plain, Size: 188 bytes --] New review comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/28903#discussion_r579701020 Comment: Use `make_check=no` with a comment why ;)
[-- Attachment #1: Type: text/plain, Size: 247 bytes --] New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/28903#issuecomment-782741723 Comment: I'm running tests for package which use this one. So far `python3-natsort`, `python3-aiohttp2` have failed
[-- Attachment #1: Type: text/plain, Size: 261 bytes --] New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/28903#issuecomment-782741723 Comment: I'm running tests for package which use this one. So far `python3-natsort`, `python3-aiohttp2` have failed Also `tox`
[-- Attachment #1: Type: text/plain, Size: 217 bytes --] New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/28903#issuecomment-782744681 Comment: All three also fail with old -mock, so I think we can stick with the update.
[-- Attachment #1: Type: text/plain, Size: 349 bytes --] New comment by heliocat on void-packages repository https://github.com/void-linux/void-packages/pull/28903#issuecomment-782757937 Comment: I just ran through all of the dependent packages. natsort and aiohttp2 both fail their tests at the same places and at the same rates. Tox passed both old and new tests with the skip section in the template.
[-- Attachment #1: Type: text/plain, Size: 1785 bytes --] There is an updated pull request by heliocat against master on the void-packages repository https://github.com/heliocat/void-packages python3-pytest-mock https://github.com/void-linux/void-packages/pull/28903 python3-pytest-mock: update to 3.5.1 Breaking changes: drop deprecated mock alias to mocker drop python 2.7 and 3.4 support <!-- Mark items with [x] where applicable --> #### General - [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements) #### Have the results of the proposed changes been tested? - [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me - [x] I generally don't use the affected packages but briefly tested this PR <!-- If GitHub CI cannot be used to validate the build result (for example, if the build is likely to take several hours), make sure to [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration). When skipping CI, uncomment and fill out the following section. Note: for builds that are likely to complete in less than 2 hours, it is not acceptable to skip CI. --> <!-- #### Does it build and run successfully? (Please choose at least one native build and, if supported, at least one cross build. More are better.) - [ ] I built this PR locally for my native architecture, (ARCH-LIBC) - [ ] I built this PR locally for these architectures (if supported. mark crossbuilds): - [ ] aarch64-musl - [ ] armv7l - [ ] armv6l-musl --> Updating some low-hanging fruit, I noted any breaking changes as documented. A patch file from https://github.com/void-linux/void-packages/pull/28903.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-python3-pytest-mock-28903.patch --] [-- Type: text/x-diff, Size: 1464 bytes --] From a3a321cc6d9d245ccc868c968249ff7a4c10c8f5 Mon Sep 17 00:00:00 2001 From: Colin Booth <colin@heliocat.net> Date: Fri, 19 Feb 2021 00:56:14 -0800 Subject: [PATCH] python3-pytest-mock: update to 3.5.1 Breaking changes: drop deprecated mock alias to mocker drop python 2.7 and 3.4 support --- srcpkgs/python3-pytest-mock/template | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/srcpkgs/python3-pytest-mock/template b/srcpkgs/python3-pytest-mock/template index c1dc8183009..43ce2c84270 100644 --- a/srcpkgs/python3-pytest-mock/template +++ b/srcpkgs/python3-pytest-mock/template @@ -1,7 +1,7 @@ # Template file for 'python3-pytest-mock' pkgname=python3-pytest-mock -version=1.10.4 -revision=4 +version=3.5.1 +revision=1 wrksrc="${pkgname#*-}-${version}" build_style=python3-module hostmakedepends="python3-setuptools" @@ -12,10 +12,14 @@ maintainer="Orphaned <orphan@voidlinux.org>" license="MIT" homepage="https://github.com/pytest-dev/pytest-mock/" distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz" -checksum=5bf5771b1db93beac965a7347dc81c675ec4090cb841e49d9d34637a25c30568 +checksum=a1e2aba6af9560d313c642dae7e00a2a12b022b80301d9d7fc8ec6858e1dd9fc + +# pytest-mock requires pytest-mock to be installed so it'll always fail during +# packaging +make_check=no pre_build() { - sed -i setup.py \ + vsed -i setup.py \ -e '/setup_requires=/d' \ -e "s|use_scm_version=.*|version='${version}',|" }
[-- Attachment #1: Type: text/plain, Size: 152 bytes --] New review comment by heliocat on void-packages repository https://github.com/void-linux/void-packages/pull/28903#discussion_r580474190 Comment: done
[-- Attachment #1: Type: text/plain, Size: 152 bytes --] New review comment by heliocat on void-packages repository https://github.com/void-linux/void-packages/pull/28903#discussion_r580474418 Comment: done
[-- Attachment #1: Type: text/plain, Size: 1615 bytes --] There's a merged pull request on the void-packages repository python3-pytest-mock: update to 3.5.1 https://github.com/void-linux/void-packages/pull/28903 Description: Breaking changes: drop deprecated mock alias to mocker drop python 2.7 and 3.4 support <!-- Mark items with [x] where applicable --> #### General - [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements) #### Have the results of the proposed changes been tested? - [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me - [x] I generally don't use the affected packages but briefly tested this PR <!-- If GitHub CI cannot be used to validate the build result (for example, if the build is likely to take several hours), make sure to [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration). When skipping CI, uncomment and fill out the following section. Note: for builds that are likely to complete in less than 2 hours, it is not acceptable to skip CI. --> <!-- #### Does it build and run successfully? (Please choose at least one native build and, if supported, at least one cross build. More are better.) - [ ] I built this PR locally for my native architecture, (ARCH-LIBC) - [ ] I built this PR locally for these architectures (if supported. mark crossbuilds): - [ ] aarch64-musl - [ ] armv7l - [ ] armv6l-musl --> Updating some low-hanging fruit, I noted any breaking changes as documented.