[issue36329] use the right python "make -C Doc/ serve"

2022-04-06 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

I've made PRs for this:

CPython Docs: https://github.com/python/cpython/pull/32354
Devguide: https://github.com/python/devguide/pull/826

Also set this bpo for Python 3.11.

--
versions: +Python 3.11 -Python 3.8

___
Python tracker 
<https://bugs.python.org/issue36329>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36329] use the right python "make -C Doc/ serve"

2022-04-06 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
nosy: +hugovk
nosy_count: 4.0 -> 5.0
pull_requests: +30406
pull_request: https://github.com/python/cpython/pull/32354

___
Python tracker 
<https://bugs.python.org/issue36329>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36795] "make venv" failed in Docs

2022-04-06 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

I cannot reproduce this (macOS, Python 3.10, pip 22.0.4).

As xtreak said, it's probably caused by using a very old version of pip (9.0.1 
from Nov 6, 2016), so let's close it.

Please let us know if it happens again, and whether updating pip helps.

--
nosy: +hugovk
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue36795>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47138] Pin Jinja2 to fix docs build

2022-03-28 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

I cherry picked Maciej's 3.8 commit into 3.9 and 3.10 PRs:

3.9: https://github.com/python/cpython/pull/32153
3.10: https://github.com/python/cpython/pull/32154

And marking this issue as not relevant to 3.11; instead I bumped the Sphinx 
version in bpo-47126 / gh-32124 as it's directly relevant there.

Thanks!

--
title: Bump Sphinx or pin Jinja2 to fix docs build -> Pin Jinja2 to fix docs 
build
versions:  -Python 3.11

___
Python tracker 
<https://bugs.python.org/issue47138>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47138] Bump Sphinx or pin Jinja2 to fix docs build

2022-03-28 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
pull_requests: +30234
pull_request: https://github.com/python/cpython/pull/32153

___
Python tracker 
<https://bugs.python.org/issue47138>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47138] Bump Sphinx or pin Jinja2 to fix docs build

2022-03-28 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
pull_requests: +30235
pull_request: https://github.com/python/cpython/pull/32154

___
Python tracker 
<https://bugs.python.org/issue47138>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47138] Bump Sphinx or pin Jinja2 to fix docs build

2022-03-28 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

re: https://bugs.python.org/issue45618#msg416017

Maciej Olko, please could you update these PRs to keep the Sphinx version the 
same and only pin Jinja2 to match?

3.7: https://github.com/python/cpython/pull/32109
3.8: https://github.com/python/cpython/pull/32111

I guess update them to use this bpo too. Thanks!

--
title: Bump Sphinx to fix docs build -> Bump Sphinx or pin Jinja2 to fix docs 
build

___
Python tracker 
<https://bugs.python.org/issue47138>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45618] Documentation builds fail with Sphinx 3.2.1

2022-03-28 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

> > This really should be handled in a new issue since the original fixes for 
> > all affected releases are already in the field.

> Sorry, I got suggested too much with expected fix which is common for both of 
> those issues. Shall I create a new issue?

I created https://bugs.python.org/issue47138, let's continue there.

--
nosy: +hugovk

___
Python tracker 
<https://bugs.python.org/issue45618>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47138] Bump Sphinx to fix docs build

2022-03-28 Thread Hugo van Kemenade


New submission from Hugo van Kemenade :

The docs build on GitHub Actions is passing on `main` but has started failing 
for the `3.7` - `3.10` branches:

```
Missing the required blurb or sphinx-build tools.
Please run 'make venv' to install local copies.

make[1]: *** [Makefile:50: build] Error 1
```

https://github.com/python/cpython/actions/workflows/doc.yml
https://github.com/python/cpython/runs/5714593700?check_suite_focus=true

This is because the `PATH=./venv/bin:$PATH sphinx-build --version` check is 
failing:

```
/home/runner/work/cpython/cpython/Doc/venv/lib/python3.10/site-packages/sphinx/util/docutils.py:45:
 DeprecationWarning: distutils Version classes are deprecated. Use 
packaging.version instead.
  __version_info__ = tuple(LooseVersion(docutils.__version__).version)
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Doc/./venv/bin/sphinx-build", line 5, 
in 
from sphinx.cmd.build import main
  File 
"/home/runner/work/cpython/cpython/Doc/venv/lib/python3.10/site-packages/sphinx/cmd/build.py",
 line 25, in 
from sphinx.application import Sphinx
  File 
"/home/runner/work/cpython/cpython/Doc/venv/lib/python3.10/site-packages/sphinx/application.py",
 line 42, in 
from sphinx.registry import SphinxComponentRegistry
  File 
"/home/runner/work/cpython/cpython/Doc/venv/lib/python3.10/site-packages/sphinx/registry.py",
 line 24, in 
from sphinx.builders import Builder
  File 
"/home/runner/work/cpython/cpython/Doc/venv/lib/python3.10/site-packages/sphinx/builders/__init__.py",
 line 26, in 
from sphinx.util import import_object, logging, rst, progress_message, 
status_iterator
  File 
"/home/runner/work/cpython/cpython/Doc/venv/lib/python3.10/site-packages/sphinx/util/rst.py",
 line 22, in 
from jinja2 import environmentfilter
ImportError: cannot import name 'environmentfilter' from 'jinja2' 
(/home/runner/work/cpython/cpython/Doc/venv/lib/python3.10/site-packages/jinja2/__init__.py)
```

