Skip to content

Commit b714956

Browse files
authored
Merge pull request #10 from PyO3/include-python3-def
RFC: Include python3.def itself in the Rust source
2 parents 0632645 + 131f4bf commit b714956

File tree

8 files changed

+908
-2454
lines changed

8 files changed

+908
-2454
lines changed

.github/workflows/update.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update stable_abi.txt
1+
name: Update stable_abi.toml
22

33
on:
44
workflow_dispatch:
@@ -8,19 +8,26 @@ on:
88

99
jobs:
1010
update:
11-
name: Update stable_abi.txt
11+
name: Update stable_abi.toml
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
- name: Fetch latest stable_abi.txt
15+
- name: Fetch latest stable_abi.toml
1616
run: |
17-
curl https://raw.githubusercontent.com/python/cpython/main/Misc/stable_abi.txt > Misc/stable_abi.txt
17+
curl https://raw.githubusercontent.com/python/cpython/main/Misc/stable_abi.toml > stable_abi.toml
18+
- name: Install Python TOML parser
19+
run: |
20+
sudo apt-get install --yes python3-pip
21+
pip install tomli
22+
- name: Parse stable_abi.toml to produce python3.def
23+
run: |
24+
./parse-stable-abi.py < stable_abi.toml > src/python3.def
1825
- name: Create Pull Request
1926
uses: peter-evans/create-pull-request@v4
2027
with:
2128
delete-branch: true
2229
add-paths: |
23-
Misc/stable_abi.txt
24-
title: 'Update stable_abi.txt to the latest main'
25-
commit-message: 'chore: Update stable_abi.txt to the latest main'
26-
body: 'Source: https://raw.githubusercontent.com/python/cpython/main/Misc/stable_abi.txt'
30+
src/python3.def
31+
title: 'Update python3.def using stable_abi.toml from the latest main'
32+
commit-message: 'chore: Update python3.def using stable_abi.toml from the latest main'
33+
body: 'Source: https://raw.githubusercontent.com/python/cpython/main/Misc/stable_abi.toml'

LICENSE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Sergey Kvachonok (except file 'Misc/stable_abi.txt', which is
4-
Copyright (c) 2022 Python Software Foundation, see 'Misc/LICENSE' for its license)
3+
Copyright (c) 2022 Sergey Kvachonok, Adam Reichold
54

65
Permission is hereby granted, free of charge, to any person obtaining a copy
76
of this software and associated documentation files (the "Software"), to deal

Misc/LICENSE

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)