guidelinely 1.0.20.dev0__tar.gz → 1.0.22.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.
Files changed (33) hide show
  1. guidelinely-1.0.22.dev0/.github/workflows/ci.yml +81 -0
  2. guidelinely-1.0.20.dev0/.github/workflows/ci.yml → guidelinely-1.0.22.dev0/.github/workflows/release.yml +9 -35
  3. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/PKG-INFO +1 -1
  4. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/guidelinely/_version.py +3 -3
  5. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/guidelinely.egg-info/PKG-INFO +1 -1
  6. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/guidelinely.egg-info/SOURCES.txt +1 -0
  7. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/.gitignore +0 -0
  8. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/.pre-commit-config.yaml +0 -0
  9. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/LICENSE +0 -0
  10. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/README.md +0 -0
  11. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/examples/01_basic_metadata.py +0 -0
  12. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/examples/02_calculate_single_parameter.py +0 -0
  13. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/examples/03_batch_calculations.py +0 -0
  14. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/examples/04_groundwater_calculations.py +0 -0
  15. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/examples/05_advanced_workflow.py +0 -0
  16. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/examples/README.md +0 -0
  17. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/guidelinely/__init__.py +0 -0
  18. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/guidelinely/auth.py +0 -0
  19. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/guidelinely/cache.py +0 -0
  20. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/guidelinely/client.py +0 -0
  21. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/guidelinely/exceptions.py +0 -0
  22. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/guidelinely/models.py +0 -0
  23. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/guidelinely.egg-info/dependency_links.txt +0 -0
  24. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/guidelinely.egg-info/requires.txt +0 -0
  25. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/guidelinely.egg-info/top_level.txt +0 -0
  26. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/pyproject.toml +0 -0
  27. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/setup.cfg +0 -0
  28. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/tests/__init__.py +0 -0
  29. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/tests/test_auth.py +0 -0
  30. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/tests/test_cache.py +0 -0
  31. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/tests/test_client.py +0 -0
  32. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.dev0}/tests/test_edge_cases.py +0 -0
  33. {guidelinely-1.0.20.dev0 → guidelinely-1.0.22.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: CI
1
+ name: Release
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ main ]
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,13 +72,15 @@ 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
77
+ needs: [test, lint]
78
+ permissions:
79
+ id-token: write # Required for trusted publishing
86
80
  steps:
87
81
  - uses: actions/checkout@v4
88
82
  with:
89
83
  fetch-depth: 0 # Fetch all history and tags for setuptools_scm versioning
90
- ref: ${{ github.ref }} # Ensure we checkout the exact ref (tag or branch)
91
84
 
92
85
  - name: Set up Python
93
86
  uses: actions/setup-python@v5
@@ -105,24 +98,5 @@ jobs:
105
98
  - name: Check build artifacts
106
99
  run: ls -la dist/
107
100
 
108
- - name: Upload build artifacts
109
- uses: actions/upload-artifact@v4
110
- with:
111
- name: dist
112
- path: dist/
113
-
114
- publish:
115
- runs-on: ubuntu-latest
116
- needs: [test, lint, build]
117
- if: startsWith(github.ref, 'refs/tags/v') # Only publish on version tags
118
- permissions:
119
- id-token: write # Required for trusted publishing
120
- steps:
121
- - name: Download build artifacts
122
- uses: actions/download-artifact@v4
123
- with:
124
- name: dist
125
- path: dist/
126
-
127
101
  - name: Publish to PyPI
128
- uses: pypa/gh-action-pypi-publish@release/v1
102
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: guidelinely
3
- Version: 1.0.20.dev0
3
+ Version: 1.0.22.dev0
4
4
  Summary: Python client for the Guidelinely Environmental Guidelines API
5
5
  Author-email: Michael Davison <michael.davison@gmail.com>
6
6
  License-Expression: MIT
@@ -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.20.dev0'
32
- __version_tuple__ = version_tuple = (1, 0, 20, 'dev0')
31
+ __version__ = version = '1.0.22.dev0'
32
+ __version_tuple__ = version_tuple = (1, 0, 22, 'dev0')
33
33
 
34
- __commit_id__ = commit_id = 'g805ba298c'
34
+ __commit_id__ = commit_id = 'g5d67d5440'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: guidelinely
3
- Version: 1.0.20.dev0
3
+ Version: 1.0.22.dev0
4
4
  Summary: Python client for the Guidelinely Environmental Guidelines API
5
5
  Author-email: Michael Davison <michael.davison@gmail.com>
6
6
  License-Expression: MIT
@@ -4,6 +4,7 @@ LICENSE
4
4
  README.md
5
5
  pyproject.toml
6
6
  .github/workflows/ci.yml
7
+ .github/workflows/release.yml
7
8
  examples/01_basic_metadata.py
8
9
  examples/02_calculate_single_parameter.py
9
10
  examples/03_batch_calculations.py