memoryframes 0.1.5__tar.gz → 0.1.6__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.
- {memoryframes-0.1.5 → memoryframes-0.1.6}/PKG-INFO +9 -6
- {memoryframes-0.1.5 → memoryframes-0.1.6}/pyproject.toml +23 -13
- memoryframes-0.1.6/src/MemoryFrames/__init__.py +9 -0
- memoryframes-0.1.5/src/MemoryFrames/EntryPoint.py +0 -85
- memoryframes-0.1.5/src/MemoryFrames/Math.py +0 -21
- memoryframes-0.1.5/src/MemoryFrames/__init__.py +0 -15
- {memoryframes-0.1.5 → memoryframes-0.1.6}/README.md +0 -0
- {memoryframes-0.1.5 → memoryframes-0.1.6}/src/MemoryFrames/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: memoryframes
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: Add your description here
|
|
5
5
|
Author: David Brownell
|
|
6
6
|
Author-email: David Brownell <github@DavidBrownell.com>
|
|
@@ -9,11 +9,14 @@ Classifier: Operating System :: MacOS
|
|
|
9
9
|
Classifier: Operating System :: Microsoft :: Windows
|
|
10
10
|
Classifier: Operating System :: POSIX :: Linux
|
|
11
11
|
Classifier: Programming Language :: Python
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Requires-
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
+
Requires-Dist: dbrownell-common>=0.16.0
|
|
14
|
+
Requires-Dist: pluggy>=1.6.0
|
|
15
|
+
Requires-Dist: python-frontmatter>=1.1.0
|
|
16
|
+
Requires-Dist: textual>=6.8.0
|
|
17
|
+
Requires-Dist: typer>=0.20.0
|
|
18
|
+
Requires-Dist: typer-config>=1.4.3
|
|
19
|
+
Requires-Python: >=3.14
|
|
17
20
|
Project-URL: Documentation, https://github.com/davidbrownell/MemoryFrames
|
|
18
21
|
Project-URL: Homepage, https://github.com/davidbrownell/MemoryFrames
|
|
19
22
|
Project-URL: Repository, https://github.com/davidbrownell/MemoryFrames
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "MemoryFrames"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.6"
|
|
4
4
|
# ^^^^^
|
|
5
5
|
# Wheel names will be generated according to this value. Do not manually modify this value; instead
|
|
6
6
|
# update it according to committed changes by running this command from the root of the repository:
|
|
@@ -12,17 +12,21 @@ readme = "README.md"
|
|
|
12
12
|
authors = [
|
|
13
13
|
{ name = "David Brownell", email = "github@DavidBrownell.com" }
|
|
14
14
|
]
|
|
15
|
-
requires-python = ">= 3.
|
|
16
|
-
dependencies = [
|
|
15
|
+
requires-python = ">= 3.14"
|
|
16
|
+
dependencies = [
|
|
17
|
+
"dbrownell-common>=0.16.0",
|
|
18
|
+
"pluggy>=1.6.0",
|
|
19
|
+
"python-frontmatter>=1.1.0",
|
|
20
|
+
"textual>=6.8.0",
|
|
21
|
+
"typer>=0.20.0",
|
|
22
|
+
"typer-config>=1.4.3",
|
|
23
|
+
]
|
|
17
24
|
classifiers = [
|
|
18
25
|
"Operating System :: MacOS",
|
|
19
26
|
"Operating System :: Microsoft :: Windows",
|
|
20
27
|
"Operating System :: POSIX :: Linux",
|
|
21
28
|
"Programming Language :: Python",
|
|
22
|
-
"Programming Language :: Python :: 3.
|
|
23
|
-
"Programming Language :: Python :: 3.12",
|
|
24
|
-
"Programming Language :: Python :: 3.11",
|
|
25
|
-
"Programming Language :: Python :: 3.10",
|
|
29
|
+
"Programming Language :: Python :: 3.14",
|
|
26
30
|
]
|
|
27
31
|
|
|
28
32
|
[project.license]
|
|
@@ -40,11 +44,13 @@ build-backend = "uv_build"
|
|
|
40
44
|
[dependency-groups]
|
|
41
45
|
dev = [
|
|
42
46
|
"autogitsemver>=0.9.2",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"pytest
|
|
47
|
-
"
|
|
47
|
+
"dbrownell-commitemojis>=0.2.0",
|
|
48
|
+
"pre-commit>=4.5.0",
|
|
49
|
+
"py-minisign>=0.13.0",
|
|
50
|
+
"pytest>=9.0.2",
|
|
51
|
+
"pytest-cov>=7.0.0",
|
|
52
|
+
"ruff>=0.14.9",
|
|
53
|
+
"textual-dev>=1.8.0",
|
|
48
54
|
]
|
|
49
55
|
|
|
50
56
|
[tool.pytest.ini_options]
|
|
@@ -52,12 +58,14 @@ addopts = "--verbose -vv --capture=no --cov=MemoryFrames --cov-report html --cov
|
|
|
52
58
|
python_files = [
|
|
53
59
|
"**/*Test.py",
|
|
54
60
|
]
|
|
61
|
+
norecursedirs = ["prototype"]
|
|
55
62
|
|
|
56
63
|
[tool.ruff]
|
|
57
64
|
line-length = 110
|
|
65
|
+
exclude = ["prototype/**"]
|
|
58
66
|
|
|
59
67
|
[tool.ruff.lint]
|
|
60
|
-
exclude = ["tests/**"]
|
|
68
|
+
exclude = ["tests/**", "prototype/**"]
|
|
61
69
|
|
|
62
70
|
select = ["ALL"]
|
|
63
71
|
|
|
@@ -66,6 +74,8 @@ ignore = [
|
|
|
66
74
|
"ANN003", # Missing type annotation for `**kwargs`
|
|
67
75
|
"BLE001", # Do not catch blind exception: `Exception`
|
|
68
76
|
"COM812", # Trailing comma missing
|
|
77
|
+
"D100", # Missing docstring in public module
|
|
78
|
+
"D104", # Missing docstring in public package
|
|
69
79
|
"D105", # Missing docstring in magic method
|
|
70
80
|
"D107", # Missing docstring in `__init__` method
|
|
71
81
|
"D202", # No blank lines allowed after function docstring
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from importlib.metadata import version
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
# ----------------------------------------------------------------------
|
|
5
|
+
APP_NAME = "MemoryFrames"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# ----------------------------------------------------------------------
|
|
9
|
+
__version__ = version("MemoryFrames")
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"""An example of how to create scripts that can be invoked from the command line once the package is installed."""
|
|
2
|
-
|
|
3
|
-
import sys
|
|
4
|
-
|
|
5
|
-
import typer
|
|
6
|
-
|
|
7
|
-
from typer.core import TyperGroup # type: ignore [import-untyped]
|
|
8
|
-
|
|
9
|
-
from MemoryFrames import Math, __version__
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
# ----------------------------------------------------------------------
|
|
13
|
-
class NaturalOrderGrouper(TyperGroup): # noqa: D101
|
|
14
|
-
# ----------------------------------------------------------------------
|
|
15
|
-
def list_commands(self, *args, **kwargs) -> list[str]: # noqa: ARG002, D102
|
|
16
|
-
return list(self.commands.keys()) # pragma: no cover
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
# ----------------------------------------------------------------------
|
|
20
|
-
app = typer.Typer(
|
|
21
|
-
cls=NaturalOrderGrouper,
|
|
22
|
-
help=__doc__,
|
|
23
|
-
no_args_is_help=True,
|
|
24
|
-
pretty_exceptions_show_locals=False,
|
|
25
|
-
pretty_exceptions_enable=False,
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
# ----------------------------------------------------------------------
|
|
30
|
-
@app.command("Add")
|
|
31
|
-
def Add(
|
|
32
|
-
x: int,
|
|
33
|
-
y: int,
|
|
34
|
-
) -> None:
|
|
35
|
-
"""Add 2 values."""
|
|
36
|
-
|
|
37
|
-
sys.stdout.write(str(Math.Add(x, y)))
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
# ----------------------------------------------------------------------
|
|
41
|
-
@app.command("Sub")
|
|
42
|
-
def Sub(
|
|
43
|
-
x: int,
|
|
44
|
-
y: int,
|
|
45
|
-
) -> None:
|
|
46
|
-
"""Subtract 2 values."""
|
|
47
|
-
|
|
48
|
-
sys.stdout.write(str(Math.Sub(x, y)))
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
# ----------------------------------------------------------------------
|
|
52
|
-
@app.command("Mult")
|
|
53
|
-
def Mult(
|
|
54
|
-
x: int,
|
|
55
|
-
y: int,
|
|
56
|
-
) -> None:
|
|
57
|
-
"""Multiplie 2 values."""
|
|
58
|
-
|
|
59
|
-
sys.stdout.write(str(Math.Mult(x, y)))
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
# ----------------------------------------------------------------------
|
|
63
|
-
@app.command("Div")
|
|
64
|
-
def Div(
|
|
65
|
-
x: int,
|
|
66
|
-
y: int,
|
|
67
|
-
) -> None:
|
|
68
|
-
"""Divide 1 value by another."""
|
|
69
|
-
|
|
70
|
-
sys.stdout.write(str(Math.Div(x, y)))
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
# ----------------------------------------------------------------------
|
|
74
|
-
@app.command("Version")
|
|
75
|
-
def Version() -> None:
|
|
76
|
-
"""Print the version of the package."""
|
|
77
|
-
|
|
78
|
-
sys.stdout.write(__version__)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
# ----------------------------------------------------------------------
|
|
82
|
-
# ----------------------------------------------------------------------
|
|
83
|
-
# ----------------------------------------------------------------------
|
|
84
|
-
if __name__ == "__main__":
|
|
85
|
-
app() # pragma: no cover
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"""Basic math functions. This file illustrates how to create a python package that contains functions that can be invoked by other python code."""
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# ----------------------------------------------------------------------
|
|
5
|
-
def Add(x, y): # noqa: ANN001, ANN201, D103
|
|
6
|
-
return x + y
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
# ----------------------------------------------------------------------
|
|
10
|
-
def Sub(x, y): # noqa: ANN001, ANN201, D103
|
|
11
|
-
return x - y
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# ----------------------------------------------------------------------
|
|
15
|
-
def Mult(x, y): # noqa: ANN001, ANN201, D103
|
|
16
|
-
return x * y
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
# ----------------------------------------------------------------------
|
|
20
|
-
def Div(x, y): # noqa: ANN001, ANN201, D103
|
|
21
|
-
return x / y
|
|
File without changes
|
|
File without changes
|