This is because `3.10` and `3.9` are still using old versions of Sphinx (3.2.1 
and 2.4.4 respectively) which is incompatible with the newest Jinja2:

https://github.com/pallets/jinja/issues/1630

`main` is using a newer Sphinx (4.2.0), so it passes.

Bumping to Sphinx 4.5.0 will fix both `3.9` and `3.10`. `3.7` and `3.8` are 
affected too. We can bump `main` to use `4.5.0` as well.

--
assignee: docs@python
components: Documentation
messages: 416149
nosy: docs@python, hugovk
priority: normal
severity: normal
status: open
title: Bump Sphinx to fix docs build
versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue47138>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47126] Update to canonical PEP URLs

2022-03-26 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

Here's a devguide PR: https://github.com/python/devguide/pull/822

--

___
Python tracker 
<https://bugs.python.org/issue47126>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47126] Update to canonical PEP URLs

2022-03-26 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
assignee: hugovk -> 

___
Python tracker 
<https://bugs.python.org/issue47126>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47126] Update to canonical PEP URLs

2022-03-26 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
pull_requests: +30203
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/32124

___
Python tracker 
<https://bugs.python.org/issue47126>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47126] Update to canonical PEP URLs

2022-03-26 Thread Hugo van Kemenade


New submission from Hugo van Kemenade :

With the recent implementation https://peps.python.org/pep-0676/ the canonical 
URL for PEPs has changed from, for example:

https://www.python.org/dev/peps/pep-0008/

to:

https://peps.python.org/pep-0008/

Redirects are in place so the old links still work, but let's update the docs 
and docstrings to use the new canonical form. There's also a couple of places 
in code, so a BPO number is needed.

--
assignee: hugovk
components: Documentation, Library (Lib), Parser
messages: 416051
nosy: hugovk, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: Update to canonical PEP URLs
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue47126>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Deprecate modules listed in PEP 594

2022-03-23 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
pull_requests: +30169
pull_request: https://github.com/python/cpython/pull/32082

___
Python tracker 
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Deprecate modules listed in PEP 594

2022-03-19 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
nosy: +hugovk

___
Python tracker 
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-19 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
pull_requests: +30087
pull_request: https://github.com/python/cpython/pull/31998

___
Python tracker 
<https://bugs.python.org/issue47022>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-19 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
pull_requests: +30086
stage: backport needed -> patch review
pull_request: https://github.com/python/cpython/pull/31997

___
Python tracker 
<https://bugs.python.org/issue47022>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40465] Deprecate the optional *random* argument to random.shuffle()

2022-03-17 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

GH-31818 adds an entry to What's New in 3.11.

--
message_count: 5.0 -> 6.0
nosy: +hugovk
nosy_count: 3.0 -> 4.0
pull_requests: +30050
pull_request: https://github.com/python/cpython/pull/31818

___
Python tracker 
<https://bugs.python.org/issue40465>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43721] Documentation of property.{getter, setter, deleter} fails to mention that a *new* property is returned

2022-03-15 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
nosy: +hugovk
nosy_count: 4.0 -> 5.0
pull_requests: +29991
pull_request: https://github.com/python/cpython/pull/31893

___
Python tracker 
<https://bugs.python.org/issue43721>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-15 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
pull_requests: +29989
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31891

___
Python tracker 
<https://bugs.python.org/issue47022>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-15 Thread Hugo van Kemenade

New submission from Hugo van Kemenade :

PEP 594 – Removing dead batteries from the standard library

As mentioned in the SC acceptance:

> One thing we’d like to see happen while implementing it: Document the status 
> of the modules being deprecated and removed and backport those deprecation 
> updates to older CPython branch documentation (at least back to 3.9). That 
> gets the notices in front of more people who may use the docs for their 
> specific Python version.

So let's update documentation and deprecation warnings to make clear in which 
release they're to be removed.

This first one is just for the three modules (asynchat, asyncore and smtpd) 
slated for removal soonest, in 3.12:

https://peps.python.org/pep-0594/#deprecated-modules

--
components: Library (Lib)
messages: 415222
nosy: hugovk
priority: normal
severity: normal
status: open
title: PEP 594: Document removal of asynchat, asyncore and smtpd
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue47022>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46607] Add DeprecationWarning to configparser's LegacyInterpolation

2022-02-02 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

> > Other configparser deprecations were added in 3.2, but with 
> > DeprecationWarnings.

> Its deprecation was never documented anywhere in Doc/.

Correct, only in the docstring:

```
class LegacyInterpolation(Interpolation):
"""Deprecated interpolation used in old versions of ConfigParser.
Use BasicInterpolation or ExtendedInterpolation instead."""
```

I've updated GH-30927 to say "deprecated in the docstring" instead of 
"deprecated in docs".

--

___
Python tracker 
<https://bugs.python.org/issue46607>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45173] Remove configparser deprecations

