From ddab774cf6dea49e8680979ae554de428b2d127b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 7 Jun 2025 19:44:52 +0200 Subject: [PATCH 1/5] project/fixes --- pyproject.toml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c0e8f0e..b1d9eb3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,16 +14,14 @@ classifiers = [ 'License :: OSI Approved :: GNU Affero General Public License v3', 'Operating System :: OS Independent', ] -dependencies = [ - 'rwx', -] +dependencies = ['rwx'] description = 'Operating File System Profile' dynamic = ['version'] keywords = [] -license-files = { paths = ['license.md'] } +license-files = ['license.md'] name = 'ofsp' readme = 'readme.md' -requires-python = '>= 3.10' +requires-python = '>= 3.11' [project.scripts] ofsp = 'ofsp:main' From 3e751ac9e164d0cae7757df4d867689886bf8665 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 7 Jun 2025 19:47:53 +0200 Subject: [PATCH 2/5] " --- pyproject.toml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b1d9eb3..ecbb82d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,32 +1,32 @@ [build-system] -requires = ['hatchling'] -build-backend = 'hatchling.build' +requires = ["hatchling"] +build-backend = "hatchling.build" [project] authors = [ - { name = 'Marc Beninca', email = 'git@marc.beninca.link' }, + { name = "Marc Beninca", email = "git@marc.beninca.link" }, ] maintainers = [ - { name = 'Marc Beninca', email = 'git@marc.beninca.link' }, + { name = "Marc Beninca", email = "git@marc.beninca.link" }, ] classifiers = [ - 'Programming Language :: Python :: 3', - 'License :: OSI Approved :: GNU Affero General Public License v3', - 'Operating System :: OS Independent', + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GNU Affero General Public License v3", + "Operating System :: OS Independent", ] -dependencies = ['rwx'] -description = 'Operating File System Profile' -dynamic = ['version'] +dependencies = ["rwx"] +description = "Operating File System Profile" +dynamic = ["version"] keywords = [] -license-files = ['license.md'] -name = 'ofsp' -readme = 'readme.md' -requires-python = '>= 3.11' +license-files = ["license.md"] +name = "ofsp" +readme = "readme.md" +requires-python = ">= 3.11" [project.scripts] -ofsp = 'ofsp:main' +ofsp = "ofsp:main" [project.urls] [tool.hatch.version] -path = 'ofsp/__init__.py' +path = "ofsp/__init__.py" From 1eed2fdebae1a9a2c2c2291d2f0db52810629586 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 7 Jun 2025 19:50:07 +0200 Subject: [PATCH 3/5] version --- ofsp/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofsp/__init__.py b/ofsp/__init__.py index 1c6d234..5ac25e1 100644 --- a/ofsp/__init__.py +++ b/ofsp/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.0.0' +__version__ = '0.0.1' import sys From af9842aa9e7352e20947ca8108f0560bd97824db Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 7 Jun 2025 23:26:06 +0200 Subject: [PATCH 4/5] render --- render.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 render.py diff --git a/render.py b/render.py new file mode 100755 index 0000000..3956833 --- /dev/null +++ b/render.py @@ -0,0 +1,11 @@ +#! /usr/bin/env python3 +"""Dummy build.""" + +from pathlib import Path + +from rwx.fs import make_directory, write + +if __name__ == "__main__": + out = Path(__file__).parent / "out" / "web" + make_directory(out) + write(out / "index.html", "ofsp.rwx.work") From 4958d93f6cdfcc29cc503290fcfd02b2e819d081 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 7 Jun 2025 23:32:14 +0200 Subject: [PATCH 5/5] workflow --- .forgejo/workflows/main.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .forgejo/workflows/main.yaml diff --git a/.forgejo/workflows/main.yaml b/.forgejo/workflows/main.yaml new file mode 100644 index 0000000..a7c809e --- /dev/null +++ b/.forgejo/workflows/main.yaml @@ -0,0 +1,18 @@ +on: [push] +jobs: + job: + runs-on: ubuntu-latest + container: + image: ${{vars.DOCKER}}debian:bookworm + steps: + - name: spcd + env: + SPCD: ${{vars.SPCD}} + SPCD_SSH_HOSTS: ${{vars.SPCD_SSH_HOSTS}} + SPCD_SSH_KEY: ${{secrets.SPCD_SSH_KEY}} + SPCD_TXT_LOCALE: ${{vars.SPCD_TXT_LOCALE}} + run: ${{vars.SPCD}} + + - run: spcd-build-project + - run: spcd-browse-workspace + - run: spcd-synchronize