2 Commits

2 changed files with 15 additions and 11 deletions
+14 -9
View File
@@ -151,7 +151,11 @@ username = herel
password = YOUR_GITEA_PERSONAL_ACCESS_TOKEN password = YOUR_GITEA_PERSONAL_ACCESS_TOKEN
``` ```
### Using the Build and Upload Scripts You can use the template provided in `GITEA_PYPI_CONFIG_TEMPLATE.txt` as a starting point.
### Using the Build and Upload Scripts (Development Only)
These scripts are intended for development purposes only and are not installed with the package. They should only be used by developers working on the project.
#### Option 1: Using the shell script #### Option 1: Using the shell script
@@ -171,13 +175,6 @@ uv run scripts/build_and_upload.py
make upload make upload
``` ```
#### Option 4: Using the installed command
After installing the package in development mode:
```bash
uv pip install -e .
build-and-upload
```
### Manual Build and Upload ### Manual Build and Upload
@@ -190,9 +187,17 @@ If you prefer to build and upload manually:
2. Upload to Gitea: 2. Upload to Gitea:
```bash ```bash
twine upload --repository gitea dist/* uv run twine upload --repository gitea dist/*
``` ```
### Package Availability
The package is published to Gitea's PyPI registry under the user namespace. In Gitea, packages are associated with users or organizations rather than specific repositories.
You can view and manage your packages at: https://gitea.parano.ch/herel/-/packages
Note that while the package is associated with the "herel" user account (same as the repository owner), it is not directly linked to this specific repository in Gitea's package registry system. This is how Gitea's package management system works - packages belong to owners (users or organizations) rather than individual repositories.
### Installing from Gitea PyPI ### Installing from Gitea PyPI
To install a package from Gitea's registry: To install a package from Gitea's registry:
+1 -2
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "paroles-net-scraper" name = "paroles-net-scraper"
version = "0.3.1" version = "0.3.2"
description = "A Python package to fetch song lyrics from paroles.net" description = "A Python package to fetch song lyrics from paroles.net"
authors = [ authors = [
{name = "Rene Luria", email = "rene@luria.ch"} {name = "Rene Luria", email = "rene@luria.ch"}
@@ -24,7 +24,6 @@ dev = [
[project.scripts] [project.scripts]
paroles-scraper = "paroles_net_scraper.cli:main" paroles-scraper = "paroles_net_scraper.cli:main"
build-and-upload = "scripts.build_and_upload:main"
[project.urls] [project.urls]
Homepage = "https://gitea.parano.ch/herel/paroles-net-scraper" Homepage = "https://gitea.parano.ch/herel/paroles-net-scraper"