2022-02-02 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
pull_requests: +29268
pull_request: https://github.com/python/cpython/pull/31084

___
Python tracker 
<https://bugs.python.org/issue45173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45173] Remove configparser deprecations

2022-02-01 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

Sure, please see https://bugs.python.org/issue46607.

I've rebased GH-30927 to use the new issue number.

--

___
Python tracker 
<https://bugs.python.org/issue45173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45173] Remove configparser deprecations

2022-02-01 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
pull_requests:  -29106

___
Python tracker 
<https://bugs.python.org/issue45173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46607] Add DeprecationWarning to configparser's LegacyInterpolation

2022-02-01 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
pull_requests: +29258
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30927

___
Python tracker 
<https://bugs.python.org/issue46607>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46607] Add DeprecationWarning to configparser's LegacyInterpolation

2022-02-01 Thread Hugo van Kemenade


New submission from Hugo van Kemenade :

The LegacyInterpolation class of configparser has been deprecated in docs since 
3.2, but without raising a DeprecationWarning.

The 3.2 HISTORY file says:

> - configparser: the SafeConfigParser class has been renamed to ConfigParser.
> The legacy ConfigParser class has been removed but its interpolation 
> mechanism is still available as LegacyInterpolation.

Searching the top 5,000 PyPI sdists, there's very little (if any "real") use of 
LegacyInterpolation. Details: https://bugs.python.org/issue45173#msg409685

Other configparser deprecations were added in 3.2, but with DeprecationWarnings.

Let's add a DeprecationWarning for a couple of releases before removal.

--
components: Library (Lib)
messages: 412339
nosy: hugovk
priority: normal
severity: normal
status: open
title: Add DeprecationWarning to configparser's LegacyInterpolation
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue46607>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45173] Remove configparser deprecations

2022-01-27 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
pull_requests: +29131
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/30952

___
Python tracker 
<https://bugs.python.org/issue45173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45173] Remove configparser deprecations

2022-01-26 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
pull_requests: +29106
pull_request: https://github.com/python/cpython/pull/30927

___
Python tracker 
<https://bugs.python.org/issue45173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45173] Remove configparser deprecations

2022-01-04 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

Searching 4,764 sdists from the top 5,000 PyPI packages, these 13 contain 
"LegacyInterpolation":

configparser-5.1.0.tar.gz
configparser2-4.0.0.tar.gz
eth_abi-2.1.1.tar.gz
eth-account-0.5.6.tar.gz
eth-hash-0.3.2.tar.gz
eth-utils-1.10.0.tar.gz
hexbytes-0.2.2.tar.gz
jedi-0.18.1.tar.gz
magicinvoke-2.4.5.tar.gz
mypy-0.910.tar.gz
pytype-2021.11.12.tar.gz
web.py-0.62.tar.gz
webcolors-1.11.1.tar.gz


The first two are stdlib backports: configparser is active and configparser2 
was last updated in 2015:

configparser-5.1.0/src/backports/configparser/__init__.py:
"LegacyInterpolation",
configparser-5.1.0/src/backports/configparser/__init__.py:class 
LegacyInterpolation(Interpolation):
configparser-5.1.0/src/configparser.py:"LegacyInterpolation",
configparser-5.1.0/src/configparser.py:LegacyInterpolation,
configparser-5.1.0/src/test_configparser.py:elif 
isinstance(self.interpolation, configparser.LegacyInterpolation):
configparser-5.1.0/src/test_configparser.py:elif 
isinstance(self.interpolation, configparser.LegacyInterpolation):
configparser-5.1.0/src/test_configparser.py:elif 
isinstance(self.interpolation, configparser.LegacyInterpolation):
configparser-5.1.0/src/test_configparser.py:interpolation = 
configparser.LegacyInterpolation()
configparser-5.1.0/src/test_configparser.py:class 
ConfigParserTestCaseLegacyInterpolation(ConfigParserTestCase, 
unittest.TestCase):

configparser2-4.0.0/src/backports/configparser2/__init__.py:class 
LegacyInterpolation(Interpolation):
configparser2-4.0.0/src/configparser2.py:LegacyInterpolation,


The others are all configparser.pyi typeshed stub files:

