guidelinely 1.0.21.dev0__tar.gz → 1.0.23.dev0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- guidelinely-1.0.23.dev0/.github/workflows/ci.yml +81 -0
- guidelinely-1.0.21.dev0/.github/workflows/ci.yml → guidelinely-1.0.23.dev0/.github/workflows/release.yml +16 -37
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/PKG-INFO +1 -1
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/guidelinely/_version.py +3 -3
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/guidelinely.egg-info/PKG-INFO +1 -1
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/guidelinely.egg-info/SOURCES.txt +1 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/.gitignore +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/.pre-commit-config.yaml +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/LICENSE +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/README.md +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/examples/01_basic_metadata.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/examples/02_calculate_single_parameter.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/examples/03_batch_calculations.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/examples/04_groundwater_calculations.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/examples/05_advanced_workflow.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/examples/README.md +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/guidelinely/__init__.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/guidelinely/auth.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/guidelinely/cache.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/guidelinely/client.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/guidelinely/exceptions.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/guidelinely/models.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/guidelinely.egg-info/dependency_links.txt +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/guidelinely.egg-info/requires.txt +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/guidelinely.egg-info/top_level.txt +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/pyproject.toml +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/setup.cfg +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/tests/__init__.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/tests/test_auth.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/tests/test_cache.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/tests/test_client.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/tests/test_edge_cases.py +0 -0
- {guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/tests/test_models.py +0 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
20
|
+
uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: ${{ matrix.python-version }}
|
|
23
|
+
|
|
24
|
+
- name: Cache pip dependencies
|
|
25
|
+
uses: actions/cache@v4
|
|
26
|
+
with:
|
|
27
|
+
path: ~/.cache/pip
|
|
28
|
+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
|
|
29
|
+
restore-keys: |
|
|
30
|
+
${{ runner.os }}-pip-${{ matrix.python-version }}-
|
|
31
|
+
${{ runner.os }}-pip-
|
|
32
|
+
|
|
33
|
+
- name: Install dependencies
|
|
34
|
+
run: |
|
|
35
|
+
python -m pip install --upgrade pip
|
|
36
|
+
pip install -e ".[dev]"
|
|
37
|
+
|
|
38
|
+
- name: Run tests with coverage
|
|
39
|
+
run: |
|
|
40
|
+
pytest --cov=guidelinely --cov-report=xml --cov-report=term-missing
|
|
41
|
+
|
|
42
|
+
- name: Upload coverage to Codecov
|
|
43
|
+
uses: codecov/codecov-action@v4
|
|
44
|
+
with:
|
|
45
|
+
file: ./coverage.xml
|
|
46
|
+
flags: unittests
|
|
47
|
+
name: codecov-umbrella
|
|
48
|
+
fail_ci_if_error: false
|
|
49
|
+
|
|
50
|
+
lint:
|
|
51
|
+
runs-on: ubuntu-latest
|
|
52
|
+
steps:
|
|
53
|
+
- uses: actions/checkout@v4
|
|
54
|
+
|
|
55
|
+
- name: Set up Python
|
|
56
|
+
uses: actions/setup-python@v5
|
|
57
|
+
with:
|
|
58
|
+
python-version: "3.11"
|
|
59
|
+
|
|
60
|
+
- name: Cache pip dependencies
|
|
61
|
+
uses: actions/cache@v4
|
|
62
|
+
with:
|
|
63
|
+
path: ~/.cache/pip
|
|
64
|
+
key: ${{ runner.os }}-pip-lint-${{ hashFiles('**/pyproject.toml') }}
|
|
65
|
+
restore-keys: |
|
|
66
|
+
${{ runner.os }}-pip-lint-
|
|
67
|
+
${{ runner.os }}-pip-
|
|
68
|
+
|
|
69
|
+
- name: Install dependencies
|
|
70
|
+
run: |
|
|
71
|
+
python -m pip install --upgrade pip
|
|
72
|
+
pip install -e ".[dev]"
|
|
73
|
+
|
|
74
|
+
- name: Check formatting with Black
|
|
75
|
+
run: black --check --exclude='_version\.py' guidelinely/ tests/
|
|
76
|
+
|
|
77
|
+
- name: Lint with Ruff
|
|
78
|
+
run: ruff check guidelinely/ tests/
|
|
79
|
+
|
|
80
|
+
- name: Type check with MyPy
|
|
81
|
+
run: mypy guidelinely/
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: Release
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
|
|
6
|
-
tags: [ 'v*' ] # Run on version tags
|
|
7
|
-
pull_request:
|
|
8
|
-
branches: [ main ]
|
|
5
|
+
tags: [ 'v*' ] # Only run on version tags
|
|
9
6
|
|
|
10
7
|
jobs:
|
|
11
8
|
test:
|
|
@@ -16,6 +13,8 @@ jobs:
|
|
|
16
13
|
|
|
17
14
|
steps:
|
|
18
15
|
- uses: actions/checkout@v4
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 0
|
|
19
18
|
|
|
20
19
|
- name: Set up Python ${{ matrix.python-version }}
|
|
21
20
|
uses: actions/setup-python@v5
|
|
@@ -40,14 +39,6 @@ jobs:
|
|
|
40
39
|
run: |
|
|
41
40
|
pytest --cov=guidelinely --cov-report=xml --cov-report=term-missing
|
|
42
41
|
|
|
43
|
-
- name: Upload coverage to Codecov
|
|
44
|
-
uses: codecov/codecov-action@v4
|
|
45
|
-
with:
|
|
46
|
-
file: ./coverage.xml
|
|
47
|
-
flags: unittests
|
|
48
|
-
name: codecov-umbrella
|
|
49
|
-
fail_ci_if_error: false
|
|
50
|
-
|
|
51
42
|
lint:
|
|
52
43
|
runs-on: ubuntu-latest
|
|
53
44
|
steps:
|
|
@@ -81,10 +72,11 @@ jobs:
|
|
|
81
72
|
- name: Type check with MyPy
|
|
82
73
|
run: mypy guidelinely/
|
|
83
74
|
|
|
84
|
-
build:
|
|
75
|
+
build-and-publish:
|
|
85
76
|
runs-on: ubuntu-latest
|
|
86
|
-
|
|
87
|
-
|
|
77
|
+
needs: [test, lint]
|
|
78
|
+
permissions:
|
|
79
|
+
id-token: write # Required for trusted publishing
|
|
88
80
|
steps:
|
|
89
81
|
- uses: actions/checkout@v4
|
|
90
82
|
with:
|
|
@@ -98,7 +90,13 @@ jobs:
|
|
|
98
90
|
- name: Install build dependencies
|
|
99
91
|
run: |
|
|
100
92
|
python -m pip install --upgrade pip
|
|
101
|
-
pip install build
|
|
93
|
+
pip install build setuptools-scm
|
|
94
|
+
|
|
95
|
+
- name: Debug version detection
|
|
96
|
+
run: |
|
|
97
|
+
echo "Git describe: $(git describe --tags)"
|
|
98
|
+
echo "Git tag on HEAD: $(git tag --points-at HEAD)"
|
|
99
|
+
echo "setuptools_scm version: $(python -m setuptools_scm)"
|
|
102
100
|
|
|
103
101
|
- name: Build package
|
|
104
102
|
run: python -m build
|
|
@@ -106,24 +104,5 @@ jobs:
|
|
|
106
104
|
- name: Check build artifacts
|
|
107
105
|
run: ls -la dist/
|
|
108
106
|
|
|
109
|
-
- name: Upload build artifacts
|
|
110
|
-
uses: actions/upload-artifact@v4
|
|
111
|
-
with:
|
|
112
|
-
name: dist
|
|
113
|
-
path: dist/
|
|
114
|
-
|
|
115
|
-
publish:
|
|
116
|
-
runs-on: ubuntu-latest
|
|
117
|
-
needs: [test, lint, build]
|
|
118
|
-
if: startsWith(github.ref, 'refs/tags/v') # Only publish on version tags
|
|
119
|
-
permissions:
|
|
120
|
-
id-token: write # Required for trusted publishing
|
|
121
|
-
steps:
|
|
122
|
-
- name: Download build artifacts
|
|
123
|
-
uses: actions/download-artifact@v4
|
|
124
|
-
with:
|
|
125
|
-
name: dist
|
|
126
|
-
path: dist/
|
|
127
|
-
|
|
128
107
|
- name: Publish to PyPI
|
|
129
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
|
108
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '1.0.
|
|
32
|
-
__version_tuple__ = version_tuple = (1, 0,
|
|
31
|
+
__version__ = version = '1.0.23.dev0'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 0, 23, 'dev0')
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g2ad2f9e0a'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/examples/02_calculate_single_parameter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{guidelinely-1.0.21.dev0 → guidelinely-1.0.23.dev0}/guidelinely.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|