Éric Araujo added the comment:
Did you try with a minimal project containing a C extension?
Did you install in a system where sys.prefix != sys.exec_prefix?
--
___
Python tracker
<https://bugs.python.org/issue25
Éric Araujo added the comment:
> If the docs are wrong, their history doesn't matter that much
What I was saying is that I am not sure that the docs are wrong.
Distutils is more touchy that the rest of the stdlib and I err on the side of
Éric Araujo added the comment:
If you’re not sure about the reason for that sentence, I think you should not
remove it from the docs but investigate more (look at the history, test the
conditions (package with extension module), etc
Éric Araujo added the comment:
I think the expectation is that people will know about modules and packages
long before they upload things to PyPI. The import system and the packaging
tools are two independent domains.
For example the official tutorial has an intro:
https://docs.python.org
Éric Araujo added the comment:
I think the idea here is: don’t feed the trolls.
--
___
Python tracker
<https://bugs.python.org/issue34694>
___
___
Python-bug
Éric Araujo added the comment:
IMO inconsistency with tarfile is not very relevant.
About the zip utility: are you saying that the unix unzip command is not able
to inspect or extract distutils sdists?
About zipimport, the question is: are sdists meant to be directly importable
(IMO no
Éric Araujo added the comment:
Trolling is not welcome.
--
nosy: +eric.araujo
resolution: -> rejected
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
Change by Éric Araujo :
--
assignee: -> eric.araujo
resolution: -> fixed
stage: patch review -> commit review
status: open -> pending
type: crash -> behavior
versions: +Python 3.7, Python 3.8
___
Python tracker
<https://bugs.pyt
Éric Araujo added the comment:
New changeset 0afada163c7ef25c3a9d46ed445481fb69f2ecaf by Éric Araujo (Julien
Malard) in branch 'master':
bpo-34421 avoid unicode error in distutils logging (GH-8799)
https://github.com/python/cpython/commit/0afada163c7ef25c3a9d46ed445481
Éric Araujo added the comment:
In my experience, a more common way to say “stop parsing and take the remaining
arguments as one value” is using `--`.
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue34
Éric Araujo added the comment:
Patch works!
--
assignee: eric.araujo -> berker.peksag
___
Python tracker
<https://bugs.python.org/issue940286>
___
___
Python-
Éric Araujo added the comment:
I realize now that calling self.fail at
https://hg.python.org/cpython/rev/74e79b2c114a#l2.20 is a problem: self is an
instance of the C class, not the TestCase instance.
(The line is unreachable anyway so this doesn’t matter a lot. In other
projects I’d use
Éric Araujo added the comment:
I think there are open tickets discussing this, and the problem is more complex
that a simple PR:
- Debian does multiarch that’s more than just lib/lib64
- some systems have lib32 I think
- recent systems merge / and /usr, is that relevant?
- how does virtualenv
Éric Araujo added the comment:
I don’t think there is an option (see the --help command), but on localhost you
could use http instead of https. Otherwise it’s strongly recommended to use
twine to upload.
--
___
Python tracker
<ht
Éric Araujo added the comment:
In short:
- Approve the PR (the bots will remove label «core review needed» and add
«waiting for merge»
- Do not add «backport» labels as this is a new feature
- Push the squash and merge button
- edit the commit message first line to have GH-123 instead of
Change by Éric Araujo :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue32295>
___
___
Python-bugs-list
Éric Araujo added the comment:
Thanks Ben for expressing exactly what this ticket is about and why the code
would be in argparse. (The author of argparse and Raymond a senior core dev
also agree that adding a man page formatter to argparse would be useful
Éric Araujo added the comment:
It was an answer to «Is there anything I can do to help get this into the
codebase»
Feel free to take this on! I’ll try to review.
--
___
Python tracker
<https://bugs.python.org/issue2
Change by Éric Araujo :
--
Removed message: https://bugs.python.org/msg316703
___
Python tracker
<https://bugs.python.org/issue33109>
___
___
Python-bugs-list m
Éric Araujo added the comment:
See also #33388
--
___
Python tracker
<https://bugs.python.org/issue33069>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Éric Araujo :
--
Removed message: https://bugs.python.org/msg316702
___
Python tracker
<https://bugs.python.org/issue33109>
___
___
Python-bugs-list m
Éric Araujo added the comment:
I'm sorry I don't have the time to study this and make a judgment call.
Bringing this to the release manager's attention.
--
___
Python tracker
<https://bugs.pyt
Éric Araujo added the comment:
In the early days, I think distutils was updated to support new metadata PEPs,
and then it stopped. Now we have an ecosystem of tools that know how to work
with metadata files created by distutils or setuptools; I worry that changing
distutils could break them
Éric Araujo added the comment:
I think this is a duplicate, could you search existing bugs?
But given issue33071 , is this still relevant?
--
___
Python tracker
<https://bugs.python.org/issue30
Éric Araujo added the comment:
Is this related to #33236 ?
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue32933>
___
___
Python-bug
Éric Araujo added the comment:
I think using shlex unconditionally to parse lines sent to cmd.Cmd may not be
ideal.
Cmd is very generic and there are many ways to parse lines into arguments:
- no parsing (think Python shells or remote command execution)
- shlex (makes sense for unix users
Éric Araujo added the comment:
Note that if we switch the order like you propose, we don’t need to use
dict.get:
set D[k]=d if k not in D then return D[k]
I suspect the current doc was written the way it is because it matches the
actual implementation
Éric Araujo added the comment:
The two lines are equivalent!
`d.setdefault(key, default)` does return the same thing as `d.get(key,
default)`, and then sets `d[key] = default` if the get method went into the
“key was not found, let’s return default” branch.
--
nosy: +eric.araujo
Change by Éric Araujo :
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue33214>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Éric Araujo :
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue33189>
___
___
Python-bugs-list mailing list
Unsubscribe:
Éric Araujo added the comment:
+1 to have a warning from distutils for cases not handled by older Metadata PEP.
--
___
Python tracker
<https://bugs.python.org/issue33
Change by Éric Araujo :
--
components: +Library (Lib) -Distutils
resolution: -> not a bug
stage: patch review -> resolved
status: open -> closed
type: behavior ->
___
Python tracker
<https://bugs.python
Éric Araujo added the comment:
I think that the proposed change is a good thing in itself, but if distutils
only supports metadata 1.1 then it should comply with that spec.
I expect most projects to be using setuptools these days (to support wheels for
one thing), so keeping distutils
Éric Araujo added the comment:
Hello! distutils does not write dist-info directories itself; wheel,
setuptools and other build tools do that. Look at https://github.com/pypa to
find the bug trackers (I forget if wheel is there or on bitbucket)
--
resolution: -> third party
st
Change by Éric Araujo :
--
stage: backport needed -> resolved
status: open -> closed
versions: -Python 3.8
___
Python tracker
<https://bugs.python.org/i
Éric Araujo added the comment:
3.5 only accepts security fixes:
https://devguide.python.org/#status-of-python-branches
--
versions: +Python 3.8 -Python 3.4, Python 3.5
___
Python tracker
<https://bugs.python.org/issue32
Change by Éric Araujo :
--
pull_requests: -5529
___
Python tracker
<https://bugs.python.org/issue20160>
___
___
Python-bugs-list mailing list
Unsubscribe:
Éric Araujo added the comment:
Fixed in all branches. I messed up the ticket reference so some links are
missing here.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bug
Change by Éric Araujo :
--
pull_requests: +5525
___
Python tracker
<https://bugs.python.org/issue21060>
___
___
Python-bugs-list mailing list
Unsubscribe:
Éric Araujo added the comment:
Thanks for the patch!
--
___
Python tracker
<https://bugs.python.org/issue31972>
___
___
Python-bugs-list mailing list
Unsub
Change by Éric Araujo :
--
assignee: docs@python -> eric.araujo
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8
___
Python tracker
<https://bugs.python
Éric Araujo added the comment:
New changeset dfa015cf77a148d229ddc0a5b063562c9f9664f2 by Éric Araujo (chason)
in branch 'master':
bpo-31972: Improve docstrings for pathlib classes (#5310)
https://github.com/python/cpython/commit/dfa015cf77a148d229ddc0a5b06356
Éric Araujo added the comment:
Thanks for the feedback, I went with the cleaner phrasing.
--
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue21
Change by Éric Araujo :
--
pull_requests: +5511
___
Python tracker
<https://bugs.python.org/issue21060>
___
___
Python-bugs-list mailing list
Unsubscribe:
Éric Araujo added the comment:
There are many open issues with .pypirc.
I don’t think that -r URL is a supported use case though; the docs should say
that the usage is to add a section in .pypirc to define a repo, then use -r
repo-section-name.
--
versions: -Python 2.7, Python 3.4
Éric Araujo added the comment:
New changeset f5a793522d539afc84ac7888c9ad189097c43a75 by Éric Araujo (Bo
Bayles) in branch '2.7':
bpo-32304: Fix distutils upload for tar files ending with b'\r' (GH-5264)
(GH-5331)
https://github.com/p
Éric Araujo added the comment:
For improving the message, I am hesitating between adding to the existing
message (hoping to help search engines find their way to improved docs):
«No dist file created in earlier command (e.g. setup.py sdist upload)»
and rewriting it entirely:
«Must create
Éric Araujo added the comment:
A doc ticket already exists, moving this one back to a feature request and
closing it.
--
resolution: -> wont fix
stage: needs patch -> resolved
status: open -> closed
superseder: -> Better error message for setup.py upload command without
Éric Araujo added the comment:
I had a patch for this, but now think it would be an attractive nuisance, given
that distutils does not always ensure proper HTTPS verification.
Not adding the ability to build sdists/wheels, check them and then upload them
will help push people to twine, which
Change by Éric Araujo :
--
assignee: -> eric.araujo
resolution: -> fixed
stage: patch review -> backport needed
___
Python tracker
<https://bugs.python.or
Éric Araujo added the comment:
New changeset 995c60d2656c022359aac3fe713d8464c8db5716 by Éric Araujo (Bo
Bayles) in branch '3.6':
[3.6] bpo-32304: Fix distutils upload for tar files ending with b'\r' (GH-5264)
(GH-5330)
https://github.com/p
Éric Araujo added the comment:
New changeset 2fc98ae115e2a2095a0bcf388c27a878aafdb454 by Éric Araujo (Bo
Bayles) in branch 'master':
bpo-32304: Fix distutils upload for sdists ending with \x0d (GH-5264)
https://github.com/python/cpython/commit/2fc98ae115e2a2095a0bcf388c27a8
Éric Araujo added the comment:
Will close soon unless someone disagrees.
--
resolution: -> wont fix
status: open -> pending
___
Python tracker
<https://bugs.python.org/i
Éric Araujo added the comment:
Could you tell more about these projects? In current Python 3 pyc files are in
a __pycache__ sub-directory, not directly in the package dir; what tool
produces «pyc projects»?
--
nosy: +eric.araujo
___
Python
Éric Araujo added the comment:
The devs probably choose to use distutils.Command as base class for maximum
compatibility, but I suspect 99.99% of users use the setuptools integration
(entry points
https://github.com/pypa/wheel/blob/3a87ecebaba765475392ae2cdfa2a51cb78360e0/setup.py#L53-L54
Éric Araujo added the comment:
I don’t know that bdist_wheel integrates with pure distutils without
setuptools. I think this PR should target setuptools (it will also make it
propagate to users faster and regardless of Python version
Éric Araujo added the comment:
`metadata` in setup.cfg is not supported directly by distutils. Can you
provide a setup.py script that shows the problem without setuptools?
--
___
Python tracker
<https://bugs.python.org/issue32
Change by Éric Araujo :
--
keywords: +easy
___
Python tracker
<https://bugs.python.org/issue32212>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Éric Araujo :
--
pull_requests: -4644
___
Python tracker
<https://bugs.python.org/issue31972>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Éric Araujo :
--
versions: -Python 3.4, Python 3.5, Python 3.8
___
Python tracker
<https://bugs.python.org/issue32223>
___
___
Python-bugs-list mailin
Éric Araujo added the comment:
Can you give an example setup.cfg file, setup.py command and the full error
message?
--
___
Python tracker
<https://bugs.python.org/issue32
Éric Araujo added the comment:
I am sorry this snowballed. The intent in my messages here and in my PR review
was to exchange a late, unfriendly traceback with a clear, early message, but
only for package authors. I forgot that a Python 3.7 could execute an invalid
setup.py from an
Éric Araujo added the comment:
The best course of action would be to revert the distutils changes.
There are a handful of tickets related to register/upload commands, which are
funky commands with their own config file not 100% in line with other distutils
commands. Changes in that code
Éric Araujo added the comment:
Merged in master, I suppose stable branches should be left alone?
--
___
Python tracker
<https://bugs.python.org/issue32
Éric Araujo added the comment:
New changeset a489599793f9b00ddc2c68e2ce3bce9cbb2c09a2 by Éric Araujo (Dong-hee
Na) in branch 'master':
bpo-32046: Update 2to3 when converts operator.isCallable(obj). (#4417)
https://github.com/python/cpython/commit/a489599793f9b00ddc2c68e2ce3bce
Éric Araujo added the comment:
I don’t see a downside in accepting the feature request here.
Maybe ask on python-ideas to get more feedback?
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue32
Éric Araujo added the comment:
Latest patch seems good. Berker, would you have the time to adapt for 3.7 and
submit as a PR?
--
___
Python tracker
<https://bugs.python.org/issue19
Éric Araujo added the comment:
The patch would need to be applied on top of the current master to make a pull
request. Then, the tasks outlined in that message should be addressed:
https://bugs.python.org/issue2504#msg122439
--
assignee: loewis
Éric Araujo added the comment:
Can you find out the full error message from pip?
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue32
Change by Éric Araujo :
--
Removed message: https://bugs.python.org/msg306393
___
Python tracker
<https://bugs.python.org/issue32046>
___
___
Python-bugs-list m
Éric Araujo added the comment:
Why about just removing the check, now that callable has been back in 3.x for a
few releases?
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue32
Éric Araujo added the comment:
I remember seeing code needed to make a decorator that works with and without
parens and finding it quite obscure and confusing for a long time. When you
understand the distinction between, things become clear and simple again. I
like that the stdlib keeps
Éric Araujo added the comment:
This can’t be backported, but could the docs of 2.7 and stable 3.x version gain
an example of equivalent PYTHONWARNINGS envvar?
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue31
New submission from Éric Araujo :
pydoc pathlib.Path shows the docstring of PurePath:
| PurePath represents a filesystem path and offers operations which
| don't imply any actual filesystem I/O.
But immediately after we see methods like chmod, exists and co which obviously
aren’t
Change by Éric Araujo :
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue31898>
___
___
Python-bugs-list mailing list
Unsubscribe:
Éric Araujo added the comment:
> support passing file descriptor instead of a path. os.path functions
Are you sure about that? The docs for os.stat show the dir_fd parameter, used
to avoid directory renaming issues or attacks, but it doesn’t say that the
*path* argument can be an int f
Éric Araujo added the comment:
I suggest using :term:`named tuple` for the link (+ an example of using
_replace as Mike said)
--
___
Python tracker
<https://bugs.python.org/issue31
Change by Éric Araujo :
--
keywords: +easy
nosy: +eric.araujo
stage: -> needs patch
versions: +Python 3.7
___
Python tracker
<https://bugs.python.org/issu
Éric Araujo added the comment:
The version in distutils is derived from sys.version and should be left as is
too. Thanks!
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue31
Éric Araujo added the comment:
Thanks for wanting to help! This function is not meant to be public, which
explains why it’s not documented. Please see the devguide and the
core-mentorship mailing list to find ways to contribute!
--
nosy: +merwok
resolution: -> not a bug
st
Éric Araujo added the comment:
Cheers!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Éric Araujo added the comment:
New changeset 205dd4e14de77f9c8ed2903ddebbcf9968bbb6a9 by Éric Araujo (Miss
Islington (bot)) in branch '3.6':
[3.6] bpo-31567: add or fix decorator markup in docs (GH-3959) (GH-3966)
https://github.com/python/cpyt
Éric Araujo added the comment:
New changeset 03b9537dc515d10528f83c920d38910b95755aff by Éric Araujo in branch
'master':
bpo-31567: more decorator markup fixes in docs (GH-3959) (#3966)
https://github.com/python/cpython/commit/03b9537dc515d10528f83c920d3891
Éric Araujo added the comment:
I think existing uses of the decorator markup rely on the reader’s
understanding that it’s syntactic sugar for a call and an assignment, and they
don’t have decorator+function markup. The PRs for this ticket follow that.
That said, staticmethod as a non
Change by Éric Araujo :
--
pull_requests: +3945
___
Python tracker
<https://bugs.python.org/issue31567>
___
___
Python-bugs-list mailing list
Unsubscribe:
Éric Araujo added the comment:
New changeset 0e61e67a57deb4abc677808201d7cf3c38138e02 by Éric Araujo (Daisuke
Miyakawa) in branch 'master':
bpo-31567: add or fix decorator markup in docs (#3959)
https://github.com/python/cpython/commit/0e61e67a57deb4abc677808201d7cf
Change by Éric Araujo :
--
assignee: -> merwok
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python
Éric Araujo added the comment:
New changeset cfe1aefcbd2534ddc1059a7332842644e6c8d1e4 by Éric Araujo (Elvis
Pranskevichus) in branch '2.7':
bpo-31681: Make sure pkgutil.get_data closes files properly (#3875)
https://github.com/python/cpython/commit/cfe1aefcbd2534ddc1059a73328426
New submission from Éric Araujo :
Hello! Your bug report gives very little information for us to help you. Can
you give details such as: your environement / setup, your code, expected result
and full error message?
https://devguide.python.org/tracker/#reporting-an-issue
--
nosy
Éric Araujo added the comment:
> What does @ mean here? If there's some meaning, the next question is, why doc
> for staticmethod()
> (and classmethod() in the same page) does not have it?
@ means that the function is meant to be used as a decorator (the markup looks
like t
Change by Éric Araujo :
--
keywords: +needs review
nosy: +paul.moore
versions: -Python 3.8
___
Python tracker
<https://bugs.python.org/issue31638>
___
___
Pytho
Change by Éric Araujo :
--
nosy: +dstufft, merwok, ncoghlan
versions: -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.8
___
Python tracker
<https://bugs.python.org/issue31
Change by Éric Araujo :
--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
___
Python tracker
<https://bugs.python.org/issue31
Change by Éric Araujo :
--
nosy: +merwok
___
Python tracker
<https://bugs.python.org/issue31638>
___
___
Python-bugs-list mailing list
Unsubscribe:
Éric Araujo added the comment:
Reopening. Eggs are still not officially blessed, but zipapps are.
--
resolution: rejected ->
stage: resolved ->
status: closed -> open
versions: +Python 3.7 -Python 3.2
___
Python tracker
<https://bug
Changes by Éric Araujo :
--
resolution: -> rejected
stage: patch review -> resolved
status: pending -> closed
___
Python tracker
<https://bugs.python.or
Éric Araujo added the comment:
Are you talking about
https://docs.python.org/3/library/gettext.html#the-catalog-constructor ? I
think the lack of markup is on purpose, since the text explains that this is a
compatibility measure (mostly obsolete nowadays).
For future bug reports, please
Changes by Éric Araujo :
--
assignee: -> merwok
nosy: +merwok
versions: +Python 2.7, Python 3.7
___
Python tracker
<https://bugs.python.org/issue29298>
___
_
Éric Araujo added the comment:
The other PR is now merged in 3.7, and won’t be backported (it changes default
behaviour and adds a new param).
--
___
Python tracker
<https://bugs.python.org/issue9
Changes by Éric Araujo :
--
dependencies: +[argparse] Add required argument to add_subparsers
versions: +Python 3.7 -Python 3.3
___
Python tracker
<https://bugs.python.org/issue9
301 - 400 of 7440 matches
Mail list logo