-
Notifications
You must be signed in to change notification settings - Fork 4
Migrate Pelican setup to Python 3.14 + uv #233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,9 +2,35 @@ | |||||
|
|
||||||
| Website for the GNU/Linux Users Group of la Laguna (Grupo de Usuarios GNU/Linux de la Laguna) | ||||||
|
|
||||||
| [http://www.gulag.org.mx/](http://www.gulag.org.mx/) | ||||||
|
|
||||||
| ## Participation Guides for HacktoberFest 2022 | ||||||
| [http://www.gulag.org.mx/](http://www.gulag.org.mx/) | ||||||
|
|
||||||
| ## Local development | ||||||
|
|
||||||
| ### 1) Install uv | ||||||
|
|
||||||
| ```bash | ||||||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||||||
| ``` | ||||||
|
|
||||||
| Alternative installers are available at: https://docs.astral.sh/uv/getting-started/installation/ | ||||||
|
|
||||||
| ### 2) Install repository dependencies | ||||||
|
|
||||||
| ```bash | ||||||
| uv sync --frozen | ||||||
| ``` | ||||||
|
|
||||||
| ### 3) Run Pelican commands | ||||||
|
|
||||||
| ```bash | ||||||
| # build the site | ||||||
| uv run pelican content -o output -s pelicanconf.py | ||||||
|
|
||||||
| # run local development server with autoreload | ||||||
| uv run pelican -l -r | ||||||
| ``` | ||||||
|
|
||||||
| ## Participation Guides for HacktoberFest 2022 | ||||||
|
|
||||||
| Our guides about how to contribute to this `hacktoberfest` in this repository. | ||||||
|
|
||||||
|
|
@@ -20,7 +46,8 @@ Our guides about how to contribute to this `hacktoberfest` in this repository. | |||||
|
|
||||||
| - Having a GitHub account and Git installed in your device. | ||||||
| - Use your favorite text editor. | ||||||
| - Have Python 3.8+ installed in your device. | ||||||
| - Have Python 3.14+ installed in your device. | ||||||
| - Have uv installed in your device. | ||||||
|
|
||||||
| Follow these steps to contribute to this repository. | ||||||
|
|
||||||
|
|
@@ -40,10 +67,10 @@ git clone https://github.com/GULAG/gulag.github.io.git | |||||
| cd gulag.github.io | ||||||
| ``` | ||||||
|
|
||||||
| 3. Install the libraries found in `requirements.txt` | ||||||
| 3. Install the libraries | ||||||
|
|
||||||
| ```bash | ||||||
| pip install -r requirements.txt | ||||||
| uv sync --frozen | ||||||
| ``` | ||||||
|
|
||||||
| 4. Create a branch with the date and the name of the article. | ||||||
|
|
@@ -75,10 +102,10 @@ If your article has images, create a folder with the same name as your article a | |||||
|
|
||||||
| ```bash | ||||||
| # build the site | ||||||
| pelican content -o output -s pelicanconf.py | ||||||
| uv run pelican content -o output -s pelicanconf.py | ||||||
|
|
||||||
| # run the site in local server | ||||||
| pelican -l -r | ||||||
| uv run pelican -l -r | ||||||
|
|
||||||
| #press ctrl+c to exit the local server | ||||||
|
||||||
| #press ctrl+c to exit the local server | |
| # press ctrl+c to exit the local server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| [project] | ||
| name = "gulag-blog" | ||
| version = "0.1.0" | ||
| description = "Pelican site for GULAG" | ||
| requires-python = ">=3.14" | ||
| dependencies = [ | ||
| "ghp-import", | ||
| "markdown", | ||
| "pelican", | ||
| "typogrify", | ||
| ] | ||
|
|
||
| [tool.uv] | ||
| required-version = ">=0.5.0" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow pushes back to the repo (
git push -f origin master). To make that reliable across org/repo settings, explicitly set job/workflowpermissions: contents: write(otherwiseGITHUB_TOKENis often read-only by default and the push can fail).