Commit Graph

9403 Commits

Author SHA1 Message Date
Борис Верховский c40101bad1
PEP 617: Grammar (#2029) 2021-07-10 08:40:22 -07:00
Nick Coghlan f6c6e24976
PEP 558: adjustments after updating implementation (#2030)
* `pdb` stores `__return__` and `__exception__`` entries on
  arbitrary frames, so that feature needs to be preserved
* Some fast locals proxy operations will implicitly update the
  underlying shared mapping on the frame
* Anyone explicitly calling `LocalsToFast` is going to want the
  read/write proxy, not any of the read-only options (plus it's
  hard to fit an essay in an error message)
* Remove lingering reference to the removed `PyLocals_RefreshViews()`
2021-07-11 00:05:15 +10:00
Nick Coghlan 7b707b51a8
PEP 558: Fix typos in recently merged changes (#2021) 2021-07-08 18:03:09 -07:00
jack1142 18c5d63b4a
PEP 101: #python-dev channel is now on Libera Chat (#2028)
Per the announcement on the python-dev mailing list:
https://mail.python.org/archives/list/python-dev@python.org/thread/FQW44V4DZFX4GAGOAMAZAN5KDQXCASDU/
2021-07-07 14:58:58 -07:00
Brett Cannon 67aa9979f9
Normalize capitalization of Tzu-ping Chung's name 2021-07-07 09:55:05 -07:00
A-W 6e85aea2cd
PEP 3104: Add footnote to give example (#2027)
While reading PEP 3104 to understand the ``nonlocal`` keyword, I found the explanation for why an alternative was not chosen to be vague. Further digging revealed an example for why there was a concern that ``.x`` and ``x`` could be used interchangeably. I linked this example as a footnote to save future readers time from digging to find an example. I hope this will increase comprehension of the PEP for future learners.
2021-07-05 18:20:57 -07:00
Ammar Askar 126fa7de16
PEP 657: Rename opt out command line flag (#2025) 2021-07-05 17:22:18 +01:00
Batuhan Taskaya 5fc4119624
PEP 657: use 0-indexed offsets (GH-2022) 2021-07-04 19:02:22 +01:00
Adam Turner 3b34e282fd
Sphinx support: fix last modified dates for PEPs (#2024) 2021-07-04 18:55:04 +01:00
Ethan Furman eb6f346936 PEP 663: update for 3.11 2021-07-03 19:32:17 -07:00
Batuhan Taskaya 1344ff8916
PEP 657: addr => addrq (#2019)
* PEP 657: addr => addrq

* add underscores
2021-07-02 17:29:13 +03:00
Yurii Karabas f656342427
PEP 663: Fix SyntaxError (#2020) 2021-07-02 17:43:30 +10:00
Ethan Furman fb51d37aab PEP 663: Improving Enum str(), repr(), and format() 2021-06-30 20:16:24 -07:00
Adam Turner 977f1fe68a
Sphinx support: Add build process notes to README.rst (#2016)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2021-07-01 00:56:07 +01:00
Pablo Galindo 2991089ed8
PEP 657: Update the env variable name and the C-API and add some clarifications (#2015) 2021-07-01 00:02:10 +03:00
Paul Moore a8e7358a8a
PEP 517: Make final (#1712) 2021-06-30 12:51:34 -07:00
Adam Turner 0d93abf9bf
Sphinx support: theming (#1933)
See #2, #1385 for context. Superseeds #1568.

This is the Sphinx-theming part, building on PR #1930.

### Stylesheets:
- `style.css` - styles
- `mq.css` - media queries

### Jinja2 Templates:
- `page.html` - overarching template

### Javascript:
- `doctools.js` - fixes footnote brackets

### Theme miscellany
- `theme.conf` - sets pygments styles, theme internals
2021-06-30 20:19:44 +01:00
Sergei Lebedev 7d727005fd
PEP-563: Fixed the comments for a few examples (#2013)
This commit fixes the wording in the comments for failing examples
in the "Backwards Compatibility" section, as suggested by Guido in #2007.
2021-06-29 08:57:38 -07:00
Bernát Gábor 19634b7425
PEP-662: C'est la vie (#2008) 2021-06-28 14:06:36 -07:00
Barry Warsaw fe1c5555b6
PEP 2 is superseded (#2011) 2021-06-28 13:43:34 -07:00
Ammar Askar 3562a1846a
PEP 657: Mark as accepted (#2010) 2021-06-28 21:10:18 +01:00
Ned Deily 9c7ca007ff
updates for 3.7.11 and 3.6.14 2021-06-28 15:26:07 -04:00
Sergei Lebedev 9bbc154383
PEP-563: Fixed a nested class example (#2007)
The "Backward Compatibility" section in PEP-563 contains an example which
violates Python scoping rules. This PR updates the PEP to say that the example
is not OK and should fail.

See discussion in typing-sig for details [*].

[*]: https://mail.python.org/archives/list/typing-sig@python.org/thread/F2ERQCGB6W6VADR7G6NN4TLMFJECD6EW/
2021-06-28 20:14:44 +02:00
Stéphane Bidoul b95c2cc10d
PEP 660: accepted (#2009) 2021-06-28 10:14:01 -07:00
Łukasz Langa 1fa66ad2f1
[pep-0569][pep-0596] Dates for 3.9.6 and 3.8.11, better blurb for sec-only releases 2021-06-28 13:16:08 +02:00
Nick Coghlan 70442b01a0
PEP 558: Make fast locals proxy independent of the legacy dynamic snapshot (#1787) 2021-06-27 17:37:01 +10:00
Matthieu Darbois cd26ba8af9
PEP 600 supersedes PEP 513, PEP 571, PEP 599 (#1960)
Per PEP 600:
```
When this PEP is accepted, the previous manylinux PEPs will receive a final update noting that they are no longer maintained and referring to this PEP.
```
2021-06-26 09:11:00 -07:00
Matthieu Darbois 9c51901976
PEP600: add manylinux2014 compatibility (GH-1962)
Add a link to PEP 599
Add a mention to manylinux2014 aliases
2021-06-26 12:59:15 +01:00
Bernát Gábor ec988000f9
PEP-662: Add prepare_metadata_for_build_editable (#2003)
This provides full symetry with build_wheel and allows
a fast path for the frontend to validate the backend metadata,
without needing to build the wheel.

Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
2021-06-25 15:13:50 -07:00
Stéphane Bidoul 753816c0f7
PEP 660: shorten names and add prepare_metadata_for_build_editable (GH-2004) 2021-06-25 17:45:09 +01:00
Brandt Bucher c043875156
PEP 634: Clarify late-registration edge-case (GH-2001) 2021-06-24 16:56:40 -07:00
Krzysztof Mizgała 19ba2541b9
PEP 3104: fix broken link (#2002) 2021-06-24 13:39:50 -07:00
Bernát Gábor cab847fb1c
PEP-662: Move to a wheel based approach (#1999)
Co-authored-by: Tomer <tomer.keren.dev@gmail.com>
2021-06-24 13:38:37 -07:00
Stéphane Bidoul 335d61e924
PEP 660: add links to prototypes (GH-1998) 2021-06-22 19:32:18 +01:00
Mariatta Wijaya ed8f8573de
PEP 582: Add Discussions To (#1993) 2021-06-21 16:10:39 -07:00
Philippe F 1f38efd742
Fix typo: swap node and match in the example (#1997) 2021-06-21 13:33:34 -07:00
Stéphane Bidoul f06a8c73d8
Updates to PEP 660 (GH-1978) 2021-06-21 10:57:03 +01:00
Mariatta Wijaya 82cd151074
PEP 517: Fix odd url markup (#1992) 2021-06-17 15:49:29 -07:00
Pablo Galindo d7af407833
PEP 619: Add date for Python 3.10.0b3 2021-06-17 22:31:58 +01:00
Adam Turner b8b64248d0
Sphinx support: Add support for RSS (#1934)
See #2, #1385 for context.

This is the RSS generation part, building on PR #1930. It contains the logic for generating RSS

This was originally in #1385 and #1565, split out for ease of review
2021-06-15 23:22:39 +01:00
Dominic Davis-Foster 35b0cc1a92
PEP 619: Mark 3.10.0b2 as relased. (#1991) 2021-06-13 18:11:32 +01:00
Adam Turner 749c2d9a37
Sphinx support: add PEP 0 generation extension (1932)
* Add PEP 0 parser

* Add PEP 0 writer

* Add PEP 0 generator and authors override

* Add/update build and run

* Simplify `create_index_file`

* Special status handling

* Add constants for PEP related magic strings

* Prefer checking on class

* Add PEP.hide_status, use constants

* Remove comment from 2008 (current method works fine)

* Clarify intent of for-else loop

* Hook in to Sphinx (oops, missed when splitting out this PR)

* Rename AUTHORS.csv for clarity

* Sort and strip spaces

* Prefer `authors_overrides` name

* Add pep_0_errors.py

* Move author_sort_by to writer

* PEP init misc

* Split out Author

* Drop pep_0 prefix

* Pass title length as an argument

* Add constants.py to hold global type / status values

* Capitalise constants

* Capitalise constants

* Update PEP classification algorithm

* Extract static methods to module level

* Add emit_text, emit_pep_row

* Use constants in writer.py

* Sort imports

* Sort constants

* Fix sorting in historical and dead PEPs

* Extract static methods to module level

* Extract static methods to module level (parser.py

* Make Author a NamedTuple

* Fix author duplication bug with NamedTuples

* Revert to old PEP classification algorithm

* Define PEP equality
2021-06-12 18:51:14 +01:00
Steve Dower 0f278396f4
PEP 632: Improve formatting and fix link (#1990) 2021-06-12 08:06:50 -07:00
Bernát Gábor 0bc330a6f1
PEP 662: Editable installs via virtual wheels (#1977) 2021-06-11 12:34:03 -07:00
Adam Turner c69fdbf5e1
Add config option in `build.py` for Sphinx builders (#1988) 2021-06-09 14:02:16 +01:00
Adam Turner ec52afb543
Update to only deploy Sphinx to gh-pages on pushing to `master` (GH-1987) 2021-06-09 01:51:47 +01:00
Adam Turner 0f3bbd9ad9
Sphinx support: add docutils support files (#1931)
See #2, #1385 for context. Superseeds #1566.

This is the docutils parsing, transforms and writing part, building on PR #1930. It contains a pseudo-package, `sphinx_pep_extensions`, which itself contains:

### Docutils parsing:
- `PEPParser` - collates transforms and interfaces with Sphinx core
- `PEPRole` - deals with :PEP:`blah` in RST source

### Docutils transforms:
- `PEPContents` (Creates table of contents without page title)
- `PEPFooter` (Dels with footnotes, link to source, last modified commit)
- `PEPHeaders` (Parses RFC2822 headers)
- `PEPTitle` - Creates document title from PEP headers
- `PEPZero` - Masks email addresses and creates links to PEP numbers from tables in `pep-0000.rst`

### Docutils HTML output:
- `PEPTranslator` - Overrides to the default HTML translator to enable better matching of the current PEP styles
2021-06-09 01:37:55 +01:00
Adam Turner 353379966d
Sphinx support: add Sphinx core files (#1930)
See #2, #1385 for context. Superseeds #1565.

This is the minimal core Sphinx support part, adding a bare minimum of useful things to get Sphinx to build and deploy, whilst not affecting the current build system. There is no theming or custom parsing needed to properly deal with PEPs.

- `build.py` - build script
- `conf.py` - Sphinx configuration
- `Makefile` - new targets for Sphinx
- `.gitignore` - add ignores for `venv` and `package` directories
- `contents.rst` - Sphinx page to discover all PEPs
- `deploy-gh-pages.yaml` - builds and deploys to github pages
- `requirements.txt`
2021-06-09 00:11:26 +01:00
Tal Einat 629a8b44b0
PEP 661: add a "Discussions-To" header (#1986) 2021-06-08 18:07:58 +03:00
Brett Cannon 97bec2f7d6
Add taleinat to CODEOWNERS for PEP 661 2021-06-07 16:26:36 -07:00