printnode-community 0.3.0__tar.gz → 0.4.0__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 (52) hide show
  1. printnode_community-0.4.0/.github/github.json +100 -0
  2. {printnode_community-0.3.0 → printnode_community-0.4.0}/.github/workflows/ci.yml +15 -7
  3. printnode_community-0.4.0/.github/workflows/publish.yml +166 -0
  4. printnode_community-0.4.0/.gitignore +33 -0
  5. printnode_community-0.4.0/.idea/.gitignore +10 -0
  6. printnode_community-0.4.0/.idea/inspectionProfiles/Project_Default.xml +68 -0
  7. printnode_community-0.4.0/.idea/inspectionProfiles/profiles_settings.xml +6 -0
  8. printnode_community-0.4.0/.idea/modules.xml +8 -0
  9. printnode_community-0.4.0/.idea/printnode_community.iml +17 -0
  10. printnode_community-0.4.0/.idea/vcs.xml +6 -0
  11. printnode_community-0.4.0/AGENTS.md +78 -0
  12. printnode_community-0.4.0/CONTRIBUTING.md +37 -0
  13. {printnode_community-0.3.0 → printnode_community-0.4.0}/PKG-INFO +124 -83
  14. {printnode_community-0.3.0 → printnode_community-0.4.0}/README.md +122 -80
  15. {printnode_community-0.3.0 → printnode_community-0.4.0}/SECURITY.md +3 -3
  16. printnode_community-0.4.0/committed/.gitignore +1 -0
  17. printnode_community-0.4.0/committed/printnode_community-0.3.0-py3-none-any.whl +0 -0
  18. {printnode_community-0.3.0 → printnode_community-0.4.0}/printnode_community/accounts.py +0 -90
  19. {printnode_community-0.3.0 → printnode_community-0.4.0}/printnode_community/auth.py +9 -31
  20. {printnode_community-0.3.0 → printnode_community-0.4.0}/printnode_community/computers.py +8 -55
  21. {printnode_community-0.3.0 → printnode_community-0.4.0}/printnode_community/model.py +11 -6
  22. {printnode_community-0.3.0 → printnode_community-0.4.0}/pyproject.toml +3 -2
  23. printnode_community-0.4.0/renovate.json +5 -0
  24. printnode_community-0.4.0/scripts/check-lockfile.sh +28 -0
  25. printnode_community-0.4.0/scripts/pypi_release_decision.py +252 -0
  26. {printnode_community-0.3.0 → printnode_community-0.4.0}/tests/README.md +4 -12
  27. {printnode_community-0.3.0 → printnode_community-0.4.0}/tests/test_auth.py +59 -1
  28. {printnode_community-0.3.0 → printnode_community-0.4.0}/tests/test_computers.py +115 -13
  29. printnode_community-0.4.0/tests/test_imports.py +17 -0
  30. {printnode_community-0.3.0 → printnode_community-0.4.0}/tests/test_model.py +41 -0
  31. printnode_community-0.4.0/tests/test_pypi_release_decision.py +135 -0
  32. {printnode_community-0.3.0 → printnode_community-0.4.0}/uv.lock +87 -75
  33. printnode_community-0.3.0/.github/dependabot.yml +0 -29
  34. printnode_community-0.3.0/.github/workflows/publish.yml +0 -105
  35. printnode_community-0.3.0/.gitignore +0 -8
  36. printnode_community-0.3.0/AGENTS.md +0 -75
  37. printnode_community-0.3.0/CHANGELOG.md +0 -36
  38. printnode_community-0.3.0/CONTRIBUTING.md +0 -42
  39. printnode_community-0.3.0/RELEASE.md +0 -118
  40. printnode_community-0.3.0/test +0 -4
  41. printnode_community-0.3.0/tests/test_imports.py +0 -15
  42. {printnode_community-0.3.0 → printnode_community-0.4.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  43. {printnode_community-0.3.0 → printnode_community-0.4.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  44. {printnode_community-0.3.0 → printnode_community-0.4.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  45. {printnode_community-0.3.0 → printnode_community-0.4.0}/.github/pull_request_template.md +0 -0
  46. {printnode_community-0.3.0 → printnode_community-0.4.0}/LICENSE +0 -0
  47. {printnode_community-0.3.0 → printnode_community-0.4.0}/printnode_community/__init__.py +0 -0
  48. {printnode_community-0.3.0 → printnode_community-0.4.0}/printnode_community/gateway.py +0 -0
  49. {printnode_community-0.3.0 → printnode_community-0.4.0}/printnode_community/util.py +0 -0
  50. {printnode_community-0.3.0 → printnode_community-0.4.0}/tests/__init__.py +0 -0
  51. {printnode_community-0.3.0 → printnode_community-0.4.0}/tests/test_accounts.py +0 -0
  52. {printnode_community-0.3.0 → printnode_community-0.4.0}/tests/test_util.py +0 -0
@@ -0,0 +1,100 @@
1
+ {
2
+ "defaultBranch": "main",
3
+ "projectType": "python-package",
4
+ "docs": {
5
+ "index": "README.md",
6
+ "agentInstructions": "AGENTS.md",
7
+ "overview": "README.md",
8
+ "testing": "tests/README.md",
9
+ "packageManifest": "pyproject.toml",
10
+ "lockfile": "uv.lock"
11
+ },
12
+ "qualityGate": {
13
+ "setup": {
14
+ "default": "uv sync --locked"
15
+ },
16
+ "test": {
17
+ "local": "uv run pytest {test_paths}",
18
+ "ci": "uv run pytest"
19
+ },
20
+ "build": {
21
+ "package": "uv build",
22
+ "checkDistribution": "uv run twine check dist/*"
23
+ },
24
+ "release": {
25
+ "verify": "uv sync --locked && rm -rf dist && uv build && uv run twine check dist/*"
26
+ },
27
+ "docsRequiredWhen": [
28
+ "behavior changes",
29
+ "api changes",
30
+ "config changes",
31
+ "packaging metadata changes",
32
+ "release workflow changes",
33
+ "dependency changes",
34
+ "public import path changes",
35
+ "upstream compatibility changes"
36
+ ]
37
+ },
38
+ "importantWorkflows": [
39
+ "CI",
40
+ "Publish to PyPI"
41
+ ],
42
+ "prWorkflow": {
43
+ "mergeMethod": "merge",
44
+ "requiredStatusChecks": [
45
+ "Test Python 3.10",
46
+ "Test Python 3.11",
47
+ "Test Python 3.12",
48
+ "Test Python 3.13",
49
+ "Test Python 3.14",
50
+ "Build package"
51
+ ],
52
+ "requiresStrictStatusChecks": true,
53
+ "requiresConversationResolution": true
54
+ },
55
+ "githubSettings": {
56
+ "expected": {
57
+ "deleteBranchOnMerge": true
58
+ }
59
+ },
60
+ "cleanup": {
61
+ "deleteMergedLocalBranches": true,
62
+ "removeMergedCleanWorktrees": true
63
+ },
64
+ "githubSignals": {
65
+ "postMerge": {
66
+ "waitForActions": true,
67
+ "checkSecurityAndQuality": true
68
+ },
69
+ "capabilities": {
70
+ "codeScanning": "available",
71
+ "secretScanning": "unavailable",
72
+ "dependabotAlerts": "available",
73
+ "securityAdvisories": "available"
74
+ },
75
+ "refreshWhen": [
76
+ "repo visibility changes",
77
+ "GitHub plan changes",
78
+ "security settings change",
79
+ "token permissions change"
80
+ ]
81
+ },
82
+ "relatedRepos": [],
83
+ "metadataFreshness": {
84
+ "updateWhen": [
85
+ "docs routing changes",
86
+ "validation gates change",
87
+ "primary commands change",
88
+ "important workflows change",
89
+ "merge path changes",
90
+ "required status checks change",
91
+ "repository settings or rulesets change",
92
+ "overall or repository direction changes",
93
+ "repo relationship changes",
94
+ "cleanup policy changes",
95
+ "release workflow changes",
96
+ "dependency or packaging metadata changes",
97
+ "public import path changes"
98
+ ]
99
+ }
100
+ }
@@ -5,6 +5,7 @@ on:
5
5
  push:
6
6
  branches:
7
7
  - main
8
+ - "launchplane/train/**"
8
9
 
9
10
  permissions:
10
11
  contents: read
@@ -17,6 +18,8 @@ jobs:
17
18
  test:
18
19
  name: Test Python ${{ matrix.python-version }}
19
20
  runs-on: ubuntu-latest
21
+ # Time budget: jobs take about 15 seconds; fail loudly if one hangs.
22
+ timeout-minutes: 5
20
23
  strategy:
21
24
  fail-fast: false
22
25
  matrix:
@@ -29,15 +32,15 @@ jobs:
29
32
 
30
33
  steps:
31
34
  - name: Check out repository
32
- uses: actions/checkout@v6
35
+ uses: actions/checkout@v7
33
36
 
34
37
  - name: Install uv
35
- uses: astral-sh/setup-uv@v8.1.0
38
+ uses: astral-sh/setup-uv@v10.4.0
36
39
  with:
37
40
  enable-cache: true
38
41
 
39
42
  - name: Set up Python ${{ matrix.python-version }}
40
- uses: actions/setup-python@v6
43
+ uses: actions/setup-python@v7
41
44
  with:
42
45
  python-version: ${{ matrix.python-version }}
43
46
 
@@ -45,23 +48,28 @@ jobs:
45
48
  run: uv sync --locked --python ${{ matrix.python-version }}
46
49
 
47
50
  - name: Run tests
48
- run: uv run pytest
51
+ run: |
52
+ set -euo pipefail
53
+ test_command="$(jq -er '.qualityGate.test.ci | select(type == "string" and length > 0)' .github/github.json)"
54
+ bash -euo pipefail -c "$test_command"
49
55
 
50
56
  package:
51
57
  name: Build package
52
58
  runs-on: ubuntu-latest
59
+ # Time budget: jobs take about 15 seconds; fail loudly if one hangs.
60
+ timeout-minutes: 5
53
61
 
54
62
  steps:
55
63
  - name: Check out repository
56
- uses: actions/checkout@v6
64
+ uses: actions/checkout@v7
57
65
 
58
66
  - name: Install uv
59
- uses: astral-sh/setup-uv@v8.1.0
67
+ uses: astral-sh/setup-uv@v10.4.0
60
68
  with:
61
69
  enable-cache: true
62
70
 
63
71
  - name: Set up Python
64
- uses: actions/setup-python@v6
72
+ uses: actions/setup-python@v7
65
73
  with:
66
74
  python-version: "3.14"
67
75
 
@@ -0,0 +1,166 @@
1
+ ---
2
+ name: Publish to PyPI
3
+
4
+ # PyPI's trusted publisher is bound to this file name.
5
+ "on":
6
+ workflow_run:
7
+ workflows:
8
+ - CI
9
+ types:
10
+ - completed
11
+ branches:
12
+ - main
13
+ pull_request:
14
+ branches:
15
+ - main
16
+ workflow_dispatch:
17
+ inputs:
18
+ version:
19
+ description: "Minor or major version to publish, for example 0.5.0"
20
+ required: true
21
+ type: string
22
+
23
+ permissions: {}
24
+
25
+ concurrency:
26
+ group: ${{ github.event_name == 'pull_request' && format('pypi-preview-{0}', github.ref) || 'pypi-release' }}
27
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
28
+
29
+ jobs:
30
+ decide:
31
+ name: Decide and build
32
+ if: >-
33
+ github.event_name != 'workflow_run' ||
34
+ (github.event.workflow_run.conclusion == 'success' &&
35
+ github.event.workflow_run.event == 'push')
36
+ runs-on: ubuntu-latest
37
+ permissions:
38
+ contents: read
39
+ env:
40
+ RELEASE_SHA: ${{ github.event.workflow_run.head_sha || github.sha }}
41
+ PREVIEW: ${{ github.event_name == 'pull_request' }}
42
+ UV_PYTHON: "3.14"
43
+ outputs:
44
+ release_sha: ${{ env.RELEASE_SHA }}
45
+ action: ${{ steps.decision.outputs.action }}
46
+ version: ${{ steps.decision.outputs.version }}
47
+
48
+ steps:
49
+ - name: Check out the workflow commit
50
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
51
+ with:
52
+ persist-credentials: false
53
+
54
+ - name: Require the tip of main
55
+ id: tip
56
+ run: |
57
+ set -euo pipefail
58
+ main_tip="$(git ls-remote "https://github.com/${GITHUB_REPOSITORY}" refs/heads/main | cut -f1)"
59
+ checked_out="$(git rev-parse HEAD)"
60
+ if [ "${PREVIEW}" = "true" ] || { [ "${main_tip}" = "${RELEASE_SHA}" ] && [ "${checked_out}" = "${RELEASE_SHA}" ]; }; then
61
+ echo "current=true" >> "$GITHUB_OUTPUT"
62
+ else
63
+ echo "Superseded: main is now ${main_tip}; its run publishes." >> "$GITHUB_STEP_SUMMARY"
64
+ fi
65
+
66
+ - name: Require a passing CI for this commit
67
+ if: steps.tip.outputs.current == 'true' && github.event_name == 'workflow_dispatch'
68
+ run: |
69
+ set -euo pipefail
70
+ passed="$(curl -fsS "https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/workflows/ci.yml/runs?head_sha=${RELEASE_SHA}&status=success" | jq '.total_count')"
71
+ if [ "${passed}" = "0" ]; then
72
+ echo "CI has not passed for ${RELEASE_SHA}." >&2
73
+ exit 1
74
+ fi
75
+
76
+ - name: Set up uv
77
+ if: steps.tip.outputs.current == 'true'
78
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
79
+ with:
80
+ enable-cache: false
81
+
82
+ - name: Build the package as committed
83
+ if: steps.tip.outputs.current == 'true'
84
+ run: |
85
+ set -euo pipefail
86
+ ./scripts/check-lockfile.sh
87
+ uv build --wheel --out-dir committed
88
+
89
+ - name: Compare with PyPI
90
+ id: decision
91
+ if: steps.tip.outputs.current == 'true'
92
+ env:
93
+ REQUESTED_VERSION: ${{ inputs.version }}
94
+ run: |
95
+ set -euo pipefail
96
+ uv run --no-project --with packaging --with griffe python scripts/pypi_release_decision.py \
97
+ --package printnode_community \
98
+ --wheel committed/*.whl \
99
+ ${REQUESTED_VERSION:+--requested-version "${REQUESTED_VERSION}"} \
100
+ | tee -a "$GITHUB_OUTPUT" >> "$GITHUB_STEP_SUMMARY"
101
+
102
+ - name: Report the decision
103
+ if: steps.tip.outputs.current == 'true'
104
+ env:
105
+ ACTION: ${{ steps.decision.outputs.action }}
106
+ VERSION: ${{ steps.decision.outputs.version }}
107
+ REASON: ${{ steps.decision.outputs.reason }}
108
+ run: |
109
+ if [ "${ACTION}" = "none" ]; then
110
+ message="No PyPI release: ${REASON}."
111
+ elif [ "${PREVIEW}" = "true" ]; then
112
+ message="This merge would release ${VERSION}: ${REASON}."
113
+ else
114
+ message="Releasing ${VERSION}: ${REASON}."
115
+ fi
116
+ echo "::notice title=PyPI release::${message}"
117
+
118
+ - name: Build the release
119
+ if: steps.decision.outputs.action == 'publish' && env.PREVIEW != 'true'
120
+ env:
121
+ VERSION: ${{ steps.decision.outputs.version }}
122
+ run: |
123
+ set -euo pipefail
124
+ uv version "${VERSION}" --frozen
125
+ uv build --out-dir dist
126
+ ls "dist/printnode_community-${VERSION}-py3-none-any.whl" "dist/printnode_community-${VERSION}.tar.gz"
127
+ sha256sum dist/* >> "$GITHUB_STEP_SUMMARY"
128
+
129
+ - name: Upload the release
130
+ if: steps.decision.outputs.action == 'publish' && env.PREVIEW != 'true'
131
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
132
+ with:
133
+ name: release-distributions
134
+ path: dist/
135
+ if-no-files-found: error
136
+
137
+ publish:
138
+ name: Publish ${{ needs.decide.outputs.version }}
139
+ needs: decide
140
+ if: needs.decide.outputs.action == 'publish' && github.event_name != 'pull_request'
141
+ runs-on: ubuntu-latest
142
+ permissions:
143
+ id-token: write
144
+
145
+ steps:
146
+ - name: Require the tip of main
147
+ env:
148
+ RELEASE_SHA: ${{ needs.decide.outputs.release_sha }}
149
+ run: |
150
+ set -euo pipefail
151
+ main_tip="$(git ls-remote "https://github.com/${GITHUB_REPOSITORY}" refs/heads/main | cut -f1)"
152
+ if [ "${main_tip}" != "${RELEASE_SHA}" ]; then
153
+ echo "main moved to ${main_tip} after ${RELEASE_SHA} was built; its run publishes." >&2
154
+ exit 1
155
+ fi
156
+
157
+ - name: Download the release
158
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
159
+ with:
160
+ name: release-distributions
161
+ path: dist/
162
+
163
+ - name: Publish to PyPI
164
+ uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
165
+ with:
166
+ skip-existing: true
@@ -0,0 +1,33 @@
1
+ # Local AI/LLM runtime state
2
+ # Keep repo-level config folders such as .codex, .agents, .claude, .cursor,
3
+ # .gemini, .continue, and .opencode visible unless a specific local-only leaf
4
+ # is ignored below.
5
+ .code/
6
+ .antigravitycli/
7
+ .codex/sessions/
8
+ .codex/history*.jsonl
9
+ .codex/log/
10
+ .codex/logs/
11
+ .codex/tmp/
12
+ .agents/runs/
13
+ .agents/tmp/
14
+ .agents/cache/
15
+ .claude/settings.local.json
16
+ .claude/settings.local.*.json
17
+ CLAUDE.local.md
18
+ .aider.chat.history.md
19
+ .aider.input.history
20
+ .aider.llm.history
21
+ .aider.tags.cache.*/
22
+
23
+ .DS_Store
24
+ .code/
25
+ .venv/
26
+ .pytest_cache/
27
+ __pycache__/
28
+ *.py[cod]
29
+ dist/
30
+ build/
31
+ *.egg-info/
32
+ *.override.*
33
+ /handoff*.md
@@ -0,0 +1,10 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Ignored default folder with query files
7
+ /queries/
8
+ # Datasource local storage ignored files
9
+ /dataSources/
10
+ /dataSources.local.xml
@@ -0,0 +1,68 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <option name="scopesOrder">
5
+ <list>
6
+ <option value="Generated" />
7
+ <option value="All Changed Files" />
8
+ <option value="Open Files" />
9
+ <option value="Project Files" />
10
+ <option value="Scratches and Consoles" />
11
+ </list>
12
+ </option>
13
+ <inspection_tool class="CssUnusedSymbol" enabled="true" level="WARNING" enabled_by_default="true" />
14
+ <inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
15
+ <scope name="Generated" level="WEAK WARNING" enabled="false" />
16
+ </inspection_tool>
17
+ <inspection_tool class="PyArgumentEqualDefaultInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
18
+ <inspection_tool class="PyAugmentAssignmentInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
19
+ <inspection_tool class="PyClassicStyleClassInspection" enabled="true" level="WARNING" enabled_by_default="true" />
20
+ <inspection_tool class="PyCompatibilityInspection" enabled="true" level="WARNING" enabled_by_default="true">
21
+ <option name="ourVersions">
22
+ <value>
23
+ <list size="5">
24
+ <item index="0" class="java.lang.String" itemvalue="3.10" />
25
+ <item index="1" class="java.lang.String" itemvalue="3.11" />
26
+ <item index="2" class="java.lang.String" itemvalue="3.12" />
27
+ <item index="3" class="java.lang.String" itemvalue="3.13" />
28
+ <item index="4" class="java.lang.String" itemvalue="3.14" />
29
+ </list>
30
+ </value>
31
+ </option>
32
+ </inspection_tool>
33
+ <inspection_tool class="PyMethodMayBeStaticInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
34
+ <scope name="Generated" level="WEAK WARNING" enabled="false" />
35
+ </inspection_tool>
36
+ <inspection_tool class="PyMissingTypeHintsInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
37
+ <scope name="Generated" level="WEAK WARNING" enabled="false">
38
+ <option name="m_onlyWhenTypesAreKnown" value="false" />
39
+ </scope>
40
+ <option name="m_onlyWhenTypesAreKnown" value="false" />
41
+ </inspection_tool>
42
+ <inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
43
+ <scope name="Generated" level="WEAK WARNING" enabled="false" />
44
+ </inspection_tool>
45
+ <inspection_tool class="PyProtectedMemberInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
46
+ <scope name="Generated" level="WEAK WARNING" enabled="false" />
47
+ </inspection_tool>
48
+ <inspection_tool class="PyShadowingBuiltinsInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
49
+ <scope name="Generated" level="WEAK WARNING" enabled="false" />
50
+ </inspection_tool>
51
+ <inspection_tool class="PyUnreachableCodeInspection" enabled="true" level="WARNING" enabled_by_default="true">
52
+ <scope name="Generated" level="WARNING" enabled="false" />
53
+ </inspection_tool>
54
+ <inspection_tool class="PyUnusedLocalInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
55
+ <scope name="Generated" level="WEAK WARNING" enabled="false" />
56
+ </inspection_tool>
57
+ <inspection_tool class="SpellCheckingInspection" enabled="true" level="TYPO" enabled_by_default="true">
58
+ <scope name="Generated" level="TYPO" enabled="false">
59
+ <option name="processCode" value="true" />
60
+ <option name="processLiterals" value="true" />
61
+ <option name="processComments" value="true" />
62
+ </scope>
63
+ <option name="processCode" value="true" />
64
+ <option name="processLiterals" value="true" />
65
+ <option name="processComments" value="true" />
66
+ </inspection_tool>
67
+ </profile>
68
+ </component>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="true" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </component>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/printnode_community.iml" filepath="$PROJECT_DIR$/.idea/printnode_community.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.venv" />
6
+ </content>
7
+ <orderEntry type="jdk" jdkName="uv (printnode_community)" jdkType="Python SDK" />
8
+ <orderEntry type="sourceFolder" forTests="false" />
9
+ </component>
10
+ <component name="PyDocumentationSettings">
11
+ <option name="format" value="PLAIN" />
12
+ <option name="myDocStringFormat" value="Plain" />
13
+ </component>
14
+ <component name="TestRunnerService">
15
+ <option name="PROJECT_TEST_RUNNER" value="pytest" />
16
+ </component>
17
+ </module>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,78 @@
1
+ # AGENTS.md
2
+
3
+ ## What PrintNode Community does
4
+
5
+ PrintNode Community is a community-maintained Python client for the PrintNode remote-printing API.
6
+ It lets Python programs call PrintNode's printing services; it is not an official PrintNode release.
7
+ Evidence: [README.md](README.md).
8
+
9
+ ## Project Mission
10
+
11
+ Prioritize correctness, compatibility, clear releases, and a learning-friendly development workflow.
12
+
13
+ ## Direction
14
+
15
+ Follow the Director's [overall direction](https://github.com/cbusillo/direction/blob/HEAD/DIRECTION.md),
16
+ which takes precedence over repository instructions.
17
+
18
+ ## Branch and PR Rules
19
+
20
+ - The default branch is `main`.
21
+ - Keep repo workflow defaults in `.github/github.json` so future
22
+ GitHub workflow sessions can discover non-secret repo workflow facts,
23
+ validation commands, GitHub signal availability, docs routing, important
24
+ workflows, and cleanup policy.
25
+ - Follow the shared [GitHub workflow](https://github.com/cbusillo/codex-skills/blob/main/skills/github/SKILL.md).
26
+ - Keep pull requests small enough to review.
27
+ - Treat default-branch migration and repository settings as explicit maintenance tasks.
28
+
29
+ ## Python Project Standards
30
+
31
+ - Use `pyproject.toml` as the project source of truth.
32
+ - Use `uv` for local development, dependency locking, testing, and builds.
33
+ - Keep `uv.lock` committed for reproducible development and CI.
34
+ - Preserve the `printnode_community` import path unless a breaking-change pull request explicitly changes it.
35
+ - Prefer modern Python packaging practices while avoiding unnecessary rewrites.
36
+ - Write Python and Odoo JavaScript in the shared
37
+ [Python and Odoo style](https://github.com/cbusillo/codex-skills/blob/HEAD/skills/references/python-odoo-style.md).
38
+ - This library's supported Python range in `pyproject.toml` and public API
39
+ compatibility take precedence over Odoo runtime targets and newer typing features.
40
+
41
+ ## Dependency Maintenance
42
+
43
+ - Renovate updates dependencies through `renovate.json`, which extends the shared preset.
44
+ - Renovate pull requests must pass the same CI as human pull requests.
45
+
46
+ ## Testing Standards
47
+
48
+ - The default test suite must not require real PrintNode credentials.
49
+ - Use mocked HTTP tests for normal CI.
50
+ - Gate live PrintNode API tests behind explicit environment variables.
51
+ - Add or update tests for behavior changes.
52
+ - Do not remove coverage just because legacy tests are awkward.
53
+ - Follow the shared [Tests rules](https://github.com/cbusillo/codex-skills/blob/HEAD/instructions/global.md#tests).
54
+
55
+ ## Release Standards
56
+
57
+ - `publish.yml` releases every `main` commit whose CI passed and whose installed contents differ from PyPI's latest; `scripts/pypi_release_decision.py` picks the level from the code. Do not bump the version in `pyproject.toml`.
58
+ - A change that alters behavior without changing the public API, and any deliberate minor or major release, needs a manual `publish.yml` run with the version.
59
+ - PyPI's trusted publisher is bound to the workflow file name `publish.yml`, with any environment; keep that name.
60
+ - Preserve `printnode_community` as the import package.
61
+
62
+ ## Local Verification
63
+
64
+ Use the canonical gates from `.github/github.json`:
65
+
66
+ ```sh
67
+ uv sync --locked
68
+ uv build
69
+ uv run twine check dist/*
70
+ ```
71
+
72
+ For tests, follow the [local/CI command contract](https://github.com/cbusillo/codex-skills/blob/HEAD/skills/github/references/config-schema.md#workflow-metadata).
73
+ Replace `{test_paths}` in `test.local` with a nonempty selection of affected
74
+ test paths. Select complete safety modules by the changed authentication flow
75
+ or mutating endpoint and its callers. Release packaging verification keeps its existing
76
+ build checks; its full-suite coverage comes from CI and Publish.
77
+
78
+ If a command cannot be run locally, mention why in the pull request body.
@@ -0,0 +1,37 @@
1
+ # Contributing
2
+
3
+ Thank you for helping maintain this PrintNode API client. This fork aims to be careful, compatible, and easy to learn from.
4
+
5
+ ## Workflow
6
+
7
+ Follow [repository direction](AGENTS.md#direction) and [Branch and PR Rules](AGENTS.md#branch-and-pr-rules).
8
+
9
+ - Include tests for behavior changes.
10
+ - Update documentation when user-facing behavior changes.
11
+ - Mention any command you could not run in the pull request body.
12
+
13
+ ## Development
14
+
15
+ The project uses `pyproject.toml` and `uv`. Use the validation gates recorded
16
+ in `.github/github.json`:
17
+
18
+ ```sh
19
+ uv sync --locked
20
+ uv build
21
+ uv run twine check dist/*
22
+ ```
23
+
24
+ Select local tests under [Local Verification](AGENTS.md#local-verification).
25
+
26
+ ## Tests
27
+
28
+ Follow [Testing Standards](AGENTS.md#testing-standards).
29
+
30
+ ## Compatibility
31
+
32
+ Preserve the `printnode_community` import path. Say so in the pull request when a
33
+ change breaks compatibility.
34
+
35
+ ## Releases
36
+
37
+ Merges to `main` release automatically; see [Releases](README.md#releases).