-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename to sirocco and release 0.0.0-dev0 (#31)
After discussion in issue #15 on the name we decided to rename the package to `sirocco`. We rename the existing code to sirocco and add a GitHub workflow that publishes a new releases on when pushing a version tag to main.
- Loading branch information
1 parent
5f942f8
commit 52fd82b
Showing
11 changed files
with
57 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This workflow will upload a Python Package using hatch when a release is created | ||
|
||
name: Publish Python Package | ||
|
||
on: | ||
push: | ||
# only pushes to main trigger | ||
branches: [main] | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+* | ||
|
||
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.12' | ||
- name: Install hatch | ||
run: | | ||
pip install --upgrade pip | ||
pip install hatch | ||
- name: Publish package | ||
env: | ||
HATCH_INDEX_AUTH: ${{ secrets.PYPI_API_TOKEN }} | ||
HATCH_INDEX_USER: __token__ | ||
run: | | ||
hatch build | ||
hatch publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ build-backend = "hatchling.build" | |
|
||
[project] | ||
# See https://www.python.org/dev/peps/pep-0621/ | ||
name = 'wcflow' | ||
name = 'sirocco' | ||
dynamic = ["version"] | ||
description = 'WcFlow a library for creating weather and climate workflows.' | ||
description = 'A library for creating weather and climate workflows.' | ||
authors = [ | ||
{name = 'Matthieu Leclair', email = '[email protected]'}, | ||
{name = 'Julian Geiger', email = '[email protected]'}, | ||
|
@@ -22,14 +22,17 @@ classifiers = [ | |
'Topic :: Scientific/Engineering', | ||
'Topic :: Scientific/Engineering :: Atmospheric Science', | ||
] | ||
keywords = ["wc", "workflow"," icon", "aiida", "aiida-workgraph"] | ||
keywords = ["workflow"," icon", "aiida", "aiida-workgraph"] | ||
requires-python = '>=3.12' | ||
dependencies = [ | ||
"isoduration", | ||
"pydantic", | ||
"pydantic-yaml", | ||
"aiida-core>=2.5" | ||
] | ||
[project.urls] | ||
Repository = "https://github.com/C2SM/Sirocco.git" | ||
Changelog = "https://github.com/C2SM/Sirocco/blob/main/CHANGELOG.md" | ||
|
||
[tool.pytest.ini_options] | ||
# Configuration for [pytest](https://docs.pytest.org) | ||
|
@@ -38,7 +41,7 @@ addopts = "--pdbcls=IPython.terminal.debugger:TerminalPdb" | |
[tool.coverage.run] | ||
# Configuration of [coverage.py](https://coverage.readthedocs.io) | ||
# reporting which lines of your plugin are covered by tests | ||
source = ["wcflow"] | ||
source = ["sirocco"] | ||
|
||
[tool.ruff] | ||
include = ["src/*py", "tests/*py"] | ||
|
@@ -52,8 +55,13 @@ ignore = [ | |
|
||
## Hatch configurations | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = [ | ||
"src/sirocco/", | ||
] | ||
|
||
[tool.hatch.version] | ||
path = "src/wcflow/__init__.py" | ||
path = "src/sirocco/__init__.py" | ||
|
||
[tool.hatch.envs.hatch-test] | ||
extra-dependencies = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
__all__ = ["parsing"] | ||
|
||
__version__ = "0.0.1-dev" | ||
__version__ = "0.0.0-dev0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters