Skip to content

Commit 8dd74d6

Browse files
authored
Merge pull request #30 from 15r10nk/readme-update
feat: update sponsors and automate cog:update
2 parents edaa52d + c0a3af6 commit 8dd74d6

3 files changed

Lines changed: 69 additions & 0 deletions

File tree

.github/workflows/cog.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Weekly Cog Update
2+
3+
on:
4+
schedule:
5+
- cron: 0 8 * * 5 # Every Friday at 08:00 UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
update-cog:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.11'
21+
22+
- name: Install Hatch
23+
run: pip install hatch
24+
25+
- name: Run cog update
26+
run: hatch run cog:update
27+
28+
- name: Create Pull Request
29+
uses: peter-evans/create-pull-request@v6
30+
with:
31+
commit-message: 'chore: weekly cog update'
32+
title: 'chore: weekly cog update'
33+
body: Automated cog update via scheduled workflow.
34+
branch: chore/weekly-cog-update
35+
delete-branch: true
36+
reviewers: 15r10nk

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,35 @@ find_issue()
100100
* https://github.com/python/cpython/issues/124746
101101
* https://github.com/python/cpython/issues/124871
102102

103+
#### 3.14
104+
105+
* https://github.com/python/cpython/issues/138558
106+
* https://github.com/python/cpython/issues/138479
107+
* https://github.com/python/cpython/issues/138349
108+
* https://github.com/python/cpython/issues/132479
109+
110+
<!--[[[cog
111+
import requests,cog
112+
113+
url = "https://raw.githubusercontent.com/15r10nk/sponsors/refs/heads/main/sponsors_readme.md"
114+
response = requests.get(url)
115+
response.raise_for_status() # Raise an exception for bad status codes
116+
cog.out(response.text)
117+
]]]-->
118+
## Sponsors
119+
120+
I would like to thank my sponsors. Without them, I would not be able to invest so much time in my projects.
121+
122+
### Silver sponsor 🥈
123+
124+
<p align="center">
125+
<a href="https://pydantic.dev/logfire">
126+
<img src="https://pydantic.dev/assets/for-external/pydantic_logfire_logo_endorsed_lithium_rgb.svg" alt="logfire" width="300"/>
127+
</a>
128+
</p>
129+
<!--[[[end]]]-->
130+
131+
103132
## Todo:
104133

105134
* [ ] refactor the existing code

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ extra-dependencies = [
6565
[tool.hatch.envs.types.scripts]
6666
check = "mypy --install-types --non-interactive {args:pysource_codegen tests}"
6767

68+
[tool.hatch.envs.cog]
69+
dependencies=["cogapp","lxml","requests"]
70+
scripts.update="cog -r *.md"
71+
6872
[tool.coverage.run]
6973
source_pkgs = ["pysource_codegen", "tests"]
7074
branch = true

0 commit comments

Comments
 (0)