Skip to content

Commit efc4213

Browse files
committed
feat: Include python3.def itself in the Rust source
All parsing and processing is done in the CI so that the crate itself includes the python3.def file itself instead of creating it on the fly.
1 parent 0632645 commit efc4213

File tree

7 files changed

+902
-2446
lines changed

7 files changed

+902
-2446
lines changed

.github/workflows/update.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- name: Fetch latest stable_abi.txt
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.txt > stable_abi.txt
18+
- name: Parse stable_abi.txt to produce python3.def
19+
run: |
20+
./parse-stable-abi.py < stable_abi.txt > src/python3.def
1821
- name: Create Pull Request
1922
uses: peter-evans/create-pull-request@v4
2023
with:
2124
delete-branch: true
2225
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+
src/python3.def
27+
title: 'Update python3.def using stable_abi.txt from the latest main'
28+
commit-message: 'chore: Update python3.def using stable_abi.txt from the latest main'
2629
body: 'Source: https://raw.githubusercontent.com/python/cpython/main/Misc/stable_abi.txt'

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)