7 Commits
Author SHA1 Message Date
brian 85ff5b34b2 Update pyproject.toml
Publish Python Package / build-and-publish (push) Successful in 13s
Python Code Quality / python-code-quality (push) Successful in 11s
Python Test / python-test (push) Successful in 13s
2026-01-08 14:15:56 +01:00
brian a930b84d8c Merge pull request 'removed wrong flag' (#4) from fix-pypi-publishing2 into main
Python Code Quality / python-code-quality (push) Successful in 10s
Python Test / python-test (push) Successful in 12s
Publish Python Package / build-and-publish (push) Failing after 9s
Reviewed-on: #4
2026-01-08 14:09:56 +01:00
Brian Bjarke Jensen e098acd41c removed wrong flag
Python Code Quality / python-code-quality (pull_request) Successful in 10s
Python Test / python-test (pull_request) Successful in 13s
2026-01-08 14:05:43 +01:00
brian d14084309e Merge pull request 'added pypi publish functionality' (#2) from add-publish-to-pypi-ci-step into main
Python Code Quality / python-code-quality (push) Successful in 11s
Python Test / python-test (push) Successful in 12s
Publish Python Package / build-and-publish (push) Failing after 10s
Reviewed-on: #2
2026-01-08 13:52:51 +01:00
Brian Bjarke Jensen 736e51dc14 added pypi publish functionality
Python Code Quality / python-code-quality (pull_request) Successful in 11s
Python Test / python-test (pull_request) Successful in 12s
2026-01-08 13:43:21 +01:00
brian c36f057138 Merge pull request 'added script to publish python package' (#1) from add-publish-CI-pipeline into main
Python Code Quality / python-code-quality (push) Successful in 10s
Python Test / python-test (push) Successful in 12s
Publish Python Package / build-and-publish (push) Failing after 9s
Reviewed-on: #1
2026-01-08 08:42:11 +01:00
Brian Bjarke Jensen b520e4fdb2 added script to publish python package
Python Code Quality / python-code-quality (pull_request) Successful in 11s
Python Test / python-test (pull_request) Successful in 13s
2026-01-08 08:40:23 +01:00
2 changed files with 51 additions and 1 deletions
+41
View File
@@ -0,0 +1,41 @@
# Gitea Actions workflow to build and publish Python package to Gitea Package Registry
name: Publish Python Package
on:
push:
tags:
- "v*.*.*"
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ vars.PYTHON_VERSION }}
- name: Install uv
run: pip install uv
- name: Build package
run: |
uv sync --no-dev
uv build
- name: Publish to Gitea Package Registry
env:
UV_PUBLISH_TOKEN: ${{ secrets.CI_RUNNER_TOKEN }}
UV_PUBLISH_URL: ${{ vars.REPOSITORY_URL }}
run: |
uv publish
- name: Publish to PyPI
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
uv publish
+10 -1
View File
@@ -1,16 +1,25 @@
[project] [project]
name = "python-encrypt-code" name = "python-encrypt-code"
version = "0.1.0" version = "0.1.1"
description = "Python-based command line tool to encrypt and decrypt Python modules." description = "Python-based command line tool to encrypt and decrypt Python modules."
authors = [ authors = [
{ name = "Brian Bjarke Jensen", email = "[email protected]" } { name = "Brian Bjarke Jensen", email = "[email protected]" }
] ]
readme = "README.md" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
license = "MIT"
license-files = ["LICENSE"]
dependencies = [ dependencies = [
"cryptography>=46.0.3", "cryptography>=46.0.3",
] ]
[project.urls]
source = "https://gitea.gt-proj.com/brian/python-encrypt-code"
[project.scripts] [project.scripts]
python-encrypt-code = "python_encrypt_code.__main__:main" python-encrypt-code = "python_encrypt_code.__main__:main"