Commit Graph

37 Commits

Author SHA1 Message Date
Hugo van Kemenade 85c1106c05
Infra: Lint and test via uv (#4102)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-11-02 21:28:24 +00:00
Hugo van Kemenade 9e0a6c49f4
Meta: Run check-peps.py in pre-commit (#4071)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-10-20 17:26:02 +01:00
Hugo van Kemenade e77956dd49
Infra: Fix Python 3.9 on CI (#3763) 2024-04-23 18:19:48 +03:00
Hugo van Kemenade ed037e66b7
Meta: Update config (#3645) 2024-02-08 18:43:54 +02:00
Hugo van Kemenade 32de30c52e
Infra: Refactor Makefile (#3514) 2023-11-03 01:24:48 -06:00
Hugo van Kemenade fa9f7201c0
Infra: CI: Test Python 3.13 (#3517) 2023-10-30 08:23:14 -07:00
Hugo van Kemenade 2868fe9c84
Lint: Update Ruff config (#3433) 2023-09-10 16:04:40 +01:00
Adam Turner 2afb609499
Infra: Use actions/checkout version 4 (#3422) 2023-09-05 07:08:14 +03:00
Adam Turner 814ceede97
Lint: Add ``check-peps.py`` (#3275)
``check-peps`` codifies the rules in PEP 1 and PEP 12 into a single
place containing all of the PEP-specific checks. These are primarily
header and metadata validation, and ensuring that direct links to
RFCs and PEPs aren't used.

Reviewed-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Reviewed-by: C.A.M. Gerlach <cam.gerlach@gerlach.cam>
2023-09-05 04:44:46 +01:00
Adam Turner 7b86f6deb0
Grant the Render workflow write permissions (#3273) 2023-08-05 12:34:06 +00:00
Adam Turner 2c5152bb40
Update GitHub Actions workflows (#3270) 2023-08-05 13:24:46 +01:00
Hugo van Kemenade 3028f07ad7
Lint: Check spelling on CI but don't fail (#3080)
Check spelling on CI (no fail), fix typo in docs, ignore some others
2023-03-30 19:52:29 +03:00
Hugo van Kemenade 62a0bbe95b
Infra: RTD preview links should be single version (#3035) 2023-03-02 23:41:01 -06:00
Hugo van Kemenade d54d4e66c7
Infra: Automatically edit PRs with link to RTD preview (#3031) 2023-03-01 07:05:31 +02:00
Hugo van Kemenade b173099ac6
Infra: replace feedgen/lxml dependency to test Python 3.12-dev (#2973) 2023-01-21 16:08:38 +02:00
Hugo van Kemenade 55ef1f44f5
Infra: Use consistent 'make html' and 'make dirhtml' (#2968) 2023-01-19 16:39:28 +02:00
Hugo van Kemenade 8af617d2ad
Infra: Test Python 3.11 beta (#2727)
* Bump actions versions

* Test Python 3.11 beta

* Infra: Apply suggestions from code review

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>

* Infra: update JamesIves/github-pages-deploy-action

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>

* Infra: Use v4 of action

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-31 13:34:28 +03:00
Hugo van Kemenade 0f56290a30
Infra: override RTD build commands (#2728) 2022-07-29 16:07:03 +03:00
Hugo van Kemenade 0b0dd6ddd5
Add tests for `pep_sphinx_extensions` (#2545)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-04-26 20:07:20 +01:00
Ee Durbin d85b9f6be5
purge CDN cache on deploy (#2526)
* purge CDN cache on deploy

issues a purge all to the Fastly service that fronts peps.python.org to make new changes appear fast..... lier.

* yaml?
2022-04-14 13:36:47 -04:00
Adam Turner 7a514d35bb
Infra: Remove artifact upload (#2417) 2022-03-11 17:02:08 -06:00
Hugo van Kemenade 719347adcf
Infra: Upload rendered PEPs as GitHub artifact (#2410) 2022-03-11 01:24:29 +00:00
Adam Turner 4bdabc6000
The PEP Rendering System is dead; long live the PEP Rendering System (#2399) 2022-03-10 10:27:31 +02:00
CAM Gerlach e43f567e93
Upgrade lint infra & add a few more conservative built-in checks (#2286) 2022-01-31 18:49:58 -08:00
Adam Turner fb046e16c6
Only restrict to deploying on pushes to `master` in the python/peps repo (#1996) 2022-01-21 11:37:08 +00:00
Nikita Sobolev d9e63ccf42
Allow manually running GitHub Actions workflows and use consistent file extension (#2215)
* Rename deploy-gh-pages.yaml to deploy-gh-pages.yml
* Enable workflow_dispatch trigger to allow manually running
2022-01-20 01:48:26 -06:00
Adam Turner 3d60b84e35
PEP 676: Implementation updates (#2208) 2022-01-09 10:07:03 -08:00
Hugo van Kemenade e47f9242f8
Rename master to main (#2178) 2021-12-03 06:59:24 -08:00
Ee Durbin b6e3845f4c
Update to deploy from main (#2176) 2021-12-02 13:29:46 -05:00
Ofek Lev 58629bc305
Support code highlighting (#1577) 2021-11-23 15:30:48 -08:00
Hugo van Kemenade e61ca95fce
Add PEP abstract to the RSS feed (#1679)
* Flake8 fixes

* Use first paragraph of abstract as 'description', and PEP author as 'author'

* Check RSS generation runs with no error
2021-07-12 13:55:16 +02:00
Adam Turner 3b34e282fd
Sphinx support: fix last modified dates for PEPs (#2024) 2021-07-04 18:55:04 +01: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
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 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
Hugo van Kemenade 58718c543e
Lint RST on GitHub Actions and fix PEP 646 (#1802) 2021-02-08 07:20:51 -08:00
Hugo van Kemenade 2f4ec80cf2
Build and deploy HTML on GitHub Actions (#1669) 2020-10-23 10:32:17 -07:00