diff --git a/.github/workflows/on-release-main.yml b/.github/workflows/on-release-main.yml new file mode 100644 index 0000000..3d4f311 --- /dev/null +++ b/.github/workflows/on-release-main.yml @@ -0,0 +1,27 @@ +name: release-main + +on: + release: + types: [published] + branches: [main] + +jobs: + publish: + runs-on: ubuntu-latest + environment: release + permissions: + # IMPORTANT: required for trusted publishing to PyPI + id-token: write + needs: [set-version] + steps: + - name: Check out + uses: actions/checkout@v4 + + - name: Set up the environment + uses: ./.github/actions/setup-python-env + + - name: Build package + run: uvx --from build pyproject-build --installer uv + + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/pyproject.toml b/pyproject.toml index d65dcc4..24b2155 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,6 @@ dependencies = [ "pandas", "toolz", "xarray>=0.19", - "coverage>=7.6.7", ] classifiers = [ "License :: OSI Approved :: Apache Software License", @@ -35,9 +34,6 @@ Homepage = "https://github.com/opendatacube/odc-loader/" [project.optional-dependencies] botocore = ["botocore"] -# [project.scripts] -# odc-loader = "odc_loader:main" - [build-system] requires = ["setuptools>=69", "setuptools-scm"] build-backend = "setuptools.build_meta" diff --git a/uv.lock b/uv.lock index 535acb1..8ac3f1e 100644 --- a/uv.lock +++ b/uv.lock @@ -394,7 +394,6 @@ version = "0.0.0" source = { editable = "." } dependencies = [ { name = "affine" }, - { name = "coverage" }, { name = "dask", extra = ["array"] }, { name = "numpy" }, { name = "odc-geo" }, @@ -421,7 +420,6 @@ dev = [ requires-dist = [ { name = "affine" }, { name = "botocore", marker = "extra == 'botocore'" }, - { name = "coverage", specifier = ">=7.6.7" }, { name = "dask", extras = ["array"] }, { name = "numpy", specifier = ">=1.20.0" }, { name = "odc-geo", specifier = ">=0.4.7" },