I am a research programmer at the NYU School of Engineering. My colleagues
(Trishank Kuppusamy and Justin Cappos) and I are requesting community
feedback on our proposal, "Surviving a Compromise of PyPI." The two-stage
proposal can be reviewed online at:
Summary of the Proposal:
"Surviving a Compromise of PyPI" proposes how the Python Package Index
(PyPI) can be amended to better protect end users from altered or malicious
packages, and to minimize the extent of PyPI compromises against affected
users. The proposed integration allows package managers such as pip to be
more secure against various types of security attacks on PyPI and defend
end users from attackers responding to package requests. Specifically,
these PEPs describe how PyPI processes should be adapted to generate and
incorporate repository metadata, which are signed text files that describe
the packages and metadata available on PyPI. Package managers request
(along with the packages) the metadata on PyPI to verify the authenticity
of packages before they are installed. The changes to PyPI and tools will
be minimal by leveraging a library, The Update Framework
<https://github.com/theupdateframework/tuf>, that generates and
transparently validates the relevant metadata.
The first stage of the proposal (PEP 458
<http://legacy.python.org/dev/peps/pep-0458/>) uses a basic security model
that supports verification of PyPI packages signed with cryptographic keys
stored on PyPI, requires no action from developers and end users, and
protects against malicious CDNs and public mirrors. To support continuous
delivery of uploaded packages, PyPI administrators sign for uploaded
packages with an online key stored on PyPI infrastructure. This level of
security prevents packages from being accidentally or deliberately tampered
with by a mirror or a CDN because the mirror or CDN will not have any of
the keys required to sign for projects.
The second stage of the proposal (PEP 480
<http://legacy.python.org/dev/peps/pep-0480/>) is an extension to the basic
security model (discussed in PEP 458) that supports end-to-end verification
of signed packages. End-to-end signing allows both PyPI and developers to
sign for the packages that are downloaded by end users. If the PyPI
infrastructure were to be compromised, attackers would be unable to serve
malicious versions of these packages without access to the project's
developer key. As in PEP 458, no additional action is required by end
users. However, PyPI administrators will need to periodically (perhaps
every few months) sign metadata with an offline key. PEP 480 also proposes
an easy-to-use key management solution for developers, how to interface
with a potential build farm on PyPI infrastructure, and discusses the
security benefits of end-to-end signing. The second stage of the proposal
simultaneously supports real-time project registration and developer
signatures, and when configured to maximize security on PyPI, less than 1%
of end users will be at risk even if an attacker controls PyPI and goes
undetected for a month.
We thank Nick Coghlan and Donald Stufft for their valuable contributions,
and Giovanni Bajo and Anatoly Techtonik for their feedback.
PEP 458 & 480 authors.
I am new to PyPI and deleted my project (pyhma) by mistake. Is there a way to allow me to create it again with the same name? We can not change the name as it is part of a code paper under the same name.
The <a href="https://tinderdatingsites.com/">tinder dating site</a> is used to meet sexy girls whom you can have a healthy relationship. If you are single and wanted to have a relationship then don't worry you can use <a href="https://adultfriendfinderz.co/">adult friend finder</a> to meet hot people.
I'm very new to this python community.
This system is a FedoraCore 32 x86_64 (Rawhide) freshly installed.
I was reading about beautifulsoup... and was directed to use pip "pip install beautifulsoup4". I got nothing. strace -xvfp <pid of pip> shows that pip is in (hung?) in the recvfrom(...) system call.
Is pip trying to "talk" with a site that's down? Perhaps I'm not doing something correctly?
Thanks for your help,
I'm working on tools to convert python packaging data to rpm spec
files. Most of the conversions are relatively straightforward, but
there's an odd corner case with ">" and versions ending in ".*". That
combination is parsed as a valid specification, but oddly, it seems to
behave the same as ">= version", as demonstrated below. Is this
intentional, or is it a byproduct of parsing ">1.0.*" as a
Should I convert ">1.0.*" into ">=1.0" and mimic the current behavior,
or into something else, like "> 1.0", or ">= 1.1"?
>>> pkg_resources._vendor.packaging.requirements.Requirement('cairocffi > 1.0.*,< 1.0.1').specifier._specs
>>> '1.7' in pkg_resources.Requirement.parse('foo>1.7.*')
On behalf of the PyPA, I am pleased to announce that pip 20.0 has been
This release contains quite a lot of changes (you can see the full list here
The highlights for this release are:
- Shorter filenames in output, when installing from PyPI.
- Automatic fall back to user installs, when main site-packages directory
writable and user installs are allowed.
- Significantly improved wheel building and wheel caching.
- Significantly reworked PEP 425 (binary compatibility tag) computation.
- Better handling of system packages in virtual environments created with
`venv` (PEP 405).
- Older pip entry points have been reinstated temporarily, to aid users with
stale wrapper scripts.
We expect that upgrading to this version of pip, would be painless for most
users. We recommend that users test the release before deploying in
as with any other software release.
The pip development team is extremely grateful to everyone in the community
their contributions. Thanks to everyone who put so much effort into the new
release. Many of the contributions came from community members, whether in
form of code, participation in design discussions and/or bug reports.
I've just posted a final progress report on Discourse about the last
month of Open Tech Fund-supported progress on PyPI's localization and
accessibility features. Including a screenshot and a bar graph!
We've finished our OTF-funded accessibility & internationalization work.
And sometime this month people will be able to use PyPI in Brazilian
Portugese and Japanese!
PyPI project manager