From 362b272430e27f410b0580ff500101724cc2fd52 Mon Sep 17 00:00:00 2001 From: #Einswilli Date: Mon, 6 Apr 2026 17:15:18 +0000 Subject: [PATCH 1/2] Add workflow for PyPI build and publish --- .github/workflows/publish.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..77bf96f --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,36 @@ +name: Build & Publish + +on: + push: + tags: + - 'v*' + +jobs: + build-and-publish: + name: Build and Publish to PyPI + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install build dependencies + run: | + python -m pip install --upgrade pip + pip install build twine + + - name: Build package + run: python -m build + + - name: Check package + run: twine check dist/* + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} From 0488e62d04b18b4f06664690a2609ca51e3f553c Mon Sep 17 00:00:00 2001 From: #Einswilli Date: Mon, 6 Apr 2026 17:16:32 +0000 Subject: [PATCH 2/2] Bump version to 0.1.4 --- fletx/__init__.py | 17 ++++++++--------- pyproject.toml | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/fletx/__init__.py b/fletx/__init__.py index d277320..015cdaa 100644 --- a/fletx/__init__.py +++ b/fletx/__init__.py @@ -5,7 +5,8 @@ from fletx.core.di import DI -__version__ = "0.1.4-rc1" +__version__ = "0.1.4" + #### ## FLETX - DEPENDENCY INJECTION INTERFACE @@ -15,28 +16,26 @@ class FletX: This class provides a simple interface to interact with the Dependency Injection (DI) container. It allows to register, find, delete, and reset instances in the DI container. """ - + @staticmethod def put(instance, tag=None): """Register an instance in the DI container""" return DI.put(instance, tag) - + @staticmethod def find(cls, tag=None): """Retrieve an instance from the DI container""" return DI.find(cls, tag) - + @staticmethod def delete(cls, tag=None): """Delete an instance from the DI container""" return DI.delete(cls, tag) - + @staticmethod def reset(): """Reset the DI container, clearing all registered instances.""" return DI.reset() -__all__ = [ - 'FletX', - '__version__' -] \ No newline at end of file + +__all__ = ["FletX", "__version__"] diff --git a/pyproject.toml b/pyproject.toml index c381c01..0a2fd06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "FletXr" -version = "0.1.4-rc1" +version = "0.1.4" description = "The GetX-inspired Python Framework for Building Reactive, Cross-Platform Apps with Flet" readme = "PYPI.md" license = {file = "LICENSE"}