eth_abi-2.1.1/venv/lib/python3.6/site-packages/mypy/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth_abi-2.1.1/venv/lib64/python3.6/site-packages/mypy/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-account-0.5.6/venv-py3.8/lib/python3.8/site-packages/jedi/third_party/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-account-0.5.6/venv-py3.8/lib/python3.8/site-packages/mypy/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-account-0.5.6/venv-py3.8/lib64/python3.8/site-packages/jedi/third_party/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-account-0.5.6/venv-py3.8/lib64/python3.8/site-packages/mypy/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-account-0.5.6/venv/lib/python3.8/site-packages/jedi/third_party/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-account-0.5.6/venv/lib/python3.8/site-packages/mypy/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-account-0.5.6/venv/lib64/python3.8/site-packages/jedi/third_party/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-account-0.5.6/venv/lib64/python3.8/site-packages/mypy/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-hash-0.3.2/venv-py3.8/lib/python3.8/site-packages/jedi/third_party/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-hash-0.3.2/venv-py3.8/lib/python3.8/site-packages/mypy/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-hash-0.3.2/venv-py3.8/lib64/python3.8/site-packages/jedi/third_party/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-hash-0.3.2/venv-py3.8/lib64/python3.8/site-packages/mypy/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-hash-0.3.2/venv/lib/python3.8/site-packages/jedi/third_party/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-hash-0.3.2/venv/lib/python3.8/site-packages/mypy/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-hash-0.3.2/venv/lib64/python3.8/site-packages/jedi/third_party/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-hash-0.3.2/venv/lib64/python3.8/site-packages/mypy/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-utils-1.10.0/venv-py3.8/lib/python3.8/site-packages/jedi/third_party/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-utils-1.10.0/venv-py3.8/lib/python3.8/site-packages/mypy/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-utils-1.10.0/venv-py3.8/lib64/python3.8/site-packages/jedi/third_party/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-utils-1.10.0/venv-py3.8/lib64/python3.8/site-packages/mypy/typeshed/stdlib/3/configparser.pyi:class
 LegacyInterpolation(Interpolation): ...
eth-utils-1.10.0/venv/lib/python3.8/site-packages/jedi

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2022-01-03 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
nosy: +hugovk
nosy_count: 9.0 -> 10.0
pull_requests: +28575
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30361

___
Python tracker 
<https://bugs.python.org/issue34538>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28546] [doc] Clarify setting pdb breakpoints

2022-01-03 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
nosy: +hugovk
nosy_count: 4.0 -> 5.0
pull_requests: +28574
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30360

___
Python tracker 
<https://bugs.python.org/issue28546>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23183] timeit CLI best of 3: undocumented output format

2022-01-03 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
nosy: +hugovk
nosy_count: 5.0 -> 6.0
pull_requests: +28573
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/30359

___
Python tracker 
<https://bugs.python.org/issue23183>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33252] [doc] Clarify ResourceWarning documentation

2022-01-03 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
nosy: +hugovk
nosy_count: 4.0 -> 5.0
pull_requests: +28572
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30358

___
Python tracker 
<https://bugs.python.org/issue33252>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29964] [doc] %z directive has no effect on the output of time.strptime

2022-01-03 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
nosy: +hugovk
nosy_count: 6.0 -> 7.0
pull_requests: +28568
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/30354

___
Python tracker 
<https://bugs.python.org/issue29964>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20281] [doc] time.strftime %z format specifier is the same as %Z

2022-01-03 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
nosy: +hugovk
nosy_count: 6.0 -> 7.0
pull_requests: +28567
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/30354

___
Python tracker 
<https://bugs.python.org/issue20281>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome

2022-01-02 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

Hi Mike, "patch review" means:

"A patch or pull request exists, but it needs review. Any triager or core 
developer may do the review."

https://devguide.python.org/triaging/#stage

So we were waiting for someone to review patches listed above under the "Files" 
section (eg. issue4849_2.patch).

But seeing as they're from 2012/2014, and development has now moved to GitHub, 
a pull request needs to be opened on GitHub instead.

So I reckon you're good to go ahead and create a PR.

--
nosy: +hugovk

___
Python tracker 
<https://bugs.python.org/issue4849>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23952] cgi: Document the 'maxlen' member of the cgi module

2022-01-02 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
nosy: +hugovk
nosy_count: 4.0 -> 5.0
pull_requests: +28550
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/30338

___
Python tracker 
<https://bugs.python.org/issue23952>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46208] os.path.normpath change between 3.11.0a2 and 3.11.0a3+

2022-01-02 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

Here's a branch with a passing ntpath.normpath test and a failing 
posixpath.normpath test:

https://github.com/hugovk/cpython/tree/issue-46208-tests

https://github.com/hugovk/cpython/commit/d7e8da179adce51a8f63d2dbd062a272dda826bc

--

___
Python tracker 
<https://bugs.python.org/issue46208>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33937] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory

2021-12-30 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
nosy: +hugovk
nosy_count: 2.0 -> 3.0
pull_requests: +28523
pull_request: https://github.com/python/cpython/pull/30309

___
Python tracker 
<https://bugs.python.org/issue33937>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46178] Remove `.travis.yml`?

2021-12-30 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
nosy: +hugovk
nosy_count: 2.0 -> 3.0
pull_requests: +28522
pull_request: https://github.com/python/cpython/pull/30309

___
Python tracker 
<https://bugs.python.org/issue46178>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46208] os.path.normpath change between 3.11.0a2 and 3.11.0a3+

2021-12-30 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

git bisect between v3.11.0a2 and v3.11.0a3 points to the same commit, 
99fcf1505218464c489d419d4500f126b6d6dc28.

--

___
Python tracker 
<https://bugs.python.org/issue46208>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46208] os.path.normpath change between 3.11.0a2 and 3.11.0a3+

2021-12-30 Thread Hugo van Kemenade


New submission from Hugo van Kemenade :

The behaviour of os.path.normpath appears to have changed between Python 
3.10/Python 3.11.0a2 and 3.11.0a3+.

