Skip to content

Commit

Permalink
Fix PyPI publish (#443)
Browse files Browse the repository at this point in the history
* Add kurtosis as metric to evaluate performance of standardization

* Update workflow

* Set for pre-release

* Remove changes from kurtosis

* Remove space

* Update workflow
  • Loading branch information
rhugonnet committed Nov 3, 2023
1 parent 40bb20e commit c636f1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: pypi
name: Publish to PyPI

on:
release:
Expand All @@ -20,19 +20,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -U setuptools wheel build twine --user
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
author = The GlacioHack Team
name = xdem
version = 0.0.15
version = 0.0.16.pre
description = Analysis of digital elevation models (DEMs)
keywords = dem, elevation, geoutils, xarray
long_description = file: README.md
Expand Down

0 comments on commit c636f1a

Please sign in to comment.