Commit graph

60 commits

Author SHA1 Message Date
Vinta Chen
ab65612f35
build: bump markupsafe to 3.0.4 for CPython 3.15 wheels
uv picked CPython 3.15.0 on CI runners and the locked markupsafe 3.0.3 has no 3.15 wheel under no-build, so CI and the nightly website deploy failed at uv sync.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-10-10 18:49:22 +08:00
Goldensloth420
ee5aeb6b94 Remove broken Conda workflow 2026-10-10 01:20:58 -05:00
Goldensloth420
4f13e5c77b Fix CI dependency setup 2026-10-10 01:20:51 -05:00
Goldensloth420
764acfcb80
Merge branch 'vinta:master' into 2Master 2026-10-10 00:03:09 -05:00
Vinta Chen
3643d6d657
fix: derive sitemap lastmod from git history instead of build date
Every sitemap URL got the build date as lastmod, so all pages claimed a change on each daily deploy, and the sponsorship page used file mtime, which on CI's fresh checkout is also build time.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-10-02 19:48:50 +08:00
Vinta Chen
79dc9a3c25
build: bump astral-sh/setup-uv to v10.2.0 pinned by SHA
setup-uv@v7 was three majors behind the latest release.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-10-02 15:02:10 +08:00
Vinta Chen
c8f93931e5
build: bump cache, deploy-pages, upload-pages-artifact actions
actions/cache@v4, deploy-pages@v4, and upload-pages-artifact@v4 (which pins a Node 20 upload-artifact SHA) target the deprecated Node.js 20 runtime, so GitHub forced them onto Node 24 with a warning on every deploy run.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-10-02 14:56:09 +08:00
Vinta Chen
4a62a22e90
add FUNDING 2026-09-29 22:38:29 +08:00
Vinta Chen
6ff59a63c6
chore: bump actions/checkout from v6 to v7
v7 blocks checking out fork PR heads under pull_request_target and
workflow_run. Neither workflow here uses those triggers, so the only
effect is staying current with the other repos.
2026-08-21 22:25:12 +08:00
Vinta Chen
cc804b1de2
feat: add Downloads/Month column to website table
Sourced from website/data/pypi_downloads.tsv the same way
github_stars.json feeds the stars column. The new sortable column
sits between GitHub Stars and Last Commit on the homepage and
category pages, formatted with thousands separators like stars, with
an em dash when no PyPI data exists. Rows are matched by normalized
README display name; Built-in entries never show counts since
same-named PyPI packages are stdlib backports (e.g. the asyncio
package).

Below 960px the column hides and the count moves into the expand
row, mirroring the existing Last Commit treatment. main.js gains the
downloads sort branch and URL param.

The deploy workflow fetches the TSV via the new
make fetch_pypi_downloads target with a daily actions/cache
fallback, mirroring the stars fetch, but non-fatal: the column
degrades to dashes when the fetch fails, unlike stars which the
build requires.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-16 17:52:04 +08:00
Vinta Chen
68b15a4644 docs: rephrase obvious-choice criterion in PR template
Reuses CONTRIBUTING.md's plainer 'would name when asked' phrasing instead of 'unprompted', per maintainer feedback that 'unprompted' didn't sound right.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-16 16:13:43 +08:00
Vinta Chen
cccfa183a9 docs: rewrite PR template to match shortlist rules
The old template used a stars-based tier system (Industry Standard /
Rising Star / Hidden Gem) that contradicted the current CONTRIBUTING.md,
which judges entries by obvious-choice/challenger tiers, favors PyPI
downloads over stars, and requires Displacement when a use case is at
its cap. The new template reflects those rules and adds a checklist
item pointing contributors to CONTRIBUTING.md.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-16 16:11:00 +08:00
Vinta Chen
0bf9522e5d
chore: add uv supply-chain hardening and enforce locked installs
- Set exclude-newer to 3 days and only-binary/:all: in pyproject.toml to
  limit dependency freshness window and block source builds
- Switch uv sync to --locked in Makefile, ci.yml, and deploy-website.yml
  to enforce the lockfile rather than re-resolving on each install