I don't see anything mentioned in 
https://docs.python.org/3.11/whatsnew/3.11.html

Is this intentional?


Old behaviour:

Python 3.10.1 (v3.10.1:2cd268a3a9, Dec  6 2021, 14:28:59) [Clang 13.0.0 
(clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from os.path import normpath
>>> normpath('handbook/../../Tests/image.png')
'../Tests/image.png'
>>>


Python 3.11.0a2 (main, Dec 30 2021, 21:22:15) [Clang 13.0.0 
(clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from os.path import normpath
>>> normpath('handbook/../../Tests/image.png')
'../Tests/image.png'
>>>


New behaviour:

Python 3.11.0a3+ (heads/main:af6b406, Dec  9 2021, 15:34:48) [Clang 13.0.0 
(clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from os.path import normpath
>>> normpath('handbook/../../Tests/image.png')
'Tests/image.png'
>>>


Python 3.11.0a3+ (heads/main:8d7644f, Dec 30 2021, 21:32:51) [Clang 13.0.0 
(clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from os.path import normpath
>>> normpath('handbook/../../Tests/image.png')
'Tests/image.png'
>>>

(Found in https://github.com/sphinx-doc/sphinx/issues/10030.)

--
components: Library (Lib)
messages: 409384
nosy: hugovk
priority: normal
severity: normal
status: open
title: os.path.normpath change between 3.11.0a2 and 3.11.0a3+
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue46208>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45903] What’s New In Python 3.11: wrong reference to Signature.from_callable

2021-11-27 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

Thanks Jakub! I've made https://github.com/python/cpython/pull/29813 to fix it.

--

___
Python tracker 
<https://bugs.python.org/issue45903>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45320] Remove deprecated inspect functions

2021-11-27 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
pull_requests: +28046
pull_request: https://github.com/python/cpython/pull/29813

___
Python tracker 
<https://bugs.python.org/issue45320>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45903] What’s New In Python 3.11: wrong reference to Signature.from_callable

2021-11-27 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
pull_requests: +28045
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29813

___
Python tracker 
<https://bugs.python.org/issue45903>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45837] Fix turtle deprecations

2021-11-18 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
pull_requests: +27862
pull_request: https://github.com/python/cpython/pull/29630

___
Python tracker 
<https://bugs.python.org/issue45837>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45837] Fix turtle deprecations

2021-11-18 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
pull_requests: +27861
pull_request: https://github.com/python/cpython/pull/29629

___
Python tracker 
<https://bugs.python.org/issue45837>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45837] Fix turtle deprecations

2021-11-18 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
pull_requests: +27853
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29618

___
Python tracker 
<https://bugs.python.org/issue45837>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45837] Fix turtle deprecations

2021-11-18 Thread Hugo van Kemenade


New submission from Hugo van Kemenade :

turtle's settiltangle was deprecated in Python 3.1:

"Deprecated since version 3.1."

https://docs.python.org/3.10/library/turtle.html#turtle.settiltangle says of 
settiltangle:


And the reason:

"`Turtle.tiltangle()` has been enhanced in functionality: it now can be used to 
get or set the tiltangle. `Turtle.settiltangle()` has been deprecated."

https://docs.python.org/3.10/library/turtle.html#changes-since-python-3-0


However, in docstrings, tiltangle was accidentally marked as deprecated:

"Deprecated since Python 3.1"

https://github.com/python/cpython/blob/v3.10.0/Lib/turtle.py#L2880


Neither tiltangle nor settiltangle raise DeprecationWarnings.


So let's:

* Correct tiltangle's docstring to say it's not really deprecated
* Update settiltangle's docstring to say it is deprecated
* Add a DeprecationWarning to settiltangle
* Internally call self.tiltangle instead of self.settiltangle


BPO references:

2009 https://bugs.python.org/issue5923 - settiltangle originally deprecated, 
with rationale.

2010 https://bugs.python.org/issue7888 - the mixup was discovered and 
apparently corrected in py3k and release31-maint. I've not done the SCM 
archaeology to discover why this regressed.

2020 https://bugs.python.org/issue41165 - both mentioned as deprecated, mixup 
not noted.

--
components: Library (Lib)
messages: 406536
nosy: hugovk
priority: normal
severity: normal
status: open
title: Fix turtle deprecations
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45837>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45320] Remove deprecated inspect functions

2021-09-29 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

Of the 188 repos I managed to clone of 200 top PyPI packages, looks like these 
9 are still calling them:

botocore
client_python
cython
google-api-python-client
grpc
ipython
pycodestyle
pyrsistent
wrapt

Details at https://github.com/python/cpython/pull/28618#issuecomment-930524790

--

___
Python tracker 
<https://bugs.python.org/issue45320>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20438] inspect: Deprecate getfullargspec?

2021-09-29 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
nosy: +hugovk
nosy_count: 11.0 -> 12.0
pull_requests: +26990
pull_request: https://github.com/python/cpython/pull/28618

___
Python tracker 
<https://bugs.python.org/issue20438>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33582] formatargspec deprecated but does not emit DeprecationWarning.

2021-09-29 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
nosy: +hugovk
nosy_count: 6.0 -> 7.0
pull_requests: +26991
pull_request: https://github.com/python/cpython/pull/28618

___
Python tracker 
<https://bugs.python.org/issue33582>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45320] Remove deprecated inspect functions

2021-09-29 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
pull_requests: +26989
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/28618

___
Python tracker 
<https://bugs.python.org/issue45320>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45320] Remove deprecated inspect functions

2021-09-29 Thread Hugo van Kemenade


New submission from Hugo van Kemenade :

inspect.getargspec was deprecated in docs since 3.0 
(https://docs.python.org/3.0/library/inspect.html?highlight=getargspec#inspect.getargspec),
 raising a DeprecationWarning since 3.5 (bpo-20438, 
https://github.com/python/cpython/commit/3cfec2e2fcab9f39121cec362b78ac235093ca1c).

inspect.formatargspec was deprecated in docs since 3.5 
(https://docs.python.org/3.5/library/inspect.html?highlight=getargspec#inspect.formatargspec),
 raising a DeprecationWarning since 3.8 (bpo-33582, 
https://github.com/python/cpython/commit/46c5cd0f6e22bdfbdd3f0b18f1d01eda754e7e11).

Undocumented inspect.Signature.from_function and inspect.Signature.from_builtin 
in docs and by raising a DeprecationWarning since 3.5 (bpo-20438, 
https://github.com/python/cpython/commit/3cfec2e2fcab9f39121cec362b78ac235093ca1c).

These can be removed in Python 3.11.

--
components: Library (Lib)
messages: 402860
nosy: hugovk
priority: normal
severity: normal
status: open
title: Remove deprecated inspect functions
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45320>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-09-13 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
nosy: +hugovk
nosy_count: 1.0 -> 2.0
pull_requests: +26725
pull_request: https://github.com/python/cpython/pull/28312

___
Python tracker 
<https://bugs.python.org/issue42135>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45173] Remove configparser deprecations

2021-09-11 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

Also, the LegacyInterpolation class is deprecated since Python 3.2 but with no 
DeprecationWarning.

A quick sampling of GitHub results shows only copies of CPython's 
configparser.py and test_configparser.py

https://github.com/search?l=Python=1=LegacyInterpolation+extension%3Apy+language%3APython+language%3APython=advsearch=Code

No use found in the top 200 PyPI packages.

Is it safe to remove now, or should it raise DeprecationWarning for a couple of 
releases first?

--

___
Python tracker 
<https://bugs.python.org/issue45173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45173] Remove configparser deprecations

2021-09-11 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
pull_requests: +26708
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/28292

___
Python tracker 
<https://bugs.python.org/issue45173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45173] Remove configparser deprecations

2021-09-11 Thread Hugo van Kemenade


New submission from Hugo van Kemenade :

In the configparser module, these have been deprecated since Python 3.2:

* the SafeConfigParser class,
* the filename property of the ParsingError class,
* the readfp method of the ConfigParser class,

They can be removed in Python 3.11.

--
components: Library (Lib)
messages: 401644
nosy: hugovk
priority: normal
severity: normal
status: open
title: Remove configparser deprecations
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45132] Remove deprecated __getitem__ methods

2021-09-07 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
pull_requests: +26647
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/28225

___
Python tracker 
<https://bugs.python.org/issue45132>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45132] Remove deprecated __getitem__ methods

2021-09-07 Thread Hugo van Kemenade


New submission from Hugo van Kemenade :

The __getitem__ methods of xml.dom.pulldom.DOMEventStream, 
wsgiref.util.FileWrapper and were deprecated in Python 3.8 by bpo-9372 / 
GH-8609.

They can be removed in Python 3.11.

--
components: Library (Lib)
messages: 401322
nosy: hugovk
priority: normal
severity: normal
status: open
title: Remove deprecated __getitem__ methods
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45132>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45129] Remove deprecated reuse_address parameter from create_datagram_endpoint()

2021-09-07 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
pull_requests: +26632
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/28207

___
Python tracker 
<https://bugs.python.org/issue45129>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45129] Remove deprecated reuse_address parameter from create_datagram_endpoint()

2021-09-07 Thread Hugo van Kemenade


New submission from Hugo van Kemenade :

The reuse_address parameter was deprecated in Python 3.9 by bpo-37228.

It can be removed in Python 3.11.

PR to follow.

--
components: asyncio
messages: 401290
nosy: asvetlov, hugovk, yselivanov
priority: normal
severity: normal
status: open
title: Remove deprecated reuse_address parameter from create_datagram_endpoint()
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45129>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39586] Deprecate bdist_msi: use bdist_wheel instead

2021-09-07 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

Following this deprecation in Python 3.9, please see 
https://bugs.python.org/issue45124 / 
https://github.com/python/cpython/pull/28195 to remove the deprecation in 
Python 3.11.

--

___
Python tracker 
<https://bugs.python.org/issue39586>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45124] Remove deprecated bdist_msi command

2021-09-07 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
pull_requests: +26619
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/28195

___
Python tracker 
<https://bugs.python.org/issue45124>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45124] Remove deprecated bdist_msi command

2021-09-07 Thread Hugo van Kemenade


New submission from Hugo van Kemenade :

The bdist_msi command was deprecated in Python 3.9 by bpo-39586 (commit 
2d65fc940b897958e6e4470578be1c5df78e319a).

It can be removed in Python 3.11.

PR to follow.

--
components: Distutils
messages: 401216
nosy: dstufft, eric.araujo, hugovk
priority: normal
severity: normal
status: open
title: Remove deprecated bdist_msi command
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45124>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41165] [Python 3.10] Remove APIs deprecated long enough

2021-08-18 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

## unittest

What's needed to move forward with removing the deprecated aliases?

A deprecation warning is shown for `python3 -m unittest test_bar` and `python3 
test_bar.py` (tested Python 3.6-3.10).

No deprecation warning is shown for `python setup.py test`, however, both 
setuptools and pytest have deprecated/discouraged `python setup.py test`:

https://github.com/pypa/setuptools/pull/1878
https://github.com/pytest-dev/pytest/pull/5546
https://github.com/pytest-dev/pytest/issues/5534

Docs already mention they are deprecated:

https://docs.python.org/3/library/unittest.html#deprecated-aliases

> At a bare minimum you should list removed features in the 3.9 changelog and 
> porting guide as "will be removed in 3.10". I would even argue to add 
> deprecation warnings to the code in 3.9 (with permission from the RM). If the 
> RM is against deprecation warnings, then it might be good idea to postpone 
> removal to 3.11.

So at this stage (3.10 in RC), do we need to list them in the 3.11 changelog 
and porting guide as "will be removed in 3.12"?

--
nosy: +hugovk

___
Python tracker 
<https://bugs.python.org/issue41165>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37324] collections: remove deprecated aliases to ABC classes

2020-12-13 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
nosy: +hugovk
nosy_count: 4.0 -> 5.0
pull_requests: +22611
pull_request: https://github.com/python/cpython/pull/23754

___
Python tracker 
<https://bugs.python.org/issue37324>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41917] Python 3.9rc2 fails to install matplotlib

2020-10-05 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

This probably isn't an issue with CPython 3.9.0 itself, but rather third-party 
libraries needing to add 3.9 support and provide wheels, and they may be 
waiting for 3.9.0 to be officially released (due out today!).

Here's a PR to add Python 3.9 support to Kiwi (aka kiwisolver):

https://github.com/nucleic/kiwi/pull/88

--
nosy: +hugovk

___
Python tracker 
<https://bugs.python.org/issue41917>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41282] Deprecate and remove distutils

2020-07-29 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
nosy: +hugovk

___
Python tracker 
<https://bugs.python.org/issue41282>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41268] 3.9-dev regression? TypeError: exec_module() missing 1 required positional argument: 'module'

2020-07-11 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

Okay, looks like this is actually a setuptools issue, introduced in version 
47.3.2.

Reported: https://github.com/pypa/setuptools/issues/2246

--

___
Python tracker 
<https://bugs.python.org/issue41268>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41268] 3.9-dev regression? TypeError: exec_module() missing 1 required positional argument: 'module'

2020-07-10 Thread Hugo van Kemenade


New submission from Hugo van Kemenade :

For the past 3 months we've been testing Pillow on Travis CI using 3.9-dev, 
which Travis builds nightly from the 3.9 branch.

Two days ago the 3.9-dev build passed, but it failed yesterday with the same 
Pillow commit, and all subsequent builds.

* Last pass: https://travis-ci.org/github/python-pillow/Pillow/jobs/706015838
* First fail: https://travis-ci.org/github/hugovk/Pillow/jobs/706476038

Diffing the logs, here's the CPython commits for each:

platform linux 3.9.0b4+ (heads/3.9:edeaf61, Jul  7 2020, 06:29:52)
platform linux 3.9.0b4+ (heads/3.9:1d1c574, Jul  8 2020, 07:05:21)

Diff of those commits:

https://github.com/python/cpython/compare/edeaf61b6827ab3a8673aff1fb7717917f08f003..1d1c5743400bdf384ec83eb6ba5b39a355d121e3

It's also failing with the most recent:

platform linux 3.9.0b4+ (heads/3.9:e689789, Jul  9 2020, 07:57:24)

I didn't see anything obvious to cause it, so thought I'd better report it here 
to be on the safe side.

Our tracking issue: https://github.com/python-pillow/Pillow/issues/4769

Here's the traceback:

Finished processing dependencies for Pillow==7.3.0.dev0
python3 selftest.py
Traceback (most recent call last):
  File "/home/travis/build/hugovk/Pillow/selftest.py", line 6, in 
from PIL import Image, features
  File "", line 1007, in _find_and_load
  File "", line 986, in _find_and_load_unlocked
  File "", line 664, in _load_unlocked
  File "", line 627, in _load_backward_compatible
  File "", line 259, in load_module
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/Pillow-7.3.0.dev0-py3.9-linux-x86_64.egg/PIL/Image.py",
 line 94, in 
  File "", line 1007, in _find_and_load
  File "", line 986, in _find_and_load_unlocked
  File "", line 664, in _load_unlocked
  File "", line 627, in _load_backward_compatible
  File "", line 259, in load_module
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/Pillow-7.3.0.dev0-py3.9-linux-x86_64.egg/PIL/_imaging.py",
 line 8, in 
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/Pillow-7.3.0.dev0-py3.9-linux-x86_64.egg/PIL/_imaging.py",
 line 7, in __bootstrap__
TypeError: exec_module() missing 1 required positional argument: 'module'
Makefile:59: recipe for target 'install-coverage' failed
make: *** [install-coverage] Error 1
Traceback (most recent call last):
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/_pytest/config/__init__.py",
 line 495, in _importconftest
return self._conftestpath2mod[key]
KeyError: PosixPath('/home/travis/build/hugovk/Pillow/conftest.py')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/opt/python/3.9-dev/lib/python3.9/runpy.py", line 197, in 
_run_module_as_main
return _run_code(code, main_globals, None,
  File "/opt/python/3.9-dev/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/pytest/__main__.py",
 line 7, in 
raise SystemExit(pytest.main())
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/_pytest/config/__init__.py",
 line 105, in main
config = _prepareconfig(args, plugins)
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/_pytest/config/__init__.py",
 line 257, in _prepareconfig
return pluginmanager.hook.pytest_cmdline_parse(
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/pluggy/hooks.py",
 line 286, in __call__
return self._hookexec(self, self.get_hookimpls(), kwargs)
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/pluggy/manager.py",
 line 93, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/pluggy/manager.py",
 line 84, in 
self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/pluggy/callers.py",
 line 203, in _multicall
gen.send(outcome)
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/_pytest/helpconfig.py",
 line 90, in pytest_cmdline_parse
config = outcome.get_result()
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/pluggy/callers.py",
 line 80, in get_result
raise ex[1].with_traceback(ex[2])
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/pluggy/callers.py",
 line 187, in _multicall
res = hook_impl.function(*args)
  File 
"/home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/_pytest/c

[issue39586] Deprecate bdist_msi: use bdist_wheel instead

2020-02-08 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
pull_requests: +17790
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/18415

___
Python tracker 
<https://bugs.python.org/issue39586>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39586] Deprecate bdist_msi: use bdist_wheel instead

2020-02-08 Thread Hugo van Kemenade

New submission from Hugo van Kemenade :

According to the "Deprecate bdist_wininst" discussion (July 2019), bdist_msi 
can be deprecated:

https://discuss.python.org/t/deprecate-bdist-wininst/1929

Victor Stinner wrote:

"Now the question is if someone here wants to go further is deprecate all 
distutils commands except sdist and bdist_wheel? Steve Dower wants to deprecate 
bdist_msi as well: I’m not sure who use bdist_msi. It’s another form of GUI 
installer, so it’s similar to bdist_wininst. I would also strongly encourage to 
use bdist_wheel rather than bdist_msi."

Brett Cannon wrote:

"Probably a good idea, but I personally don’t have the time."

Steve Dower wrote:

"I think the others are fine to leave (though if people who work more closely 
with those tools want to say drop them then I’m fine with that too).

"bdist_msi and bdist_exe don’t integrate with any other package managers, can’t 
be integrated with any other installer besides our own Python installer, and in 
any case are worse than simply copying the files. (If we had a bdist_msm I’d be 
slightly more sympathetic, but we don’t and probably should not :) )

"I also don’t necessarily think that wheels are always the alternative, 
particularly for embedded scenarios, but I do think that the fewer options we 
provide by default will help people find the option they actually need, rather 
than assuming that because it’s “blessed” it must see correct."


And in "Remove distutils bdist_wininst command" (February 2020):

https://discuss.python.org/t/remove-distutils-bdist-wininst-command/3115

Victor Stinner wrote:

"I don’t plan to remove bdist_msi, even if wheel packages are now recommended."

Steve Dower wrote:

"We should, though. Installing a package using an MSI is worse than an EXE, as 
it leaves far more cruft behind if you don’t uninstall it before 
changing/removing the Python install.

"Standalone apps should bundle everything, like pynsist or briefcase. GPO 
deployment should create their own MSI with everything they want in the bundle 
and deploy that. Perhaps someone can make an “installer” based on the py.exe 
launcher (which I believe supports an attached zip file) that will use pip and 
a local/embedded wheel.

"But we should really discourage package installs that don’t support venv 
and/or leave cruft behind."

Victor Stinner wrote:

"If you want to see it disappear, you should start by deprecating it in Python 
3.9. It would be a first step."

PR to follow.

See also:
* https://bugs.python.org/issue37481 "Deprecate bdist_wininst: use bdist_wheel 
instead"
* https://bugs.python.org/issue39541 "distutils: Remove bdist_wininst (Windows 
.exe installers) in favor of bdist_wheel (.whl)"

--
components: Distutils, Windows
messages: 361633
nosy: dstufft, eric.araujo, hugovk, paul.moore, steve.dower, tim.golden, 
zach.ware
priority: normal
severity: normal
status: open
title: Deprecate bdist_msi: use bdist_wheel instead
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue39586>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com