Skip to content

Commit

Permalink
check wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
changliao1025 committed May 11, 2023
1 parent 32b7a5a commit fd3bf73
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 32 deletions.
30 changes: 6 additions & 24 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,10 @@ on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python setup.py build_external
jobs:

deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

Expand All @@ -47,13 +27,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
python -m pip install setuptools wheel twine
- name: Build package
- name: Build external package
run: python setup.py build_external

- name: Build source distribution
run: python setup.py sdist
run: |
python setup.py sdist bdist_wheel
python -m twine upload dist/*
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
6 changes: 2 additions & 4 deletions meta.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package:
name: "hexwatershed"
version: "0.2.20"
version: "0.2.21"

source:
git_rev: v0.2.20
git_rev: v0.2.21
git_url: https://github.com/changliao1025/pyhexwatershed

build:
Expand Down Expand Up @@ -32,11 +32,9 @@ requirements:
- cmake
- make
- python
- packaging
- setuptool
run:
- python
- packaging
- numpy
- matplotlib
- gdal
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.2.20
current_version = 0.2.21
commit = True
tag = True

Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
import os
import subprocess
import shutil
from setuptools import setup, find_packages, Command
from setuptools import setup, Command

NAME = "hexwatershed"
DESCRIPTION = \
"A mesh-independent flow direction model for hydrologic models"
AUTHOR = "Chang Liao"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/changliao1025/pyhexwatershed"
VERSION = "0.2.20"
VERSION = "0.2.21"
REQUIRES_PYTHON = ">=3.8.0"
KEYWORDS = "hexwatershed hexagon"

Expand Down Expand Up @@ -46,7 +46,6 @@
( "external/hexwatershed/src/json/" , ["external/hexwatershed/src/json/*.h", "external/hexwatershed/src/json/*.cpp"] )
]


HERE = os.path.abspath(os.path.dirname(__file__))
HERE = os.path.expandvars(HERE)
# Check if the expanded path exists
Expand Down

0 comments on commit fd3bf73

Please sign in to comment.