Skip to content

Commit

Permalink
rainfall_runoff_identify by Wang, Yang and bmi by Wang, Jingyi, but b…
Browse files Browse the repository at this point in the history
…oth have some bugs to be fixed

* add some files

* add wangjingyi's code

* add requirements.txt

* add dmca_esr.py and its test to util directory

* fix mistake in test_session_division.py

* fix mistake in test_session_division.py

* change pypi distribute workflow

* update workflow and add user

* update workflow

* update setup.py to add long_description

* update setup.py to add long_description

* Update setup.py

change pypi project name

* add bim package for env

* delete xaj dir

* refactor xajbim-related funcs, but not fully tested yet

* delete some unused lines in xaj

* add files from cookiecutter template

* Create publish-to-pypi-token.yml

* Update setup.py

---------

Co-authored-by: forestbat <[email protected]>
  • Loading branch information
OuyangWenyu and forestbat authored Feb 12, 2024
1 parent eee8839 commit 56bc492
Show file tree
Hide file tree
Showing 12 changed files with 18,686 additions and 104 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish-to-pypi-token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish Python distributions to PyPI

on:
push:
workflow_dispatch:

jobs:
build-n-publish:
name: Build and publish Python distributions to PyPI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.HYDRO_XAJ_TOKEN }}
70 changes: 0 additions & 70 deletions conf/config.yaml

This file was deleted.

9 changes: 9 additions & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ dependencies:
- spotpy=1.5.14
- seaborn
- tqdm
- yaml
- bmipy
# for dev
- pyarrow
- hydroerr
- xarray
Expand All @@ -25,8 +28,14 @@ dependencies:
- sphinx
- pytest
- black
- flake8
# pip
- pip
- pip:
- setuptools
- wheel
- twine
- bump2version
- hydrodataset
# config for deep learning
- hydra-core
Expand Down
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ dependencies:
- spotpy=1.5.14
- seaborn
- tqdm
- pytest
- yaml
- bmipy
- pip
- pip:
- hydrodataset
1 change: 0 additions & 1 deletion hydromodel/calibrate/calibrate_ga_xaj_bmi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Calibrate XAJ model using DEAP"""

import os
import pickle
import random
Expand Down
Empty file added hydromodel/example/__init__.py
Empty file.
Loading

0 comments on commit 56bc492

Please sign in to comment.