- Regenerate uv.lock with exclude-newer snapshot recorded

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-22 02:21:48 +08:00
Vinta Chen
a2303c9389
ci: skip deploy job on forks
Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-03 16:16:08 +08:00
Vinta Chen
c6004c971f
ci: skip tests on non-scheduled deploy runs
Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-03 16:03:35 +08:00
Vinta Chen
20bb5cca81
docs: fix entry format in PR template to use - instead of *
Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-03 16:03:33 +08:00
Vinta Chen
b7b8eb02d1
ci: always run tests and simplify branches syntax in deploy workflow
Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-03 16:00:21 +08:00
Vinta Chen
54864ab37a
ci: merge build/deploy jobs and cache stars by date
Collapse the two-job workflow into one, set the github-pages
environment on the single job, and key the star-data cache by
date (YYYY-MM-DD) so it is shared across same-day runs instead
of being per-run-id. Also skip tests on scheduled runs and
validate JSON before serving it.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-03 15:55:46 +08:00
Vinta Chen
32acf942d9
ci: run tests before building and deploying website
Catches parser regressions before any deployment artifact is produced.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 01:32:28 +08:00
Vinta Chen
957d685ff4
ci: run fetch-stars step on every workflow trigger
Removed the 'if: github.event_name == schedule' guard so the step also
runs on manual dispatches and push-triggered deploys, not only on the
nightly schedule.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-18 22:55:29 +08:00
Vinta Chen
0d9dfb2713
ci: consolidate star fetch into deploy workflow using Actions cache
Replace the separate fetch-github-stars.yml workflow (which committed
star data back to git) with an inline fetch step in deploy-website.yml.
Star data is now stored in Actions cache between runs, eliminating the
workflow_run trigger chain and the need to track github_stars.json in
the repository.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-18 22:44:29 +08:00
Vinta Chen
3c3f371791
fix: use canonical GitHub Actions bot email with numeric ID
The generic email 'github-actions[bot]@users.noreply.github.com' does not
match GitHub's actual bot account. Using the numeric-prefixed form
'41898282+github-actions[bot]@users.noreply.github.com' ensures commits
made by the workflow are correctly attributed to the bot account.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-18 22:28:25 +08:00
Vinta Chen
bfed6a5c81
ci: trigger deploy after fetch-github-stars workflow succeeds
Adds a workflow_run trigger so the site is rebuilt whenever fresh
star data lands on master, in addition to the existing push trigger.
The build job guard ensures it only runs on direct pushes or when
the upstream workflow concluded successfully.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-18 22:18:10 +08:00
Vinta Chen
bbe145cb36
ci: add workflow to fetch and commit GitHub stars daily
Runs on a nightly schedule, installs deps with uv, calls make
fetch_github_stars, and pushes an update commit only when the
star data file actually changed.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-18 22:18:04 +08:00
Vinta Chen
b6d1bf9307
ci: use uv dependency groups and Makefile target for deploy workflow
Switches install step from --no-dev to --group build for explicit
dependency group selection, and replaces the bare python invocation
with `make build` to use the canonical build entrypoint.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-18 21:33:57 +08:00
Vinta Chen
c5caa5a5e1
ci: hardcode deployment URL to https://awesome-python.com
The deploy-pages action outputs http:// despite HTTPS being enforced.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 14:03:50 +08:00
Vinta Chen
2fe0f5c2bd
ci: bump actions/checkout to v6 and upload-pages-artifact to v4
Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-18 13:57:26 +08:00
Vinta Chen
177183d9bd
add custom website build system
Replaces MkDocs with a bespoke Python site generator using Jinja2 templates
and Markdown. Adds uv for dependency management, GitHub Actions workflow for
deployment, and Makefile targets for local development (fetch_stars, build,
preview, deploy).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-18 13:48:49 +08:00
Vinta Chen
852202a1a4
Remove Claude PR review GitHub Actions workflow
Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-05 01:16:30 +08:00
Vinta Chen
42db7e6559
ci: disable automatic PR trigger for Claude review workflow
Switch from pull_request event to workflow_dispatch only, commenting
out the pull_request trigger. This allows manual invocation while
preventing automatic runs on every PR.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-10 12:04:01 +08:00
Padraic Slattery
97831e1078 docs: Update outdated GitHub Actions version 2026-01-14 17:13:12 +01:00
Vinta Chen
2b274538e7
Improve PR template with project section and clarified checklist
Add dedicated Project section at top for contributors to specify
project name and URL upfront. Clarify checklist item from "One link
per Pull Request" to "One project per PR" for better consistency
with PR title format guideline.

