sppyte 0.0.2__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.
- sppyte-0.0.2/.github/workflows/CI.yml +34 -0
- sppyte-0.0.2/.github/workflows/publish.yml +40 -0
- sppyte-0.0.2/.gitignore +30 -0
- sppyte-0.0.2/LICENSE +21 -0
- sppyte-0.0.2/PKG-INFO +27 -0
- sppyte-0.0.2/README.md +5 -0
- sppyte-0.0.2/pyproject.toml +51 -0
- sppyte-0.0.2/src/sppyte/__about__.py +4 -0
- sppyte-0.0.2/src/sppyte/__init__.py +3 -0
- sppyte-0.0.2/src/sppyte/main.py +2 -0
- sppyte-0.0.2/tests/__init__.py +3 -0
- sppyte-0.0.2/tests/test_main.py +11 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
lint-and-test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code
|
|
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: Install Hatch
|
|
25
|
+
run: pip install hatch
|
|
26
|
+
|
|
27
|
+
- name: Run linting with Hatch
|
|
28
|
+
run: hatch fmt
|
|
29
|
+
|
|
30
|
+
- name: Run tests with Hatch
|
|
31
|
+
run: hatch test
|
|
32
|
+
|
|
33
|
+
- name: Run type checking with Hatch
|
|
34
|
+
run: hatch run types:check
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
deploy:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
environment:
|
|
12
|
+
name: release
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
id-token: write
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- name: Checkout code
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- name: Set up Python
|
|
23
|
+
uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: "3.11"
|
|
26
|
+
cache: "pip"
|
|
27
|
+
|
|
28
|
+
- name: Install Hatch
|
|
29
|
+
run: |
|
|
30
|
+
python -m pip install --upgrade pip
|
|
31
|
+
pip install hatch
|
|
32
|
+
|
|
33
|
+
- name: Build package
|
|
34
|
+
run: hatch build
|
|
35
|
+
|
|
36
|
+
- name: Run tests with Hatch
|
|
37
|
+
run: hatch test
|
|
38
|
+
|
|
39
|
+
- name: Publish package distributions to PyPI
|
|
40
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
sppyte-0.0.2/.gitignore
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.pyc
|
|
4
|
+
*.pyd
|
|
5
|
+
*.pyo
|
|
6
|
+
|
|
7
|
+
# Virtual environment
|
|
8
|
+
venv/
|
|
9
|
+
env/
|
|
10
|
+
.venv/
|
|
11
|
+
|
|
12
|
+
# IDE-specific files
|
|
13
|
+
.vscode/
|
|
14
|
+
.idea/
|
|
15
|
+
|
|
16
|
+
# Editor backup files
|
|
17
|
+
*~
|
|
18
|
+
*.bak
|
|
19
|
+
|
|
20
|
+
# Logs and databases
|
|
21
|
+
*.log
|
|
22
|
+
*.db
|
|
23
|
+
|
|
24
|
+
# Data files
|
|
25
|
+
*.csv
|
|
26
|
+
*.json
|
|
27
|
+
*.sqlite3
|
|
28
|
+
|
|
29
|
+
# Test-related files
|
|
30
|
+
.pytest_cache/
|
sppyte-0.0.2/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 B-Jones-RFD
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
sppyte-0.0.2/PKG-INFO
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sppyte
|
|
3
|
+
Version: 0.0.2
|
|
4
|
+
Summary: Common tasks with SharePoint REST service
|
|
5
|
+
Project-URL: Documentation, https://github.com/B-Jones-RFD/sppyte#readme
|
|
6
|
+
Project-URL: Issues, https://github.com/B-Jones-RFD/sppyte/issues
|
|
7
|
+
Project-URL: Source, https://github.com/B-Jones-RFD/sppyte
|
|
8
|
+
Author: B-Jones-RFD
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
19
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
20
|
+
Requires-Python: >=3.8
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
|
|
23
|
+
# sppyte
|
|
24
|
+
|
|
25
|
+
Common tasks with SharePoint REST service.
|
|
26
|
+
|
|
27
|
+
Under development to port existing NPM package for python development.
|
sppyte-0.0.2/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sppyte"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = 'Common tasks with SharePoint REST service'
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.8"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
keywords = []
|
|
13
|
+
authors = [{ name = "B-Jones-RFD" }]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 3 - Alpha",
|
|
16
|
+
"Programming Language :: Python",
|
|
17
|
+
"Programming Language :: Python :: 3.8",
|
|
18
|
+
"Programming Language :: Python :: 3.9",
|
|
19
|
+
"Programming Language :: Python :: 3.10",
|
|
20
|
+
"Programming Language :: Python :: 3.11",
|
|
21
|
+
"Programming Language :: Python :: 3.12",
|
|
22
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
23
|
+
"Programming Language :: Python :: Implementation :: PyPy",
|
|
24
|
+
]
|
|
25
|
+
dependencies = []
|
|
26
|
+
|
|
27
|
+
[project.urls]
|
|
28
|
+
Documentation = "https://github.com/B-Jones-RFD/sppyte#readme"
|
|
29
|
+
Issues = "https://github.com/B-Jones-RFD/sppyte/issues"
|
|
30
|
+
Source = "https://github.com/B-Jones-RFD/sppyte"
|
|
31
|
+
|
|
32
|
+
[tool.hatch.version]
|
|
33
|
+
path = "src/sppyte/__about__.py"
|
|
34
|
+
|
|
35
|
+
[tool.hatch.envs.types]
|
|
36
|
+
extra-dependencies = ["mypy>=1.0.0"]
|
|
37
|
+
[tool.hatch.envs.types.scripts]
|
|
38
|
+
check = "mypy --install-types --non-interactive {args:src/sppyte tests}"
|
|
39
|
+
|
|
40
|
+
[tool.coverage.run]
|
|
41
|
+
source_pkgs = ["sppyte", "tests"]
|
|
42
|
+
branch = true
|
|
43
|
+
parallel = true
|
|
44
|
+
omit = ["src/sppyte/__about__.py"]
|
|
45
|
+
|
|
46
|
+
[tool.coverage.paths]
|
|
47
|
+
sppyte = ["src/sppyte", "*/sppyte/src/sppyte"]
|
|
48
|
+
tests = ["tests", "*/sppyte/tests"]
|
|
49
|
+
|
|
50
|
+
[tool.coverage.report]
|
|
51
|
+
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
|