scim2-cli 0.2.3__tar.gz → 0.2.4__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 (41) hide show
  1. scim2_cli-0.2.4/PKG-INFO +327 -0
  2. {scim2_cli-0.2.3 → scim2_cli-0.2.4}/pyproject.toml +13 -8
  3. {scim2_cli-0.2.3 → scim2_cli-0.2.4}/scim2_cli/utils.py +3 -1
  4. scim2_cli-0.2.3/.github/FUNDING.yml +0 -2
  5. scim2_cli-0.2.3/.github/workflows/release.yml +0 -61
  6. scim2_cli-0.2.3/.github/workflows/tests.yaml +0 -77
  7. scim2_cli-0.2.3/.gitignore +0 -16
  8. scim2_cli-0.2.3/.hgignore +0 -1
  9. scim2_cli-0.2.3/.pre-commit-config.yaml +0 -29
  10. scim2_cli-0.2.3/.readthedocs.yml +0 -15
  11. scim2_cli-0.2.3/PKG-INFO +0 -326
  12. scim2_cli-0.2.3/doc/__init__.py +0 -0
  13. scim2_cli-0.2.3/doc/changelog.rst +0 -75
  14. scim2_cli-0.2.3/doc/conf.py +0 -87
  15. scim2_cli-0.2.3/doc/contributing.rst +0 -47
  16. scim2_cli-0.2.3/doc/index.rst +0 -13
  17. scim2_cli-0.2.3/doc/reference.rst +0 -8
  18. scim2_cli-0.2.3/doc/tutorial.rst +0 -250
  19. scim2_cli-0.2.3/flake.lock +0 -133
  20. scim2_cli-0.2.3/flake.nix +0 -70
  21. scim2_cli-0.2.3/tests/__init__.py +0 -0
  22. scim2_cli-0.2.3/tests/conftest.py +0 -96
  23. scim2_cli-0.2.3/tests/test_cli.py +0 -327
  24. scim2_cli-0.2.3/tests/test_create.py +0 -221
  25. scim2_cli-0.2.3/tests/test_delete.py +0 -106
  26. scim2_cli-0.2.3/tests/test_query.py +0 -271
  27. scim2_cli-0.2.3/tests/test_replace.py +0 -304
  28. scim2_cli-0.2.3/tests/test_search.py +0 -108
  29. scim2_cli-0.2.3/tests/test_test.py +0 -88
  30. scim2_cli-0.2.3/tests/test_utils.py +0 -21
  31. scim2_cli-0.2.3/uv.lock +0 -1385
  32. {scim2_cli-0.2.3 → scim2_cli-0.2.4}/LICENSE.md +0 -0
  33. {scim2_cli-0.2.3 → scim2_cli-0.2.4}/README.md +0 -0
  34. {scim2_cli-0.2.3 → scim2_cli-0.2.4}/scim2_cli/__init__.py +0 -0
  35. {scim2_cli-0.2.3 → scim2_cli-0.2.4}/scim2_cli/create.py +0 -0
  36. {scim2_cli-0.2.3 → scim2_cli-0.2.4}/scim2_cli/delete.py +0 -0
  37. {scim2_cli-0.2.3 → scim2_cli-0.2.4}/scim2_cli/py.typed +0 -0
  38. {scim2_cli-0.2.3 → scim2_cli-0.2.4}/scim2_cli/query.py +0 -0
  39. {scim2_cli-0.2.3 → scim2_cli-0.2.4}/scim2_cli/replace.py +0 -0
  40. {scim2_cli-0.2.3 → scim2_cli-0.2.4}/scim2_cli/search.py +0 -0
  41. {scim2_cli-0.2.3 → scim2_cli-0.2.4}/scim2_cli/test.py +0 -0
