Commit graph

323 commits

Author SHA1 Message Date
Hugo van Kemenade 806d7c98a5
gh-101100: Docs: Check Sphinx warnings and fail if improved (#106460) 2023-07-22 08:12:43 +00:00
Erlend E. Aasland 1654916c48
Add Erlend as CODEOWNER for Argument Clinic docs (#106840) 2023-07-17 22:10:03 +00:00
Jason R. Coombs 03185f0c15
gh-106752: Move zipfile._path into its own package (#106753)
* gh-106752: Move zipfile._path into its own package so it may have supplementary behavior.

* Add blurb
2023-07-14 20:40:46 +00:00
Sviatoslav Sydorenko e7cd55753b
Introduce a gate/check GHA job (#97533)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-07-06 18:06:18 +03:00
Alex Waygood eeb5c63179
Add some codeowners for Tools/clinic/ (#106430)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2023-07-04 19:45:32 +00:00
Nikita Sobolev c5dacc8fa0
gh-106217: Truncate the issue body size of new-bugs-announce-notifier (#106423) 2023-07-04 21:20:00 +03:00
Nikita Sobolev 5950e7dbfc
gh-106217: Truncate the issue body size of new-bugs-announce-notifier (#106329)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-07-02 17:15:28 +03:00
Victor Stinner 46d77610fc
gh-106316: Remove pytime.h header file (#106317)
Remove the "cpython/pytime.h" header file: it only contained private
functions. Move functions to the internal pycore_time.h header file.

Move tests from _testcapi to _testinternalcapi. Rename also test
methods to have the same name than tested C functions.

No longer export these functions:

* _PyTime_Add()
* _PyTime_As100Nanoseconds()
* _PyTime_FromMicrosecondsClamp()
* _PyTime_FromTimespec()
* _PyTime_FromTimeval()
* _PyTime_GetPerfCounterWithInfo()
* _PyTime_MulDiv()
2023-07-01 22:27:18 +00:00
dependabot[bot] d3abc9b516
build(deps): bump mheap/github-action-required-labels from 4 to 5 (#106306)
Bumps [mheap/github-action-required-labels](https://github.com/mheap/github-action-required-labels) from 4 to 5.
- [Release notes](https://github.com/mheap/github-action-required-labels/releases)
- [Commits](https://github.com/mheap/github-action-required-labels/compare/v4...v5)

---
updated-dependencies:
- dependency-name: mheap/github-action-required-labels
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-01 13:23:57 +03:00
Sviatoslav Sydorenko eaa6702280
Use CSV-separated outputs @ get-changed-files @ CI (#105151)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-06-21 13:42:59 +03:00
Hugo van Kemenade bc07c8f096
Docs: move sphinx-lint to pre-commit (#105750) 2023-06-18 11:52:05 +00:00
Erlend E. Aasland 34e93d3998
CI: Bump macOS build to use OpenSSL v3.0 (#105538) 2023-06-16 21:00:37 +02:00
Erlend E. Aasland a5f23d4110
CI: Configure macOS build as per updated devguide recommendations (#105533) 2023-06-08 22:26:03 +00:00
Petr Viktorin 49fe2e4af7
Add myself as codeowner for Limited API/Stable ABI, remove from *import* (GH-105349)
This should set up more relevant notifications for me.
2023-06-06 09:33:40 +00:00
Erlend E. Aasland 8a8ebf2e3d
GH-89886: Bump to GNU Autoconf v2.71 (#104925)
Co-authored-by: Christian Heimes <christian@python.org>
2023-06-01 23:44:25 +02:00
Gregory P. Smith ede89af605
gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (#105174)
Upgrade builds to OpenSSL 1.1.1u.

This OpenSSL version addresses a pile if less-urgent CVEs since 1.1.1t.

The Mac/BuildScript/build-installer.py was already updated.

Also updates _ssl_data_111.h from OpenSSL 1.1.1u, _ssl_data_300.h from 3.0.9, and adds a new _ssl_data_31.h file from 3.1.1 along with the ssl.c code to use it.

Manual edits to the _ssl_data_300.h file prevent it from removing any existing definitions in case those exist in some peoples builds and were important (avoiding regressions during backporting).

backports of this prior to 3.12 will not include the openssl 3.1 header.
2023-06-01 09:42:18 -07:00
Hugo van Kemenade 4c770617c0
CI: Temporarily skip paths with spaces to avoid error (#105110)
* CI: Temporarily skip paths with spaces to avoid "Error: One of your files includes a space"

* Dummy NEWS file to test the action. Will be deleted before merge.

* Revert "Dummy NEWS file to test the action. Will be deleted before merge."

This reverts commit 05cd028fd4.
2023-05-30 23:01:58 +03:00
Sviatoslav Sydorenko 88d14da76f
Convert doc.yml workflow to be reusable (#103914)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-05-28 16:21:29 +01:00
Itamar Ostricher 949f0f5bb0
CI: Precompute hash for config cache key in check_source job (#105008) 2023-05-27 03:43:50 -06:00
Steve Dower 569b2b8d61
Improves the Windows MSI test run on PR (GH-104929)
Correctly set the exit code when builds fail
Also build docs as part of the test
2023-05-25 16:17:12 +01:00
Hugo van Kemenade 1080c4386d
CI: Cache config.cache across runs to speed up build (#104800) 2023-05-25 14:09:57 +03:00
Pablo Galindo Salgado 988c1f68ce
Add codeowners for the tokenizer module (#104753) 2023-05-23 00:27:10 +01:00
T. Wouters 4194d8f2c4
Add the 3.12 branch to the github workflows. (#104768) 2023-05-23 01:16:28 +02:00
Zac Hatfield-Dodds 014dd301b5
gh-86275: improve Hypothesis configuration for CI and local runs (#104468) 2023-05-21 05:52:29 -06:00
Jelle Zijlstra febcc6ccfb
CODEOWNERS: Assign new PEP 695 files to myself (#104551) 2023-05-16 08:48:52 -07:00
Alex Waygood 9d41f83c58
gh-104050: Run mypy on clinic.py in CI (#104421)
* Add basic mypy workflow to CI
* Make the type check pass

---------

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-05-15 08:49:28 +00:00
Paul Ganssle 590d7a527d
GH-86275: Run hypothesis tests in parallel (#104427)
Run hypothesis tests in parallel
2023-05-12 16:23:08 +00:00
Paul Ganssle d50c37d8ad
GH-86275: Implementation of hypothesis stubs for property-based tests, with zoneinfo tests (#22863)
These are stubs to be used for adding hypothesis (https://hypothesis.readthedocs.io/en/latest/) tests to the standard library.

When the tests are run in an environment where `hypothesis` and its various dependencies are not installed, the stubs will turn any tests with examples into simple parameterized tests and any tests without examples are skipped.

It also adds hypothesis tests for the `zoneinfo` module, and a Github Actions workflow to run the hypothesis tests as a non-required CI job.

The full hypothesis interface is not stubbed out — missing stubs can be added as necessary.

Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
2023-05-12 08:35:53 -04:00
Sebastian Pipping 41aff464ce
require-pr-label.yml: Add missing "permissions:" (#104309) 2023-05-09 13:29:00 +03:00
Hugo van Kemenade d513ddee94
Trim trailing whitespace and test on CI (#104275)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-05-08 17:03:52 +03:00
Hugo van Kemenade accb417c33
Replace Netlify with Read the Docs build previews (#103843)
Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-04-29 23:02:03 -06:00
Irit Katriel 72adaba6dd
gh-87092: update CODEOWNERS for split of compile.c to 3 files (#103941) 2023-04-27 19:35:53 +00:00
Adam Turner 44b5c21f41
GH-103903: Test the minimum Sphinx version in CI (#103904) 2023-04-27 19:27:38 +01:00
Hugo van Kemenade 842daa57cf
gh-103884: Docs CI: Only attempt nit-picky PR annotations for PRs (#103889) 2023-04-26 20:20:19 +00:00
Carol Willing 1461a22f91
Add willingc to CODEOWNERS for asyncio (#103885) 2023-04-26 17:22:52 +00:00
Dong-hee Na 8330580800
gh-103726: Set up gcc-10 for ASAN (gh-103728)
<!--
Thanks for your contribution!
Please read this comment in its entirety. It's quite important.

# Pull Request title

It should be in the following format:

```
gh-NNNNN: Summary of the changes made
```

Where: gh-NNNNN refers to the GitHub issue number.

Most PRs will require an issue number. Trivial changes, like fixing a
typo, do not need an issue.

# Backport Pull Request title

If this is a backport PR (PR made against branches other than `main`),
please ensure that the PR title is in the following format:

```
[X.Y] <title from the original PR> (GH-NNNN)
```

Where: [X.Y] is the branch name, e.g. [3.6].

GH-NNNN refers to the PR number from `main`.

-->


<!-- gh-issue-number: gh-103726 -->
* Issue: gh-103726
<!-- /gh-issue-number -->
2023-04-25 12:13:36 +00:00
Łukasz Langa b51da991e2
Also fail DO-NOT-MERGE when "awaiting changes" or "awaiting change review" present on PR (#103807)
"awaiting changes" means somebody put a review that requested changes.

"awaiting change review" means that the PR author published changes
after a red review and then requested a re-review.
2023-04-25 01:49:50 +02:00
Pradyun Gedam ece20dba12
gh-95299: Stop installing setuptools as a part of ensurepip and venv (#101039)
Remove the bundled setuptools wheel from ensurepip, and stop installing setuptools in environments created by venv.

Co-Authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2023-04-17 23:43:34 -05:00
Ezio Melotti 76933df10a
Remove expert-* from project-updater GH workflow (#103579) 2023-04-17 06:26:22 +03:00
Nikita Sobolev be8903eb9d
gh-103180: Add CI timeouts to all GitHub Actions jobs (#103437) 2023-04-14 12:01:10 +03:00
Nikita Sobolev 7f3c106503
gh-103326: Remove Python/importlib.h (GH-103331)
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-04-12 11:27:14 -07:00
dependabot[bot] 5d4afc45b9
build(deps): bump actions/stale from 7 to 8 (#103169)
Bumps [actions/stale](https://github.com/actions/stale) from 7 to 8.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v7...v8)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-09 13:42:43 +05:30
Hugo van Kemenade c330b4a3e7
Add hugovk as a .github code owner (GH-103394)
Automerge-Triggered-By: GH:hugovk
2023-04-09 00:43:01 -07:00
Hugo van Kemenade 090e26ea80
CI: Do not allow merge if labelled DO-NOT-MERGE (#103337)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-04-09 09:39:03 +03:00
Hugo van Kemenade f192a558f5
gh-101100: Fix Sphinx warning in gc.rst and refactor docs clean list (#103116)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-03-30 21:03:50 +03:00
Hugo van Kemenade 87adc63d66
gh-101100: Test only Doc/ files in nit-picky mode (#103019)
gh-101100: Filter only Doc/ files
2023-03-25 09:15:02 +02:00
Hugo van Kemenade 6a1c49a717
gh-101100: Test docs in nit-picky mode (#102513)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2023-03-24 13:23:35 +02:00
Eric Snow 1ff81c0cb6
gh-81057: Add a CI Check for New Unsupported C Global Variables (gh-102506)
This will keep us from adding new unsupported (i.e. non-const) C global variables, which would break interpreter isolation.

FYI, historically it is very uncommon for new global variables to get added. Furthermore, it is rare for new code to break the c-analyzer. So the check should almost always pass unnoticed.

Note that I've removed test_check_c_globals. A test wasn't a great fit conceptually and was super slow on debug builds. A CI check is a better fit.

This also resolves gh-100237.

https://github.com/python/cpython/issues/81057
2023-03-14 10:05:54 -06:00
Ee Durbin e1a90ec75c
Migrate to new PSF mailgun account (#102284)
Our legacy mailgun account is associated with a parent rackspace account that I am trying to decomission.

The necessary secret has been added to the GitHub Actions Secrets already, so this is ready to go on approval.
2023-02-28 08:23:39 -05:00
Erlend E. Aasland e07b304bb0
gh-101981: Consolidate macOS configure steps in CI (GH-102131)
Automerge-Triggered-By: GH:erlend-aasland
2023-02-23 07:02:23 -08:00