Skip to content

Commit

Permalink
Update version in pyproj and Dockerfile and github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Mancini committed Jan 30, 2024
1 parent d83cf9e commit 3305607
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-push-docker_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
run: echo "TAG=$(date +'%Y.%m.%d.%H.%M')" >> $GITHUB_ENV
- uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.11
- name: Install WHEEL tool
run: pip install wheel
- name: Build WHEEL file
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-push-docker_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: 3.11
- name: Install WHEEL tool
run: pip install wheel
- name: Build WHEEL file
Expand All @@ -32,4 +32,4 @@ jobs:
file: ./Dockerfile
push: true
tags: |
${{ vars.GEOKUBE_REGISTRY }}/geokube:${{ env.TAG }}
${{ vars.GEOKUBE_REGISTRY }}/geokube:${{ env.RELEASE_TAG }}
4 changes: 2 additions & 2 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:

jobs:
build-and-publish:
name: Build Kit4DL and publish to PyPI
name: Build geokube package and publish to PyPI
strategy:
matrix:
python-version: ["3.9"]
python-version: ["3.11"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
environment: release
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/testpypi_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ jobs:
name: Build geokube and publish to TestPyPI
strategy:
matrix:
python-version: ["3.9"]
python-version: ["3.11"]
os: [ubuntu-latest]
# environment:
# name: testpypi
# url: https://test.pypi.org/p/geokube
permissions:
id-token: write
runs-on: ${{ matrix.os }}
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ RUN conda clean -afy \
&& find /opt/conda/ -follow -type f -name '*.pyc' -delete \
&& find /opt/conda/ -follow -type f -name '*.js.map' -delete \
&& find /opt/conda/lib/python*/site-packages/bokeh/server/static -follow -type f -name '*.js' ! -name '*.min.js' -delete
COPY dist/geokube-0.2a0-py3-none-any.whl /
RUN pip install /geokube-0.2a0-py3-none-any.whl
RUN rm /geokube-0.2a0-py3-none-any.whl
COPY dist/geokube-0.3.0a0-py3-none-any.whl /
RUN pip install /geokube-0.3.0a0-py3-none-any.whl
RUN rm /geokube-0.3.0a0-py3-none-any.whl
22 changes: 5 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ build-backend = "flit_core.buildapi"

[project]
name = "geokube"
version = "0.3a0"
version = "0.3.0a0"
authors = [
{name = "geokube Contributors", email = "[email protected]"}
]
maintainers = [
{name = "geokube Contributors", email = "[email protected]"}
]
description = "Python package for Earth Science Data Analysis"
description = "a Python package based on xarray for GeoScience Data Analysis"
keywords = ["Earth science", "data analysis"]
license = {file = "LICENSE"}
readme = "README.md"
Expand All @@ -35,7 +35,7 @@ classifiers = [
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Earth Science",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.11"
dependencies = [
Expand All @@ -49,26 +49,14 @@ dependencies = [
"pyproj>=3.4",
"shapely>=2.0",
"xarray>=2023.6.0",
"pyarrow>=12.0.1"
]
# dynamic = ["version", "description", "optional-dependencies"]

[project.urls]
Homepage = "https://github.com/geokube/geokube"
# Documentation = "https://readthedocs.org"
Repository = "https://github.com/opengeokube/geokube.git"
Documentation = "https://geokube.github.io"
Repository = "https://github.com/CMCC-Foundation/geokube.git"
# Changelog = "https://github.com/me/spam/blob/master/CHANGELOG.md"

[project.optional-dependencies]
geo_science = ["gsw>=3.6", "shapely>=2.0"]
regridding = ["xesmf"]
#sentinel_data = ["rasterio>=1.3.8.post2", "rioxarray>=0.15"]

# [project.scripts]
# spam-cli = "spam:main_cli"

# [project.gui-scripts]
# spam-gui = "spam:main_gui"

# [project.entry-points."spam.magical"]
# tomatoes = "spam:main_tomatoes"

0 comments on commit 3305607

Please sign in to comment.