pydiagral 1.0.0__tar.gz → 1.1.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.github/workflows/labeler.yml +1 -1
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.github/workflows/pytest.yaml +1 -1
- pydiagral-1.0.0/.github/workflows/release.yaml → pydiagral-1.1.0/.github/workflows/release_and_doc.yaml +38 -2
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.github/workflows/semantic-prs.yml +1 -1
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.gitignore +2 -2
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.releaserc +1 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/CHANGELOG.md +7 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/PKG-INFO +3 -3
- {pydiagral-1.0.0 → pydiagral-1.1.0}/README.md +2 -2
- pydiagral-1.1.0/test.txt +1 -0
- pydiagral-1.0.0/.github/workflows/docs.yaml +0 -39
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.devcontainer/Dockerfile.dev +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.devcontainer/devcontainer.json +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.github/FUNDING.yml +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.github/dependabot.yml +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.github/labels.yml +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.github/workflows/lint.yaml +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.github/workflows/lock.yml +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.vscode/extensions.json +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/.vscode/settings.json +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/LICENSE +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/docs/api.md +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/docs/exceptions.md +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/docs/how-to-find-diagral-serial.png +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/docs/index.md +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/docs/models.md +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/docs/pydiagral-Logo.png +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/example_code.py +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/mkdocs.yml +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/pyproject.toml +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/src/pydiagral/__init__.py +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/src/pydiagral/api.py +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/src/pydiagral/constants.py +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/src/pydiagral/exceptions.py +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/src/pydiagral/models.py +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/src/pydiagral/utils.py +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/tests/__init__.py +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/tests/data/configuration_sample.json +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/tests/data/system_details_sample.json +0 -0
- {pydiagral-1.0.0 → pydiagral-1.1.0}/tests/test_pydiagral_api.py +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
name: Generate Release and publish to PyPI
|
1
|
+
name: Generate Release and publish to PyPI + Doc Generation
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
@@ -13,6 +13,9 @@ jobs:
|
|
13
13
|
runs-on: ubuntu-latest
|
14
14
|
environment:
|
15
15
|
name: Semver
|
16
|
+
outputs:
|
17
|
+
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
|
18
|
+
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
|
16
19
|
steps:
|
17
20
|
- name: Checkout
|
18
21
|
uses: actions/checkout@v4
|
@@ -20,7 +23,7 @@ jobs:
|
|
20
23
|
fetch-depth: 0
|
21
24
|
|
22
25
|
- name: Set up Python
|
23
|
-
uses: actions/setup-python@
|
26
|
+
uses: actions/setup-python@v5
|
24
27
|
with:
|
25
28
|
python-version: "3.10"
|
26
29
|
|
@@ -55,3 +58,36 @@ jobs:
|
|
55
58
|
- name: Publish to PyPI
|
56
59
|
if: steps.semantic.outputs.new_release_published == 'true'
|
57
60
|
run: twine upload dist/* -u __token__ -p "${{ secrets.PYPI_TOKEN }}"
|
61
|
+
|
62
|
+
deploy-docs:
|
63
|
+
runs-on: ubuntu-latest
|
64
|
+
needs: release
|
65
|
+
if: needs.release.outputs.new_release_published == 'true'
|
66
|
+
steps:
|
67
|
+
- name: Checkout Code
|
68
|
+
uses: actions/checkout@v4
|
69
|
+
with:
|
70
|
+
ref: ${{ github.event.inputs.release || github.ref }}
|
71
|
+
|
72
|
+
- name: Set up Python
|
73
|
+
uses: actions/setup-python@v5
|
74
|
+
with:
|
75
|
+
python-version: '3.12'
|
76
|
+
|
77
|
+
- name: Set the PYPROJECT_VERSION environment variable
|
78
|
+
run: echo "PYPROJECT_VERSION=${{ needs.release.outputs.new_release_version }}" >> $GITHUB_ENV
|
79
|
+
|
80
|
+
- name: Install dependencies
|
81
|
+
run: |
|
82
|
+
pip install --upgrade pip
|
83
|
+
pip install mkdocs mkdocstrings[python] mkdocs-material
|
84
|
+
pip install -e .
|
85
|
+
|
86
|
+
- name: Build documentation
|
87
|
+
run: mkdocs build --strict
|
88
|
+
|
89
|
+
- name: Deploy to GitHub Pages
|
90
|
+
uses: peaceiris/actions-gh-pages@v4
|
91
|
+
with:
|
92
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
93
|
+
publish_dir: ./site
|
@@ -14,7 +14,7 @@ jobs:
|
|
14
14
|
name: Validate PR title
|
15
15
|
runs-on: ubuntu-latest
|
16
16
|
steps:
|
17
|
-
- uses: ytanikin/PRConventionalCommits@1.
|
17
|
+
- uses: ytanikin/PRConventionalCommits@1.3.0
|
18
18
|
with:
|
19
19
|
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore"]'
|
20
20
|
custom_labels: '{"feat": "feature", "fix": "bug", "docs": "documentation", "test": "testing", "ci": "ci", "refactor": "refactoring", "perf": "performance", "chore": "chore"}'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pydiagral
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.1.0
|
4
4
|
Summary: A Python library for interacting with Diagral systems
|
5
5
|
Project-URL: Homepage, https://github.com/mguyard/pydiagral
|
6
6
|
Project-URL: Documentation, https://github.com/mguyard/pydiagral
|
@@ -720,8 +720,8 @@ Description-Content-Type: text/markdown
|
|
720
720
|
<a href="https://github.com/mguyard/pydiagral/actions/workflows/lint.yaml" target="_blank">
|
721
721
|
<img src="https://github.com/mguyard/pydiagral/actions/workflows/lint.yaml/badge.svg" alt="Python Lint Action">
|
722
722
|
</a>
|
723
|
-
<a href="https://github.com/mguyard/pydiagral/actions/workflows/
|
724
|
-
<img src="https://github.com/mguyard/pydiagral/actions/workflows/
|
723
|
+
<a href="https://github.com/mguyard/pydiagral/actions/workflows/release_and_doc.yaml" target="_blank">
|
724
|
+
<img src="https://github.com/mguyard/pydiagral/actions/workflows/release_and_doc.yaml/badge.svg" alt="Release & Doc Action">
|
725
725
|
</a>
|
726
726
|
<p>
|
727
727
|
<p align="center">
|
@@ -19,8 +19,8 @@
|
|
19
19
|
<a href="https://github.com/mguyard/pydiagral/actions/workflows/lint.yaml" target="_blank">
|
20
20
|
<img src="https://github.com/mguyard/pydiagral/actions/workflows/lint.yaml/badge.svg" alt="Python Lint Action">
|
21
21
|
</a>
|
22
|
-
<a href="https://github.com/mguyard/pydiagral/actions/workflows/
|
23
|
-
<img src="https://github.com/mguyard/pydiagral/actions/workflows/
|
22
|
+
<a href="https://github.com/mguyard/pydiagral/actions/workflows/release_and_doc.yaml" target="_blank">
|
23
|
+
<img src="https://github.com/mguyard/pydiagral/actions/workflows/release_and_doc.yaml/badge.svg" alt="Release & Doc Action">
|
24
24
|
</a>
|
25
25
|
<p>
|
26
26
|
<p align="center">
|
pydiagral-1.1.0/test.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
test
|
@@ -1,39 +0,0 @@
|
|
1
|
-
name: Generate and Deploy Documentation
|
2
|
-
|
3
|
-
on:
|
4
|
-
release:
|
5
|
-
types: [published]
|
6
|
-
workflow_dispatch:
|
7
|
-
inputs:
|
8
|
-
release:
|
9
|
-
description: 'Release to generate and deploy documentation for'
|
10
|
-
required: true
|
11
|
-
default: 'latest'
|
12
|
-
|
13
|
-
jobs:
|
14
|
-
deploy-docs:
|
15
|
-
runs-on: ubuntu-latest
|
16
|
-
steps:
|
17
|
-
- name: Checkout Code
|
18
|
-
uses: actions/checkout@v4
|
19
|
-
with:
|
20
|
-
ref: ${{ github.event.inputs.release || github.ref }}
|
21
|
-
|
22
|
-
- name: Set up Python
|
23
|
-
uses: actions/setup-python@v4
|
24
|
-
with:
|
25
|
-
python-version: '3.12'
|
26
|
-
|
27
|
-
- name: Install dependencies
|
28
|
-
run: |
|
29
|
-
pip install --upgrade pip
|
30
|
-
pip install mkdocs mkdocstrings[python] mkdocs-material
|
31
|
-
|
32
|
-
- name: Build documentation
|
33
|
-
run: mkdocs build --strict
|
34
|
-
|
35
|
-
- name: Deploy to GitHub Pages
|
36
|
-
uses: peaceiris/actions-gh-pages@v4
|
37
|
-
with:
|
38
|
-
github_token: ${{ secrets.GITHUB_TOKEN }}
|
39
|
-
publish_dir: ./site
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|