diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f9b7e35..fb2b6a4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,27 +11,27 @@ on: - published jobs: - build_sdist: - name: Build SDist + build_dist: + name: Build Dist runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: submodules: true - - name: Build SDist - run: pipx run build --sdist + - name: Build Dist + run: pipx run build - name: Check Metadata run: pipx run twine check --strict dist/* - uses: actions/upload-artifact@v4 with: - path: dist/*.tar.gz + path: dist/ upload_all: name: Upload if release - needs: [build_sdist] + needs: [build_dist] runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' environment: @@ -48,7 +48,7 @@ jobs: - uses: actions/download-artifact@v4 with: name: artifact - path: dist + path: dist/ - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@v1.12.4 \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in index 18f0ce8..2ef859c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,3 @@ include LICENSE.md recursive-include pyulog/sql * +recursive-exclude test *.ulg \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 67143a2..69dfa89 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools", "setuptools-scm>=8"] +requires = ["setuptools>=77.0.3", "setuptools-scm>=8"] build-backend = "setuptools.build_meta" [project] @@ -53,6 +53,3 @@ Repository = "https://github.com/PX4/pyulog" test = ['pytest', 'ddt'] [tool.setuptools_scm] - -[tool.setuptools.packages] -find = {} \ No newline at end of file diff --git a/setup.py b/setup.py index 2a5d184..00ccb5e 100644 --- a/setup.py +++ b/setup.py @@ -17,5 +17,4 @@ long_description="\n".join(DOCLINES), long_description_content_type='text/x-rst', platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], - include_package_data=True, )