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/src/retryit/__init__.py b/pkg/src/retryit/__init__.py similarity index 100% rename from src/retryit/__init__.py rename to pkg/src/retryit/__init__.py diff --git a/src/retryit/decorator.py b/pkg/src/retryit/decorator.py similarity index 100% rename from src/retryit/decorator.py rename to pkg/src/retryit/decorator.py diff --git a/src/retryit/exception.py b/pkg/src/retryit/exception.py similarity index 100% rename from src/retryit/exception.py rename to pkg/src/retryit/exception.py diff --git a/src/retryit/exception_handler.py b/pkg/src/retryit/exception_handler.py similarity index 100% rename from src/retryit/exception_handler.py rename to pkg/src/retryit/exception_handler.py diff --git a/src/retryit/logger.py b/pkg/src/retryit/logger.py similarity index 100% rename from src/retryit/logger.py rename to pkg/src/retryit/logger.py diff --git a/src/retryit/sleeper.py b/pkg/src/retryit/sleeper.py similarity index 100% rename from src/retryit/sleeper.py rename to pkg/src/retryit/sleeper.py