Commit Graph

8991 Commits

Author SHA1 Message Date
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
Andre Delfino 818bd7e848
Fix reference implementation (#1981) 2021-06-07 16:24:15 -07:00
Julien Palard be369d9066
pep-101: /3/ symlink is handled by the build server now. (#1985) 2021-06-07 18:20:51 +02:00
Julien Palard 2c4b01e7a7
Release: drop 'make suspicious' from release process. (#1982)
As it's no longer mandatory to merge, some false positives can sneak in.

It's a burden for RMs, and it's slowly been handled in:

https://bugs.python.org/issue42238
2021-06-07 10:57:11 +02:00
Tal Einat 910d060988
PEP 661: fix links and tweak some wording (#1980) 2021-06-06 11:32:34 +03:00
Tal Einat b368a5a4be
PEP 661: Sentinel Values (#1979) 2021-06-06 10:27:23 +03:00
Sergey B Kirpichev 5d30e8b563
PEP 515: fix links (#1973) 2021-05-31 13:20:37 -07:00
Tzu-ping Chung 9873d12f27
PEP 658: Served metadata may be non-static (#1972) 2021-05-31 13:19:40 -07:00
Mark Shannon 5ba83633f6
Make PEP 659 draft. (#1971) 2021-05-26 12:21:31 +01:00
Mark Shannon 43821ac28b
Withdraw PEP 611. (#1970) 2021-05-25 18:33:53 +01:00
Mark Shannon 3800569551
Make PEP 626 final. (#1969) 2021-05-25 07:18:35 -07:00
Brett Cannon aa56470ad7
Add Mark to CODEOWNERS for PEP 659 2021-05-20 12:00:23 -07:00
Stéphane Bidoul b875991e6a
PEP 660: build_wheel_for_editable (#1944) 2021-05-20 11:58:22 -07:00