Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] python3-mypy: update to 0.812.
@ 2021-04-10 14:37 paper42
  2021-04-10 15:10 ` paper42
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: paper42 @ 2021-04-10 14:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1624 bytes --]

There is a new pull request by paper42 against master on the void-packages repository

https://github.com/paper42/void-packages 0001-python3-mypy-update-to-0.812.patch
https://github.com/void-linux/void-packages/pull/30122

python3-mypy: update to 0.812.
<!-- 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?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] 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
-->


A patch file from https://github.com/void-linux/void-packages/pull/30122.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-0001-python3-mypy-update-to-0.812.patch-30122.patch --]
[-- Type: text/x-diff, Size: 2721 bytes --]

From fe41ae4bad6953f1133d8cb8dd78a1ae5f85f4a5 Mon Sep 17 00:00:00 2001
From: Paper <paper@tilde.institute>
Date: Sat, 10 Apr 2021 16:36:12 +0200
Subject: [PATCH] python3-mypy: update to 0.812.

---
 .../python3-mypy/patches/0001-fix-tests.patch | 24 +++++++++++++++++++
 srcpkgs/python3-mypy/template                 | 11 +++++----
 2 files changed, 31 insertions(+), 4 deletions(-)
 create mode 100644 srcpkgs/python3-mypy/patches/0001-fix-tests.patch

diff --git a/srcpkgs/python3-mypy/patches/0001-fix-tests.patch b/srcpkgs/python3-mypy/patches/0001-fix-tests.patch
new file mode 100644
index 000000000000..4b0c17227a86
--- /dev/null
+++ b/srcpkgs/python3-mypy/patches/0001-fix-tests.patch
@@ -0,0 +1,24 @@
+diff --git a/mypyc/build.py b/mypyc/build.py
+index 088e481..e16b3d6 100644
+--- a/mypyc/build.py
++++ b/mypyc/build.py
+@@ -506,7 +506,7 @@ def mypycify(
+     cflags = []  # type: List[str]
+     if compiler.compiler_type == 'unix':
+         cflags += [
+-            '-O{}'.format(opt_level), '-Werror', '-Wno-unused-function', '-Wno-unused-label',
++            '-O{}'.format(opt_level), '-Wno-unused-function', '-Wno-unused-label',
+             '-Wno-unreachable-code', '-Wno-unused-variable',
+             '-Wno-unused-command-line-argument', '-Wno-unknown-warning-option',
+         ]
+diff --git a/pytest.ini b/pytest.ini
+index ed76809..909824a 100644
+--- a/pytest.ini
++++ b/pytest.ini
+@@ -17,6 +17,3 @@ python_files = test*.py
+ # Note that unittest requires that no "Test*" classes exist.
+ python_classes =
+ python_functions =
+-
+-# always run in parallel (requires pytest-xdist, see test-requirements.txt)
+-addopts = -nauto
diff --git a/srcpkgs/python3-mypy/template b/srcpkgs/python3-mypy/template
index 5b4117837b08..433801573b8c 100644
--- a/srcpkgs/python3-mypy/template
+++ b/srcpkgs/python3-mypy/template
@@ -1,17 +1,20 @@
 # Template file for 'python3-mypy'
 pkgname=python3-mypy
-version=0.790
-revision=2
+version=0.812
+revision=1
 wrksrc="mypy-${version}"
 build_style=python3-module
 hostmakedepends="python3-setuptools python3-Sphinx"
 depends="python3-mypy_extensions python3-typed-ast python3-typing_extensions"
+checkdepends="$depends python3-pytest python3-pip python3-lxml python3-devel
+ python3-virtualenv"
 short_desc="Optional static typing for Python3"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Paper <paper@tilde.institute>"
 license="MIT"
 homepage="https://github.com/python/mypy"
 distfiles="${PYPI_SITE}/m/mypy/mypy-${version}.tar.gz"
-checksum=2b21ba45ad9ef2e2eb88ce4aeadd0112d0f5026418324176fd494a6824b74975
+checksum=cd07039aa5df222037005b08fbbfd69b3ab0b0bd7a07d7906de75ae52c4e3119
+patch_args="-Np1"
 
 post_install() {
 	make -C docs man

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: python3-mypy: update to 0.812.
  2021-04-10 14:37 [PR PATCH] python3-mypy: update to 0.812 paper42
@ 2021-04-10 15:10 ` paper42
  2021-04-11  2:54 ` [PR REVIEW] " ericonr
  2021-05-31 18:41 ` [PR PATCH] [Merged]: " ericonr
  2 siblings, 0 replies; 4+ messages in thread
From: paper42 @ 2021-04-10 15:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 167 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/30122#issuecomment-817151219

Comment:
Tests work on my computer.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR REVIEW] python3-mypy: update to 0.812.
  2021-04-10 14:37 [PR PATCH] python3-mypy: update to 0.812 paper42
  2021-04-10 15:10 ` paper42
@ 2021-04-11  2:54 ` ericonr
  2021-05-31 18:41 ` [PR PATCH] [Merged]: " ericonr
  2 siblings, 0 replies; 4+ messages in thread
From: ericonr @ 2021-04-11  2:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 400 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/30122#discussion_r611121398

Comment:
Presence of pip and -devel make me think it's installing a bunch of packages from pypi. I wonder how we could make sure it isn't, assuming they are actually necessary for tests...

If the tests do rely on `pip`, I'm not sure we should be running them.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Merged]: python3-mypy: update to 0.812.
  2021-04-10 14:37 [PR PATCH] python3-mypy: update to 0.812 paper42
  2021-04-10 15:10 ` paper42
  2021-04-11  2:54 ` [PR REVIEW] " ericonr
@ 2021-05-31 18:41 ` ericonr
  2 siblings, 0 replies; 4+ messages in thread
From: ericonr @ 2021-05-31 18:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1441 bytes --]

There's a merged pull request on the void-packages repository

python3-mypy: update to 0.812.
https://github.com/void-linux/void-packages/pull/30122

Description:
<!-- 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?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] 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
-->


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-31 18:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-10 14:37 [PR PATCH] python3-mypy: update to 0.812 paper42
2021-04-10 15:10 ` paper42
2021-04-11  2:54 ` [PR REVIEW] " ericonr
2021-05-31 18:41 ` [PR PATCH] [Merged]: " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).