@@ -0,0 +1,327 @@
1
+ Metadata-Version: 2.3
2
+ Name: scim2-cli
3
+ Version: 0.2.4
4
+ Summary: SCIM application development CLI
5
+ Keywords: scim,scim2,provisioning,rfc7643,rfc7644
6
+ Author: Yaal Coop
7
+ Author-email: Yaal Coop <contact@yaal.coop>
8
+ License: Apache License
9
+ Version 2.0, January 2004
10
+ http://www.apache.org/licenses/
11
+
12
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
13
+
14
+ 1. Definitions.
15
+
16
+ "License" shall mean the terms and conditions for use, reproduction,
17
+ and distribution as defined by Sections 1 through 9 of this document.
18
+
19
+ "Licensor" shall mean the copyright owner or entity authorized by
20
+ the copyright owner that is granting the License.
21
+
22
+ "Legal Entity" shall mean the union of the acting entity and all
23
+ other entities that control, are controlled by, or are under common
24
+ control with that entity. For the purposes of this definition,
25
+ "control" means (i) the power, direct or indirect, to cause the
26
+ direction or management of such entity, whether by contract or
27
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
28
+ outstanding shares, or (iii) beneficial ownership of such entity.
29
+
30
+ "You" (or "Your") shall mean an individual or Legal Entity
31
+ exercising permissions granted by this License.
32
+
33
+ "Source" form shall mean the preferred form for making modifications,
34
+ including but not limited to software source code, documentation
35
+ source, and configuration files.
36
+
37
+ "Object" form shall mean any form resulting from mechanical
38
+ transformation or translation of a Source form, including but
39
+ not limited to compiled object code, generated documentation,
40
+ and conversions to other media types.
41
+
42
+ "Work" shall mean the work of authorship, whether in Source or
43
+ Object form, made available under the License, as indicated by a
44
+ copyright notice that is included in or attached to the work
45
+ (an example is provided in the Appendix below).
46
+
47
+ "Derivative Works" shall mean any work, whether in Source or Object
48
+ form, that is based on (or derived from) the Work and for which the
49
+ editorial revisions, annotations, elaborations, or other modifications
50
+ represent, as a whole, an original work of authorship. For the purposes
51
+ of this License, Derivative Works shall not include works that remain
52
+ separable from, or merely link (or bind by name) to the interfaces of,
53
+ the Work and Derivative Works thereof.
54
+
55
+ "Contribution" shall mean any work of authorship, including
56
+ the original version of the Work and any modifications or additions
57
+ to that Work or Derivative Works thereof, that is intentionally
58
+ submitted to Licensor for inclusion in the Work by the copyright owner
59
+ or by an individual or Legal Entity authorized to submit on behalf of
60
+ the copyright owner. For the purposes of this definition, "submitted"
61
+ means any form of electronic, verbal, or written communication sent
62
+ to the Licensor or its representatives, including but not limited to
63
+ communication on electronic mailing lists, source code control systems,
64
+ and issue tracking systems that are managed by, or on behalf of, the
65
+ Licensor for the purpose of discussing and improving the Work, but
66
+ excluding communication that is conspicuously marked or otherwise
67
+ designated in writing by the copyright owner as "Not a Contribution."
68
+
69
+ "Contributor" shall mean Licensor and any individual or Legal Entity
70
+ on behalf of whom a Contribution has been received by Licensor and
71
+ subsequently incorporated within the Work.
72
+
73
+ 2. Grant of Copyright License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ copyright license to reproduce, prepare Derivative Works of,
77
+ publicly display, publicly perform, sublicense, and distribute the
78
+ Work and such Derivative Works in Source or Object form.
79
+
80
+ 3. Grant of Patent License. Subject to the terms and conditions of
81
+ this License, each Contributor hereby grants to You a perpetual,
82
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
83
+ (except as stated in this section) patent license to make, have made,
84
+ use, offer to sell, sell, import, and otherwise transfer the Work,
85
+ where such license applies only to those patent claims licensable
86
+ by such Contributor that are necessarily infringed by their
87
+ Contribution(s) alone or by combination of their Contribution(s)
88
+ with the Work to which such Contribution(s) was submitted. If You
89
+ institute patent litigation against any entity (including a
90
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
91
+ or a Contribution incorporated within the Work constitutes direct
92
+ or contributory patent infringement, then any patent licenses
93
+ granted to You under this License for that Work shall terminate
94
+ as of the date such litigation is filed.
95
+
96
+ 4. Redistribution. You may reproduce and distribute copies of the
97
+ Work or Derivative Works thereof in any medium, with or without
98
+ modifications, and in Source or Object form, provided that You
99
+ meet the following conditions:
100
+
101
+ (a) You must give any other recipients of the Work or
102
+ Derivative Works a copy of this License; and
103
+
104
+ (b) You must cause any modified files to carry prominent notices
105
+ stating that You changed the files; and
106
+
107
+ (c) You must retain, in the Source form of any Derivative Works
108
+ that You distribute, all copyright, patent, trademark, and
109
+ attribution notices from the Source form of the Work,
110
+ excluding those notices that do not pertain to any part of
111
+ the Derivative Works; and
112
+
113
+ (d) If the Work includes a "NOTICE" text file as part of its
114
+ distribution, then any Derivative Works that You distribute must
115
+ include a readable copy of the attribution notices contained
116
+ within such NOTICE file, excluding those notices that do not
117
+ pertain to any part of the Derivative Works, in at least one
118
+ of the following places: within a NOTICE text file distributed
119
+ as part of the Derivative Works; within the Source form or
120
+ documentation, if provided along with the Derivative Works; or,
121
+ within a display generated by the Derivative Works, if and
122
+ wherever such third-party notices normally appear. The contents
123
+ of the NOTICE file are for informational purposes only and
124
+ do not modify the License. You may add Your own attribution
125
+ notices within Derivative Works that You distribute, alongside
126
+ or as an addendum to the NOTICE text from the Work, provided
127
+ that such additional attribution notices cannot be construed
128
+ as modifying the License.
129
+
130
+ You may add Your own copyright statement to Your modifications and
131
+ may provide additional or different license terms and conditions
132
+ for use, reproduction, or distribution of Your modifications, or
133
+ for any such Derivative Works as a whole, provided Your use,
134
+ reproduction, and distribution of the Work otherwise complies with
135
+ the conditions stated in this License.
136
+
137
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
138
+ any Contribution intentionally submitted for inclusion in the Work
139
+ by You to the Licensor shall be under the terms and conditions of
140
+ this License, without any additional terms or conditions.
141
+ Notwithstanding the above, nothing herein shall supersede or modify
142
+ the terms of any separate license agreement you may have executed
143
+ with Licensor regarding such Contributions.
144
+
145
+ 6. Trademarks. This License does not grant permission to use the trade
146
+ names, trademarks, service marks, or product names of the Licensor,
147
+ except as required for reasonable and customary use in describing the
148
+ origin of the Work and reproducing the content of the NOTICE file.
149
+
150
+ 7. Disclaimer of Warranty. Unless required by applicable law or
151
+ agreed to in writing, Licensor provides the Work (and each
152
+ Contributor provides its Contributions) on an "AS IS" BASIS,
153
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
154
+ implied, including, without limitation, any warranties or conditions
155
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
156
+ PARTICULAR PURPOSE. You are solely responsible for determining the
157
+ appropriateness of using or redistributing the Work and assume any
158
+ risks associated with Your exercise of permissions under this License.
159
+
160
+ 8. Limitation of Liability. In no event and under no legal theory,
161
+ whether in tort (including negligence), contract, or otherwise,
162
+ unless required by applicable law (such as deliberate and grossly
163
+ negligent acts) or agreed to in writing, shall any Contributor be
164
+ liable to You for damages, including any direct, indirect, special,
165
+ incidental, or consequential damages of any character arising as a
166
+ result of this License or out of the use or inability to use the
167
+ Work (including but not limited to damages for loss of goodwill,
168
+ work stoppage, computer failure or malfunction, or any and all
169
+ other commercial damages or losses), even if such Contributor
170
+ has been advised of the possibility of such damages.
171
+
172
+ 9. Accepting Warranty or Additional Liability. While redistributing
173
+ the Work or Derivative Works thereof, You may choose to offer,
174
+ and charge a fee for, acceptance of support, warranty, indemnity,
175
+ or other liability obligations and/or rights consistent with this
176
+ License. However, in accepting such obligations, You may act only
177
+ on Your own behalf and on Your sole responsibility, not on behalf
178
+ of any other Contributor, and only if You agree to indemnify,
179
+ defend, and hold each Contributor harmless for any liability
180
+ incurred by, or claims asserted against, such Contributor by reason
181
+ of your accepting any such warranty or additional liability.
182
+
183
+ END OF TERMS AND CONDITIONS
184
+
185
+ APPENDIX: How to apply the Apache License to your work.
186
+
187
+ To apply the Apache License to your work, attach the following
188
+ boilerplate notice, with the fields enclosed by brackets "[]"
189
+ replaced with your own identifying information. (Don't include
190
+ the brackets!) The text should be enclosed in the appropriate
191
+ comment syntax for the file format. We also recommend that a
192
+ file or class name and description of purpose be included on the
193
+ same "printed page" as the copyright notice for easier
194
+ identification within third-party archives.
195
+
196
+ Copyright [yyyy] [name of copyright owner]
197
+
198
+ Licensed under the Apache License, Version 2.0 (the "License");
199
+ you may not use this file except in compliance with the License.
200
+ You may obtain a copy of the License at
201
+
202
+ http://www.apache.org/licenses/LICENSE-2.0
203
+
204
+ Unless required by applicable law or agreed to in writing, software
205
+ distributed under the License is distributed on an "AS IS" BASIS,
206
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
207
+ See the License for the specific language governing permissions and
208
+ limitations under the License.
209
+ Classifier: Intended Audience :: Developers
210
+ Classifier: Development Status :: 3 - Alpha
211
+ Classifier: Programming Language :: Python :: 3.10
212
+ Classifier: Programming Language :: Python :: 3.11
213
+ Classifier: Programming Language :: Python :: 3.12
214
+ Classifier: Programming Language :: Python :: 3.13
215
+ Classifier: Programming Language :: Python :: 3.14
216
+ Classifier: Programming Language :: Python :: Implementation :: CPython
217
+ Classifier: License :: OSI Approved :: Apache Software License
218
+ Classifier: Environment :: Web Environment
219
+ Classifier: Programming Language :: Python
220
+ Classifier: Operating System :: OS Independent
221
+ Requires-Dist: click>=8.1.7
222
+ Requires-Dist: scim2-client>=0.7.1
223
+ Requires-Dist: scim2-tester[httpx]>=0.2.5
224
+ Requires-Dist: sphinx-click-rst-to-ansi-formatter>=0.1.0
225
+ Requires-Dist: pydanclick>=0.4.0
226
+ Requires-Dist: pygments>=2.18.0
227
+ Requires-Python: >=3.10
228
+ Project-URL: changelog, https://scim2-cli.readthedocs.io/en/latest/changelog.html
229
+ Project-URL: documentation, https://scim2-cli.readthedocs.io
230
+ Project-URL: funding, https://github.com/sponsors/python-scim
231
+ Project-URL: repository, https://github.com/python-scim/scim2-cli
232
+ Description-Content-Type: text/markdown
233
+
234
+ # scim2-cli
235
+
236
+ An utility command line to help you perform requests against a SCIM server, while validating input and response payloads. It also uses [scim2-tester](https://scim2-tester.readthedocs.io) to perform a [SCIM server compliance test](https://scim2-cli.readthedocs.io/en/latest/reference.html#scim-url-test).
237
+
238
+ ## What's SCIM anyway?
239
+
240
+ SCIM stands for System for Cross-domain Identity Management, and it is a provisioning protocol.
241
+ Provisioning is the action of managing a set of resources across different services, usually users and groups.
242
+ SCIM is often used between Identity Providers and applications in completion of standards like OAuth2 and OpenID Connect.
243
+ It allows users and groups creations, modifications and deletions to be synchronized between applications.
244
+
245
+ ## Installation
246
+
247
+ ### Binary files
248
+
249
+ Binary files are available on the [releases page](https://github.com/python-scim/scim2-cli/releases).
250
+
251
+ ### Python package
252
+
253
+ scim2-cli is published on the [PyPI repository](https://pypi.org/project/scim2-cli).
254
+ You can install it with your favourite python package manager.
255
+
256
+ ```shell
257
+ pip install scim2-cli
258
+ ```
259
+
260
+ ### From sources
261
+
262
+ To run scim2-cli from the sources, [uv is needed](https://docs.astral.sh/uv/getting-started/installation/) for development:
263
+
264
+ ```shell
265
+ git clone https://github.com/python-scim/scim2-cli.git
266
+ cd scim2-cli
267
+ uv sync
268
+ ```
269
+
270
+ Then, it can be launched directly as a Python script:
271
+
272
+ ```shell
273
+ uv run scim2 --help
274
+ ```
275
+
276
+ Or you can build a single file binary from the sources:
277
+
278
+ ```shell
279
+ uv sync --group bundle
280
+ uv run pyinstaller --name scim2 --onefile scim2_cli/__init__.py
281
+ ./dist/scim2 --help
282
+ ```
283
+
284
+ ## Usage
285
+
286
+ Check the [reference](https://scim2-cli.readthedocs.io/en/latest/reference.html) for more details.
287
+
288
+ Here is an example of resource creation:
289
+
290
+ ```shell
291
+ $ scim2 --url https://auth.example --header "Authorization: Bearer 12345" create user --user-name "bjensen@example.com"
292
+ {
293
+ "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
294
+ "id": "2819c223-7f76-453a-919d-413861904646",
295
+ "userName": "bjensen@example.com",
296
+ "meta": {
297
+ "resourceType": "User",
298
+ "created": "2010-01-23T04:56:22Z",
299
+ "lastModified": "2011-05-13T04:42:34Z",
300
+ "version": 'W\\/"3694e05e9dff590"',
301
+ "location": "https://example.com/v2/Users/2819c223-7f76-453a-919d-413861904646",
302
+ },
303
+ }
304
+ ```
305
+
306
+ Here is an example of resource query:
307
+
308
+ ```shell
309
+ $ scim2 --url https://auth.example --header "Authorization: Bearer 12345" query user 2819c223-7f76-453a-919d-413861904646
310
+ {
311
+ "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
312
+ "id": "2819c223-7f76-453a-919d-413861904646",
313
+ "userName": "bjensen@example.com",
314
+ "meta": {
315
+ "resourceType": "User",
316
+ "created": "2010-01-23T04:56:22Z",
317
+ "lastModified": "2011-05-13T04:42:34Z",
318
+ "version": 'W\\/"3694e05e9dff590"',
319
+ "location": "https://example.com/v2/Users/2819c223-7f76-453a-919d-413861904646",
320
+ }
321
+ }
322
+ ```
323
+
324
+ scim2-cli belongs in a collection of SCIM tools developed by [Yaal Coop](https://yaal.coop),
325
+ with [scim2-models](https://github.com/python-scim/scim2-models),
326
+ [scim2-client](https://github.com/python-scim/scim2-client) and
327
+ [scim2-tester](https://github.com/python-scim/scim2-tester)
@@ -1,10 +1,10 @@
1
1
  [build-system]
2
- requires = ["hatchling"]
3
- build-backend = "hatchling.build"
2
+ requires = ["uv_build>=0.8.9,<0.9.0"]
3
+ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "scim2-cli"
7
- version = "0.2.3"
7
+ version = "0.2.4"
8
8
  description = "SCIM application development CLI"
9
9
  authors = [{name="Yaal Coop", email="contact@yaal.coop"}]
10
10
  license = {file = "LICENSE.md"}
@@ -17,6 +17,7 @@ classifiers = [
17
17
  "Programming Language :: Python :: 3.11",
18
18
  "Programming Language :: Python :: 3.12",
19
19
  "Programming Language :: Python :: 3.13",
20
+ "Programming Language :: Python :: 3.14",
20
21
  "Programming Language :: Python :: Implementation :: CPython",
21
22
  "License :: OSI Approved :: Apache Software License",
22
23
  "Environment :: Web Environment",
@@ -27,8 +28,8 @@ classifiers = [
27
28
  requires-python = ">= 3.10"
28
29
  dependencies = [
29
30
  "click>=8.1.7",
30
- "scim2-client>=0.4.3",
31
- "scim2-tester[httpx]>=0.1.10",
31
+ "scim2-client>=0.7.1",
32
+ "scim2-tester[httpx]>=0.2.5",
32
33
  "sphinx-click-rst-to-ansi-formatter>=0.1.0",
33
34
  "pydanclick>=0.4.0",
34
35
  "pygments>=2.18.0",
@@ -43,7 +44,7 @@ funding = "https://github.com/sponsors/python-scim"
43
44
  [dependency-groups]
44
45
  dev = [
45
46
  "mypy>=1.13.0",
46
- "pre-commit-uv>=4.1.4",
47
+ "prek>=0.1.0",
47
48
  "pytest>=8.2.1",
48
49
  "pytest-coverage>=0.0",
49
50
  "pytest-httpserver>=1.0.10",
@@ -64,6 +65,9 @@ bundle = [
64
65
  scim = "scim2_cli:cli"
65
66
  scim2 = "scim2_cli:cli"
66
67
 
68
+ [tool.uv.build-backend]
69
+ module-root = ""
70
+
67
71
  [tool.coverage.run]
68
72
  source = [
69
73
  "scim2_cli",
@@ -124,6 +128,7 @@ env_list = [
124
128
  "py311",
125
129
  "py312",
126
130
  "py313",
131
+ "py314",
127
132
  "minversions",
128
133
  "doc",
129
134
  "coverage",
@@ -139,11 +144,11 @@ commands = [
139
144
  [tool.tox.env.style]
140
145
  runner = "uv-venv-runner"
141
146
  commands = [
142
- ["pre-commit", "run", "--all-files", "--show-diff-on-failure"],
147
+ ["prek", "run", "--all-files", "--show-diff-on-failure"],
143
148
  ]
144
149
 
145
150
  [tool.tox.env.minversions]
146
- runner = "uv-venv-lock-runner"
151
+ runner = "uv-venv-runner"
147
152
  uv_resolution = "lowest-direct"
148
153
 
149
154
  [tool.tox.env.doc]
@@ -100,11 +100,13 @@ def is_field_acceptable(context, model, field_name) -> bool:
100
100
 
101
101
 
102
102
  def unacceptable_fields(context, model):
103
- return [
103
+ excluded = [
104
104
  field_name
105
105
  for field_name in model.model_fields
106
106
  if not is_field_acceptable(context, model, field_name)
107
107
  ]
108
+ excluded.append("schemas")
109
+ return excluded
108
110
 
109
111
 
110
112
  def exception_to_click_error(exception):
@@ -1,2 +0,0 @@
1
- ---
2
- github: [yaal-coop]
@@ -1,61 +0,0 @@
1
- ---
2
- name: bundle
3
- on:
4
- push:
5
- tags:
6
- - '*'
7
-
8
- jobs:
9
- build:
10
- name: build dist files
11
- runs-on: ubuntu-latest
12
-
13
- steps:
14
- - uses: actions/checkout@v4
15
- - name: Install uv
16
- uses: astral-sh/setup-uv@v3
17
- with:
18
- enable-cache: true
19
- - name: build dist
20
- run: uv sync --group bundle
21
- - name: build dist
22
- run: uv build
23
- - name: build binary
24
- run: uv run pyinstaller scim2.spec
25
- - uses: actions/upload-artifact@v4
26
- with:
27
- name: artifacts
28
- path: dist/*
29
- if-no-files-found: error
30
-
31
- release:
32
- name: create Github release
33
- runs-on: ubuntu-latest
34
- steps:
35
- - uses: actions/download-artifact@v4
36
- with:
37
- name: artifacts
38
- path: dist
39
- - uses: softprops/action-gh-release@v2
40
- with:
41
- files: |
42
- dist/scim2
43
- publish:
44
- name: release to pypi
45
- needs: build
46
- runs-on: ubuntu-latest
47
-
48
- environment:
49
- name: pypi-release
50
- url: https://pypi.org/project/scim2-cli/
51
- permissions:
52
- id-token: write
53
-
54
- steps:
55
- - uses: actions/download-artifact@v4
56
- with:
57
- name: artifacts
58
- path: dist
59
-
60
- - name: Push build artifacts to PyPI
61
- uses: pypa/gh-action-pypi-publish@release/v1
@@ -1,77 +0,0 @@
1
- ---
2
- name: tests
3
- on:
4
- push:
5
- branches:
6
- - main
7
- - '*.*.*'
8
- pull_request:
9
- branches:
10
- - main
11
- - '*.*.*'
12
-
13
- jobs:
14
- tests:
15
- name: py${{ matrix.python }} unit tests
16
- runs-on: ubuntu-latest
17
- strategy:
18
- fail-fast: false
19
- matrix:
20
- python:
21
- - '3.13'
22
- - '3.12'
23
- - '3.11'
24
- - '3.10'
25
- - '3.9'
26
- steps:
27
- - uses: actions/checkout@v4
28
- - name: Install uv
29
- uses: astral-sh/setup-uv@v3
30
- with:
31
- enable-cache: true
32
- - name: Install Python ${{ matrix.python }}
33
- run: uv python install ${{ matrix.python }}
34
- - name: Run tests
35
- run: uv run pytest --showlocals
36
-
37
- minversions:
38
- name: minimum dependency versions
39
- runs-on: ubuntu-latest
40
- steps:
41
- - uses: actions/checkout@v4
42
- - name: Install uv
43
- uses: astral-sh/setup-uv@v3
44
- with:
45
- enable-cache: true
46
- - name: Install minimum dependencies
47
- run: uv sync --resolution=lowest-direct
48
- - name: Run tests
49
- run: uv run pytest --showlocals
50
-
51
- style:
52
- runs-on: ubuntu-latest
53
- steps:
54
- - uses: actions/checkout@v4
55
- - uses: pre-commit/action@v3.0.1
56
-
57
- doc:
58
- runs-on: ubuntu-latest
59
- steps:
60
- - uses: actions/checkout@v4
61
- - name: Install uv
62
- uses: astral-sh/setup-uv@v3
63
- with:
64
- enable-cache: true
65
- - name: Install dependencies
66
- run: uv sync --group doc
67
- - run: uv run sphinx-build doc build/sphinx/html
68
-
69
- nix:
70
- runs-on: ubuntu-latest
71
- steps:
72
- - uses: actions/checkout@v4
73
- - uses: cachix/install-nix-action@v27
74
- with:
75
- github_access_token: ${{ secrets.GITHUB_TOKEN }}
76
- - run: nix build
77
- - run: nix flake check
@@ -1,16 +0,0 @@
1
- .env
2
- *.pyc
3
- *.mo
4
- *.prof
5
- .python_history
6
- .tox
7
- .coverage
8
- .coverage.*
9
- htmlcov
10
- *.egg-info
11
- build
12
- dist
13
- .vscode
14
-
15
- # pyinstaller spec file
16
- *.spec
scim2_cli-0.2.3/.hgignore DELETED
@@ -1 +0,0 @@
1
- .dotfiles/mercurial/.hgignore
@@ -1,29 +0,0 @@
1
- ---
2
- repos:
3
- - repo: https://github.com/astral-sh/ruff-pre-commit
4
- rev: 'v0.8.2'
5
- hooks:
6
- - id: ruff
7
- args: [--fix, --exit-non-zero-on-fix]
8
- - id: ruff-format
9
- - repo: https://github.com/pre-commit/pre-commit-hooks
10
- rev: v5.0.0
11
- hooks:
12
- - id: fix-byte-order-marker
13
- - id: trailing-whitespace
14
- exclude: "\\.svg$|\\.map$|\\.min\\.css$|\\.min\\.js$|\\.po$|\\.pot$"
15
- - id: end-of-file-fixer
16
- exclude: "\\.svg$|\\.map$|\\.min\\.css$|\\.min\\.js$|\\.po$|\\.pot$"
17
- - id: check-toml
18
- - repo: https://github.com/pre-commit/mirrors-mypy
19
- rev: v1.13.0
20
- hooks:
21
- - id: mypy
22
- additional_dependencies: [pydantic]
23
- - repo: https://github.com/codespell-project/codespell
24
- rev: v2.3.0
25
- hooks:
26
- - id: codespell
27
- additional_dependencies:
28
- - tomli
29
- args: [--write-changes]
@@ -1,15 +0,0 @@
1
- ---
2
- version: 2
3
- sphinx:
4
- configuration: doc/conf.py
5
- build:
6
- os: "ubuntu-22.04"
7
- tools:
8
- python: "3.12"
9
- jobs:
10
- post_create_environment:
11
- - pip install uv
12
- - uv export --group doc --no-hashes --output-file requirements.txt
13
- post_install:
14
- - pip install .
15
- - pip install --requirement requirements.txt