mu3 0.1.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.
- mu3-0.1.0/.github/workflows/test.yml +35 -0
- mu3-0.1.0/.github/workflows/wheels.yml +86 -0
- mu3-0.1.0/.gitignore +20 -0
- mu3-0.1.0/PKG-INFO +40 -0
- mu3-0.1.0/license +21 -0
- mu3-0.1.0/pyproject.toml +53 -0
- mu3-0.1.0/readme.md +16 -0
- mu3-0.1.0/src/mu3/__init__.py +2 -0
- mu3-0.1.0/tests/test_mu3.py +4 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: test-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
name: py${{ matrix.python-version }} on ${{ matrix.os }}
|
|
16
|
+
runs-on: ${{ matrix.os }}
|
|
17
|
+
strategy:
|
|
18
|
+
fail-fast: false
|
|
19
|
+
matrix:
|
|
20
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
21
|
+
python-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v6
|
|
25
|
+
|
|
26
|
+
- uses: astral-sh/setup-uv@v8.1.0
|
|
27
|
+
with:
|
|
28
|
+
python-version: ${{ matrix.python-version }}
|
|
29
|
+
cache-suffix: test
|
|
30
|
+
|
|
31
|
+
- name: Install
|
|
32
|
+
run: uv sync
|
|
33
|
+
|
|
34
|
+
- name: Test + coverage
|
|
35
|
+
run: uv run pytest
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
name: wheels
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
release:
|
|
9
|
+
types: [published]
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: wheels-${{ github.ref }}
|
|
13
|
+
# Don't cancel a release run mid-publish, but for branch pushes and
|
|
14
|
+
# PRs the latest commit should win — old runs just block the queue.
|
|
15
|
+
cancel-in-progress: ${{ github.event_name != 'release' }}
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
sdist:
|
|
19
|
+
name: build sdist
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v6
|
|
23
|
+
|
|
24
|
+
- uses: astral-sh/setup-uv@v8.1.0
|
|
25
|
+
with:
|
|
26
|
+
python-version: "3.13"
|
|
27
|
+
cache-suffix: wheels-sdist
|
|
28
|
+
|
|
29
|
+
- name: Build sdist
|
|
30
|
+
run: uv build --sdist
|
|
31
|
+
|
|
32
|
+
- name: Test sdist round-trip
|
|
33
|
+
run: |
|
|
34
|
+
uv venv test-env
|
|
35
|
+
uv pip install --python test-env/bin/python --no-cache dist/*.tar.gz pytest
|
|
36
|
+
test-env/bin/pytest -o addopts=
|
|
37
|
+
|
|
38
|
+
- uses: actions/upload-artifact@v6
|
|
39
|
+
with:
|
|
40
|
+
name: sdist
|
|
41
|
+
path: dist/*.tar.gz
|
|
42
|
+
compression-level: 0
|
|
43
|
+
|
|
44
|
+
# Build wheels for all platforms
|
|
45
|
+
wheels:
|
|
46
|
+
name: build wheels on ${{ matrix.os }}
|
|
47
|
+
runs-on: ${{ matrix.os }}
|
|
48
|
+
strategy:
|
|
49
|
+
fail-fast: false
|
|
50
|
+
matrix:
|
|
51
|
+
# We don't need the complex discovery for a pure-python stub,
|
|
52
|
+
# but keeping the multi-OS build pattern for future-proofing.
|
|
53
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
54
|
+
|
|
55
|
+
steps:
|
|
56
|
+
- uses: actions/checkout@v6
|
|
57
|
+
|
|
58
|
+
- uses: astral-sh/setup-uv@v8.1.0
|
|
59
|
+
|
|
60
|
+
- name: Build wheels
|
|
61
|
+
run: uv build --wheel
|
|
62
|
+
|
|
63
|
+
- uses: actions/upload-artifact@v6
|
|
64
|
+
with:
|
|
65
|
+
name: wheels-${{ matrix.os }}
|
|
66
|
+
path: dist/*.whl
|
|
67
|
+
compression-level: 0
|
|
68
|
+
|
|
69
|
+
to-pypi:
|
|
70
|
+
name: publish to PyPI
|
|
71
|
+
needs: [sdist, wheels]
|
|
72
|
+
if: github.event_name == 'release' && github.event.action == 'published'
|
|
73
|
+
runs-on: ubuntu-latest
|
|
74
|
+
environment:
|
|
75
|
+
name: pypi
|
|
76
|
+
url: https://pypi.org/p/mu3
|
|
77
|
+
permissions:
|
|
78
|
+
id-token: write # required for OIDC trusted publishing
|
|
79
|
+
steps:
|
|
80
|
+
- uses: actions/download-artifact@v6
|
|
81
|
+
with:
|
|
82
|
+
pattern: "{wheels-*,sdist}"
|
|
83
|
+
merge-multiple: true
|
|
84
|
+
path: dist
|
|
85
|
+
|
|
86
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
mu3-0.1.0/.gitignore
ADDED
mu3-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mu3
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A stub Python library named mu3.
|
|
5
|
+
Project-URL: Homepage, https://github.com/ajfriend/mu3_py
|
|
6
|
+
Project-URL: Repository, https://github.com/ajfriend/mu3_py
|
|
7
|
+
Project-URL: Issues, https://github.com/ajfriend/mu3_py/issues
|
|
8
|
+
Author-email: AJ Friend <ajfriend@gmail.com>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: license
|
|
11
|
+
Keywords: mu3
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Operating System :: MacOS
|
|
15
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
16
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
22
|
+
Requires-Python: >=3.11
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# mu3
|
|
26
|
+
|
|
27
|
+
A stub Python library.
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install mu3
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
import mu3
|
|
39
|
+
print(mu3.hello())
|
|
40
|
+
```
|
mu3-0.1.0/license
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AJ Friend
|
|
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.
|
mu3-0.1.0/pyproject.toml
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "mu3"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "A stub Python library named mu3."
|
|
9
|
+
readme = "readme.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["license"]
|
|
13
|
+
authors = [{ name = "AJ Friend", email = "ajfriend@gmail.com" }]
|
|
14
|
+
keywords = ["mu3"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 3 - Alpha",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"Operating System :: MacOS",
|
|
19
|
+
"Operating System :: Microsoft :: Windows",
|
|
20
|
+
"Operating System :: POSIX :: Linux",
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Programming Language :: Python :: 3.13",
|
|
25
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
26
|
+
]
|
|
27
|
+
dependencies = []
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://github.com/ajfriend/mu3_py"
|
|
31
|
+
Repository = "https://github.com/ajfriend/mu3_py"
|
|
32
|
+
Issues = "https://github.com/ajfriend/mu3_py/issues"
|
|
33
|
+
|
|
34
|
+
[dependency-groups]
|
|
35
|
+
dev = ["pytest>=8", "pytest-cov>=5"]
|
|
36
|
+
|
|
37
|
+
[tool.pytest.ini_options]
|
|
38
|
+
addopts = [
|
|
39
|
+
"--cov=mu3",
|
|
40
|
+
"--cov=tests",
|
|
41
|
+
"--cov-branch",
|
|
42
|
+
"--cov-report=term-missing",
|
|
43
|
+
"--cov-fail-under=100",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
[tool.coverage.run]
|
|
47
|
+
branch = true
|
|
48
|
+
|
|
49
|
+
[tool.coverage.paths]
|
|
50
|
+
mu3 = ["src/mu3", "*/site-packages/mu3"]
|
|
51
|
+
|
|
52
|
+
[tool.hatch.build.targets.wheel]
|
|
53
|
+
packages = ["src/mu3"]
|
mu3-0.1.0/readme.md
ADDED