Skip to content

Commit a732751

Browse files
authored
Merge pull request #2969 from vinta/feature/relaunch-website
Relaunch website with custom build system
2 parents 1f7757f + 7eb9b11 commit a732751

File tree

19 files changed

+5297
-56
lines changed

19 files changed

+5297
-56
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy Website
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v6
22+
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v7
25+
with:
26+
enable-cache: true
27+
28+
- name: Install dependencies
29+
run: uv sync --no-dev
30+
31+
- name: Build site
32+
run: uv run python website/build.py
33+
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v4
36+
with:
37+
path: website/output/
38+
39+
deploy:
40+
needs: build
41+
runs-on: ubuntu-latest
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
# macOS
12
.DS_Store
23

4+
# python
5+
.venv/
36
*.py[co]
47

5-
docs/index.md
6-
site/
8+
# website
9+
website/output/
710

8-
# PyCharm IDE
9-
.idea
11+
# claude code
12+
.claude/skills/
13+
.superpowers/
14+
.gstack/
15+
skills-lock.json

Makefile

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
-include .env
2+
export
3+
14
site_install:
2-
pip install -r requirements.txt
5+
uv sync --no-dev
36

4-
site_link:
5-
ln -sf $(CURDIR)/README.md $(CURDIR)/docs/index.md
7+
site_fetch_stats:
8+
uv run python website/fetch_github_stars.py
69

7-
site_preview: site_link
8-
mkdocs serve
10+
site_build:
11+
uv run python website/build.py
912

10-
site_build: site_link
11-
mkdocs build
13+
site_preview: site_build
14+
python -m http.server -d website/output/ 8000
1215

13-
site_deploy: site_link
14-
mkdocs gh-deploy --clean
16+
site_deploy: site_build
17+
@echo "Deploy via GitHub Actions (push to master)"

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Awesome Python
22

3-
An opinionated list of awesome Python frameworks, libraries, software and resources.
3+
An opinionated list of awesome Python frameworks, libraries, tools, software and resources.
44

55
> The **#10 most-starred repo on GitHub**. Put your product where Python developers discover tools. [Become a sponsor](SPONSORSHIP.md).
66
@@ -87,9 +87,6 @@ An opinionated list of awesome Python frameworks, libraries, software and resour
8787
- [Web Frameworks](#web-frameworks)
8888
- [WebSocket](#websocket)
8989
- [WSGI Servers](#wsgi-servers)
90-
- [Resources](#resources)
91-
- [Newsletters](#newsletters)
92-
- [Podcasts](#podcasts)
9390

9491
---
9592

@@ -534,7 +531,6 @@ _Libraries for Python version and virtual environment management._
534531

535532
- [pyenv](https://github.com/pyenv/pyenv) - Simple Python version management.
536533
- [pyenv-win](https://github.com/pyenv-win/pyenv-win) - Pyenv for Windows, Simple Python version management.
537-
- [uv](https://github.com/astral-sh/uv) - An extremely fast Python package and project manager, written in Rust.
538534
- [virtualenv](https://github.com/pypa/virtualenv) - A tool to create isolated Python environments.
539535

540536
## File Manipulation

docs/CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/css/extra.css

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

mkdocs.yml

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

pyproject.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[project]
2+
name = "awesome-python"
3+
version = "0.1.0"
4+
description = "An opinionated list of awesome Python frameworks, libraries, software and resources."
5+
requires-python = ">=3.13"
6+
dependencies = [
7+
"httpx==0.28.1",
8+
"jinja2==3.1.6",
9+
"markdown==3.10.2",
10+
]
11+
12+
[dependency-groups]
13+
dev = [
14+
"pytest==9.0.2",
15+
"ruff==0.15.6",
16+
]
17+
18+
[tool.pytest.ini_options]
19+
testpaths = ["website/tests"]
20+
21+
[tool.ruff]
22+
target-version = "py313"
23+
line-length = 100

requirements.txt

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

uv.lock

Lines changed: 258 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)