Skip to content

Commit e801a6d

Browse files
committed
[JTH] add new code to actions
1 parent e70d96f commit e801a6d

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.github/workflows/build-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111

1212
steps:
1313
- name: Checkout Repository
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Set Up Python
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: "3.12"
2020

@@ -34,10 +34,10 @@ jobs:
3434
run: python -m build
3535

3636
- name: Publish to PyPI
37-
run: twine upload dist/*
37+
run: python -m twine upload dist/* --verbose
3838
env:
3939
TWINE_USERNAME: __token__
40-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
40+
TWINE_PASSWORD: "${{ secrets.PYPI_TOKEN }}"
4141

4242
- name: Build Conda Package
4343
run: |

.github/workflows/python-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ on:
1010
jobs:
1111
python-tests:
1212
runs-on: ubuntu-latest
13-
13+
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717

1818
- name: Set up Miniconda
1919
uses: conda-incubator/setup-miniconda@v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ share/python-wheels/
2626
*.egg
2727
MANIFEST
2828
conda-recipe/
29+
bluemath_tk/_version.py
2930

3031
# PyInstaller
3132
# Usually these files are written by a python script from a template

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,10 @@ Homepage = "https://github.com/GeoOcean/BlueMath_tk"
5858
Documentation = "https://geoocean.github.io/BlueMath_tk/"
5959
Issues = "https://github.com/GeoOcean/BlueMath_tk/issues"
6060

61+
[tool.setuptools]
62+
63+
packages = ["bluemath_tk"]
64+
6165
[tool.setuptools_scm]
6266
version_file = "bluemath_tk/_version.py"
67+
local_scheme = "no-local-version"

0 commit comments

Comments
 (0)