🤖 Generated with Claude Code (https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-12 17:30:10 +08:00
Vinta Chen
a504dd569f
Clarify PR template checklist wording
Update description guideline from "no mention of Python" to "concise
and short" for clarity. Adjust Rising Star formatting for consistency.

🤖 Generated with Claude Code (https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-11 23:04:41 +08:00
Vinta Chen
e858779e03
fix: quote if condition to fix YAML parsing error
The colon in 'DECISION: REJECT' was causing YAML parsing issues.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 14:32:51 +08:00
Vinta Chen
dbb805c624
feat: add structured decision format and auto-close for rejected PRs
Enhance the Claude PR review workflow with:
- Remove redundant criteria mention (already in CONTRIBUTING.md)
- Add file access restrictions to prevent unnecessary file reads
- Require structured DECISION output format for automation
- Auto-close rejected PRs with explanatory comment

🤖 Generated with Claude Code (https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 16:46:33 +08:00
Vinta Chen
3ae2cdfc7f
chore: remove GitHub funding configuration
GitHub Sponsors funding configuration is no longer needed.

🤖 Generated with Claude Code (https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 16:35:59 +08:00
Vinta Chen
e05cd240c9
docs: clarify id-token permission comment in workflow
Update comment to better reflect the actual purpose of the id-token
permission for Claude GitHub app functionality.

🤖 Generated with Claude Code (https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 12:38:19 +08:00
Vinta Chen
43046d9848
ci: update workflow trigger label to 'claude review'
Change label name from 'claude-review' to 'claude review' for consistency
with GitHub's standard label naming convention using spaces.

🤖 Generated with Claude Code (https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 12:38:09 +08:00
Vinta Chen
7d215c37a5
ci: add id-token write permission for OIDC authentication
Enable OIDC authentication in Claude PR review workflow by adding
id-token write permission.

🤖 Generated with Claude Code (https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 12:14:04 +08:00
Vinta Chen
e5d4d4f2b7
ci: remove Claude mention workflow
Removes the generic Claude mention workflow in favor of more focused,
context-aware workflows already in place.

🤖 Generated with Claude Code (https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 12:08:39 +08:00
Vinta Chen
a5146453f9
docs: remove manual alphabetical sorting requirement
Alphabetical ordering will be handled by automation (sort.py in CI),
removing this manual burden from contributors. Updated PR template
with structured checklist aligned to acceptance criteria.

🤖 Generated with Claude Code (https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 12:07:11 +08:00
Vinta Chen
f9a0444b5e
chore: remove redundant issue templates
Both templates only redirect users to open PRs instead, which is
unnecessary overhead. Contributors can directly open PRs without
going through issue template selection.

🤖 Generated with Claude Code (https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 12:07:04 +08:00
Vinta Chen
e65cc4917f
ci: add focused Claude workflows with context-aware prompts
Add claude-mention.yml for @claude mentions in issues/PRs and
claude-pr-review.yml for automatic PR reviews.

Key improvements:
- claude-mention: Triggers on @claude with project-specific prompt
- claude-pr-review: Auto-reviews PRs from new contributors with CONTRIBUTING.md criteria
- Both workflows: Restricted permissions (read-only contents, no merge capability)

🤖 Generated with Claude Code (https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 12:03:05 +08:00
Vinta Chen
e803fd3e48
ci: remove generic Claude workflows
Remove claude.yml and claude-code-review.yml in preparation for more
focused workflow separation.

🤖 Generated with Claude Code (https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 12:02:57 +08:00
Vinta Chen
65eba38143
ci: add Claude Code GitHub Actions workflows
Add two workflow configurations for AI-assisted development:
- claude-code-review.yml: Automatic PR reviews on new/updated PRs
- claude.yml: Interactive Claude assistant via @claude mentions

These workflows integrate with Claude Code to automate PR reviews
and provide on-demand AI assistance in issues and PR comments.

🤖 Generated with Claude Code (https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 11:23:58 +08:00
Goldensloth420
f0d1b2849f
Add GitHub Actions workflow for Python package with Conda 2025-11-12 17:12:12 -06:00
Vinta Chen
8bfda02829
Update FUNDING.yml 2024-06-17 01:45:05 +08:00
Vinta Chen
279487124f cleanup 2020-10-31 04:50:00 +08:00
Vinta Chen
1a4006d13d
Create FUNDING.yml 2020-10-31 04:48:39 +08:00
Vinta Chen
b747d2b884 change the wording 2020-04-08 20:22:05 +08:00