[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-11 Thread Pradyun Gedam


Change by Pradyun Gedam :


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

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



[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-11 Thread Pradyun Gedam


New submission from Pradyun Gedam :

This is closely related to bpo-46985.

I'm changing up the regular strategy of a single PR that bumps both pip + 
setuptools in a single PR. So... here's a separate bpo issue for that.

--
components: Library (Lib)
messages: 414906
nosy: pradyunsg
priority: normal
severity: normal
status: open
title: Upgrade ensurepip bundled setuptools to 60.9.3
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9

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



[issue46985] Upgrade ensurepip bundled pip to 22.0.4

2022-03-11 Thread Pradyun Gedam


Change by Pradyun Gedam :


--
title: Upgrade bundled pip to 22.0.4 -> Upgrade ensurepip bundled pip to 22.0.4

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



[issue46985] Upgrade bundled pip to 22.0.4

2022-03-11 Thread Pradyun Gedam


Change by Pradyun Gedam :


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

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



[issue46985] Upgrade bundled pip to 22.0.4

2022-03-11 Thread Pradyun Gedam


New submission from Pradyun Gedam :

Looks like I forgot to file PRs for the last few pip releases. :)

--
components: Library (Lib)
messages: 414904
nosy: pradyunsg
priority: normal
severity: normal
status: open
title: Upgrade bundled pip to 22.0.4
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9

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



[issue41663] Support Windows pseudoterminals in pty and termios modules

2021-11-07 Thread Pradyun Gedam


Pradyun Gedam  added the comment:

https://github.com/spyder-ide/pywinpty might be relevant; although it's 
implemented in Rust.

--
nosy: +pradyunsg

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



[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-10-03 Thread Pradyun Gedam


Pradyun Gedam  added the comment:

+1 for bumping to 20.2.3, in case an upstream voice is helpful. :)

On Fri, Oct 2, 2020 at 8:12 PM Pablo Galindo Salgado 
wrote:

>
> Pablo Galindo Salgado  added the comment:
>
> I think that the backport to 3.8 may have some unintended consequences in
> the last patch release as venv created with 3.8 now exhibit the pip
> regression (https://github.com/pypa/pip/issues/8695.).
>
> Steve, would you be ok if we bump all branches (master, 3.9 and 3.8) to
> 20.2.3?
>
> --
> nosy: +pablogsal
>
> ___
> Python tracker 
> <https://bugs.python.org/issue41490>
> ___
>

--

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



[issue35856] bundled pip syntaxwarning

2019-11-12 Thread Pradyun Gedam


Pradyun Gedam  added the comment:

Closing this sounds reasonable to me!

There are a couple of pending PRs for updating the pip, in the current
versions of CPython. That's being tracked separately so likely don't need
this to stay open anymore.

On Tue, 12 Nov 2019 at 6:20 PM, Inada Naoki  wrote:

>
> Change by Inada Naoki :
>
>
> --
> resolution:  -> third party
> stage:  -> resolved
> status: open -> closed
>
> ___
> Python tracker 
> <https://bugs.python.org/issue35856>
> ___
>

--

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



[issue38662] Decouple ensurepip from pip's internals using runpy

2019-11-05 Thread Pradyun Gedam

Pradyun Gedam  added the comment:

On Tue, 5 Nov 2019 at 4:30 PM, Ned Deily  wrote:

>
> Ned Deily  added the comment:
>
> Can you explain how this would be rolled out?

This, as in? If you're referring to this specific change, I don't think
there's anything special needed for this change (it's backwards compatible
with past pip releases, but that doesn't matter).

ensurepip only installs the bundled wheel it already has, into the
environment. Thus, existing ensurepip releases won't be broken.

However, when we bump up to pip 19.3 [1], we'd need to be updating the
invocation since it's using a pip internal and pip's internals can change
without notice even in a patch version.

This change ensures that ensurepip is robust to changes in the location of
pip's main function, thus making those updates as simple as a bundled wheel
change.

[1]: IIUC we try to keep CPython's bundled wheel in sync with latest)

Does this mean as of a planned release of pip the current ensurepip would
> break?

Yes. pip 19.3 made a change and as can be seen in the PR for that (sorry,
it's a GitHub PR and my internet is ridiculously slow right now).

  If so, when?

That's already been released. 

Is 2.7 still supported with that version of pip and, if so, have you tested
> the PR with it?

Yes, pip will support 2.7 at least until CPython does (and likely longer).

>
> --
> nosy: +ned.deily
>
> ___
> Python tracker 
> <https://bugs.python.org/issue38662>
> ___
>

--

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



[issue38662] Decouple ensurepip from pip's internals using runpy

2019-11-01 Thread Pradyun Gedam


Pradyun Gedam  added the comment:

Note that the patch uses the fact that:


```
def foo():
try:
raise Exception("returned")
except Exception as e:
print("except")
return e.args[0]
finally:
print("finally")


print(foo())
```

will print:

```
except
finally
returned
```

--

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



[issue38662] Decouple ensurepip from pip's internals using runpy

2019-11-01 Thread Pradyun Gedam


Change by Pradyun Gedam :


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

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



[issue38662] Decouple ensurepip from pip's internals using runpy

2019-11-01 Thread Pradyun Gedam


New submission from Pradyun Gedam :

Inspired by https://github.com/python/cpython/pull/16782#discussion_r335285656

This changes ensurepip's current assumption that pip would expose a "main" 
function, which can be invoked to run pip.

I've selected all actively supported Python versions for this ticket, since 
this patch should be backported to all Python versions, to make it robust to 
internal changes within pip.

--
messages: 355826
nosy: Marcus.Smith, dstufft, ncoghlan, paul.moore, pradyunsg
priority: normal
severity: normal
status: open
title: Decouple ensurepip from pip's internals using runpy
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

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



[issue37664] Update bundled pip and setuptools

2019-08-24 Thread Pradyun Gedam


Pradyun Gedam  added the comment:

Made the release and the PR. <https://github.com/python/cpython/pull/15483>

--

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



[issue37664] Update bundled pip and setuptools

2019-08-24 Thread Pradyun Gedam


Change by Pradyun Gedam :


--
pull_requests: +15169
pull_request: https://github.com/python/cpython/pull/15483

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



[issue37664] Update bundled pip and setuptools

2019-08-24 Thread Pradyun Gedam


Change by Pradyun Gedam :


--
pull_requests: +15168
pull_request: https://github.com/python/cpython/pull/15482

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



[issue37664] Update bundled pip and setuptools

2019-08-24 Thread Pradyun Gedam


Pradyun Gedam  added the comment:

There's a need for a pip 19.2.3, since there's a bug in wheel tagging logic 
hasn't been updated for CPython 3.8's new tags. I'll be cutting that release, 
and filing a PR for updating bundled pip & setuptools, sometime in the next 24 
hours. (I just got back from my final mid-semester exam, and really should 
relax for a bit)

I'm not sure whether we should mark this a release blocker.

--

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



[issue37664] Update bundled pip and setuptools

2019-08-19 Thread Pradyun Gedam


Pradyun Gedam  added the comment:

There wasn't a new setuptools release when I updated these the last time,
IIRC.

Anyway, I'll cut a new release for pip, file a new b.p.o. issue and get to
updating both of these sometime this week.

On Mon, 19 Aug 2019 at 11:20 AM, Inada Naoki  wrote:

>
> Inada Naoki  added the comment:
>
> When updating pip next time, please update setuptools too.
> https://setuptools.readthedocs.io/en/latest/history.html#v41-1-0
>
> > #1788: Changed compatibility fallback logic for html.unescape to avoid
> accessing HTMLParser.unescape when not necessary. HTMLParser.unescape is
> deprecated and will be removed in Python 3.9.
>
> This is blocking #37328.
>
> --
> nosy: +inada.naoki
>
> ___
> Python tracker 
> <https://bugs.python.org/issue37664>
> ___
>

--

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



[issue37664] Update bundled pip and setuptools

2019-07-24 Thread Pradyun Gedam


Pradyun Gedam  added the comment:

Alrighty! Filed gh-14934.

(Sounds good to me. Filed a PR on devguide, adding me to the devguide: 
https://github.com/python/devguide/pull/513)

--
keywords: +patch
message_count: 3.0 -> 4.0
pull_requests: +14707
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14934

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



[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2019-07-24 Thread Pradyun Gedam


Change by Pradyun Gedam :


--
pull_requests: +14706
pull_request: https://github.com/python/cpython/pull/14934

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



[issue37664] Update bundled pip and setuptools

2019-07-24 Thread Pradyun Gedam


Pradyun Gedam  added the comment:

I might be doing another bugfix, for https://github.com/pypa/pip/issues/6775. I 
don't think we've decided how to go about that issue yet.

If a week isn't too long a waiting time, I'd suggest we wait for a week and 
then vendor whatever is the latest at that point.

I'll be happy to file a PR, if we want to go ahead with this. :)

--

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



[issue36608] Replace bundled pip and setuptools with a downloader in the ensurepip module

2019-04-13 Thread Pradyun Gedam


Pradyun Gedam  added the comment:

(Not sure how the Roundup handles email replies but I'm hoping this goes to
the right place)

I think it would be better if the downloading got invoked during the
interpreter build process -- to download the wheels and add them to the
final distribution. This lets us remove the wheels from the source
tree/version control and prevents needing to change the PEP for this change.

Functionally, I imagine having all the download logic in some sort of
ensurepip._bootstrap which has all the download logic and that getting
invoked in the build process. `python -m ensurepip` not hitting the
internet is a good invariant to keep.

On Fri, 12 Apr 2019 at 8:54 PM, Eric V. Smith 
wrote:

>
> Eric V. Smith  added the comment:
>
> And I don't mean to sound like a total downer. I just think it's important
> that we recognize all of the use cases.
>
> Thanks for your work on this.
>
> --
>
> ___
> Python tracker 
> <https://bugs.python.org/issue36608>
> ___
>

--

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



[issue35807] Update bundled pip to 19.0

2019-03-05 Thread Pradyun Gedam


Change by Pradyun Gedam :


--
keywords: +patch
pull_requests: +12184
stage:  -> patch review

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



[issue35807] Update bundled pip to 19.0

2019-02-04 Thread Pradyun Gedam


Pradyun Gedam  added the comment:

Update: I'll do this after 19.0.2 is released.

--

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



[issue35807] Update bundled pip to 19.0

2019-01-22 Thread Pradyun Gedam


New submission from Pradyun Gedam :

In line with https://bugs.python.org/issue35277.

Will also update setuptools while I do this. (if no one else gets to it, I'll 
file a PR tomorrow morning)

--
components: Library (Lib)
messages: 334230
nosy: dstufft, ncoghlan, paul.moore, pradyunsg
priority: normal
severity: normal
status: open
title: Update bundled pip to 19.0

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



[issue21314] Document '/' in signatures

2018-10-31 Thread Pradyun Gedam


Pradyun Gedam  added the comment:

We now have a PEP for this; just noting this here since I don't see a cross 
reference between them.

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

--
nosy: +pradyunsg

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



[issue15809] 2.7 IDLE console uses incorrect encoding.

2018-10-31 Thread Pradyun Gedam


Change by Pradyun Gedam :


--
nosy:  -pradyunsg

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



[issue17348] Unicode - encoding seems to be lost for inputs of unicode chars

2013-03-04 Thread Pradyun Gedam

New submission from Pradyun Gedam:

In IDLE, I have spotted a peculiar problem.

I have attached an .png file which is a screen capture of 'session' on IDLE. It 
seems that the Unicode character that has been input, loses its encoding.

My 'session'
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on 
win32
Type copyright, credits or license() for more information.
 c = u'€'
 ord(c)
128
 c.encode('utf-8')
'\xc2\x80'
 c
u'\x80'
 print c
€
 c = u'\u20ac'
 ord(c)
8364
 c.encode('utf-8')
'\xe2\x82\xac'
 c
u'\u20ac'
 print c
€


--
components: IDLE
messages: 183431
nosy: Pradyun.Gedam
priority: normal
severity: normal
status: open
title: Unicode - encoding seems to be lost for inputs of unicode chars
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17348
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com