From 8c874408ea40a7daad115ccadf7ff78feba57bb6 Mon Sep 17 00:00:00 2001 From: AAriam <80158628+AAriam@users.noreply.github.com> Date: Sun, 26 Jan 2025 00:22:05 +0100 Subject: [PATCH] update package path --- .github/workflows/_pkg_publish.yaml | 10 ++++++---- pyproject.toml => pkg/pyproject.toml | 0 requirements.txt => pkg/requirements.txt | 0 {src => pkg/src}/exceptionman/__init__.py | 0 {src => pkg/src}/exceptionman/_traceback.py | 0 {src => pkg/src}/exceptionman/hook.py | 0 {src => pkg/src}/exceptionman/reporter_exception.py | 0 7 files changed, 6 insertions(+), 4 deletions(-) rename pyproject.toml => pkg/pyproject.toml (100%) rename requirements.txt => pkg/requirements.txt (100%) rename {src => pkg/src}/exceptionman/__init__.py (100%) rename {src => pkg/src}/exceptionman/_traceback.py (100%) rename {src => pkg/src}/exceptionman/hook.py (100%) rename {src => pkg/src}/exceptionman/reporter_exception.py (100%) diff --git a/.github/workflows/_pkg_publish.yaml b/.github/workflows/_pkg_publish.yaml index 50dbd55..e73fc6e 100644 --- a/.github/workflows/_pkg_publish.yaml +++ b/.github/workflows/_pkg_publish.yaml @@ -7,7 +7,7 @@ on: workflow_dispatch: push: paths: - - 'pyproject.toml' + - 'pkg/pyproject.toml' jobs: @@ -23,13 +23,14 @@ jobs: - name: 'Build sdist' run: | + cd pkg pipx run build --sdist --wheel --outdir dist/ - name: 'Upload package' uses: pypa/gh-action-pypi-publish@release/v1 # https://github.com/marketplace/actions/pypi-publish with: - packages-dir: dist + packages-dir: pkg/dist verify-metadata: false verbose: true print-hash: true @@ -47,15 +48,16 @@ jobs: - name: 'Build sdist' run: | + cd pkg pipx run build --sdist --wheel --outdir dist/ - name: 'Upload package' uses: pypa/gh-action-pypi-publish@release/v1 # https://github.com/marketplace/actions/pypi-publish with: - packages-dir: dist + packages-dir: pkg/dist repository-url: https://test.pypi.org/legacy/ verify-metadata: false verbose: true print-hash: true - skip-existing: false \ No newline at end of file + skip-existing: false diff --git a/pyproject.toml b/pkg/pyproject.toml similarity index 100% rename from pyproject.toml rename to pkg/pyproject.toml diff --git a/requirements.txt b/pkg/requirements.txt similarity index 100% rename from requirements.txt rename to pkg/requirements.txt diff --git a/src/exceptionman/__init__.py b/pkg/src/exceptionman/__init__.py similarity index 100% rename from src/exceptionman/__init__.py rename to pkg/src/exceptionman/__init__.py diff --git a/src/exceptionman/_traceback.py b/pkg/src/exceptionman/_traceback.py similarity index 100% rename from src/exceptionman/_traceback.py rename to pkg/src/exceptionman/_traceback.py diff --git a/src/exceptionman/hook.py b/pkg/src/exceptionman/hook.py similarity index 100% rename from src/exceptionman/hook.py rename to pkg/src/exceptionman/hook.py diff --git a/src/exceptionman/reporter_exception.py b/pkg/src/exceptionman/reporter_exception.py similarity index 100% rename from src/exceptionman/reporter_exception.py rename to pkg/src/exceptionman/reporter_exception.py