Skip to content

Commit

Permalink
Release 0.1.1 (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
theroggy authored Aug 8, 2023
1 parent a15a391 commit 58a9806
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 9 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release_tag_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will upload a Python Package using Twine when a release tag is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

name: Build and upload cropclassification to pypi

on:
push:
tags:
- "v*"

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN_GITHUB_CROPCLASSIFICATION }}
69 changes: 69 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Tests

on:
push:
branches: [ main, v0.** ]
pull_request:
branches: [ main, v0.** ]
schedule:
- cron: "0 0 * * *"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Linting:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected]

Test:
needs: Linting
name: ${{ matrix.os }}, ${{ matrix.env }}
timeout-minutes: 30
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
dev: [false]
env:
- ci/envs/38-latest-conda-forge.yaml
- ci/envs/39-latest-conda-forge.yaml
- ci/envs/310-latest-conda-forge.yaml
- ci/envs/311-latest-conda-forge.yaml
include:
- env: ci/envs/38-minimal.yaml
os: ubuntu-latest
dev: false
- env: ci/envs/39-latest-conda-forge.yaml
os: macos-latest
dev: false
- env: ci/envs/39-latest-conda-forge.yaml
os: windows-latest
dev: false

steps:
- uses: actions/checkout@v3

- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ${{ matrix.env }}

- name: Test
run: |
pytest --color=yes --cov=geofileops --cov-append --cov-report term-missing --cov-report xml tests/
- uses: codecov/codecov-action@v3

15 changes: 7 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# CHANGELOG

## 0.1.0 (???)
## 0.1.1 (2023-08-08)

### Improvements

- Clip s2 and s1 timeseries values to one to avoid outliers > 1 (#47)
- Change default time_dimension_reducer to mean for both s1 and s2 (#48)

## 0.1.0
### Improvements

- Add support to use openeo for image retrieval/calculation (#36)
- Improve performance of zonal_stats_bulk (#38)
- Use black to comply to pep8 + minor general improvements (#13)
- Upgrade all dependencies (#12)
- Add support for pandas 2.0 (#21)

### Bugs fixed

-

### Deprecations and compatibility notes

2 changes: 1 addition & 1 deletion cropclassification/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0a2
0.1.1

0 comments on commit 58a9806

Please sign in to comment.