binnev-python-template 6.0.3__tar.gz → 7.0.1__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.
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/PKG-INFO +1 -1
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/binnev_python_template.egg-info/PKG-INFO +1 -1
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/binnev_python_template.egg-info/SOURCES.txt +1 -4
- binnev_python_template-7.0.1/binnev_python_template.egg-info/top_level.txt +1 -0
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/pyproject.toml +9 -7
- binnev_python_template-6.0.3/binnev_python_template.egg-info/top_level.txt +0 -1
- binnev_python_template-6.0.3/src/core/__init__.py +0 -5
- binnev_python_template-6.0.3/src/core/calculator.py +0 -95
- binnev_python_template-6.0.3/src/core/greeter.py +0 -12
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/README.md +0 -0
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/binnev_python_template.egg-info/dependency_links.txt +0 -0
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/binnev_python_template.egg-info/entry_points.txt +0 -0
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/binnev_python_template.egg-info/requires.txt +0 -0
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/setup.cfg +0 -0
- /binnev_python_template-6.0.3/src/core/py.typed → /binnev_python_template-7.0.1/src/__init__.py +0 -0
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/tests/test_api.py +0 -0
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/tests/test_async_stuff.py +0 -0
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/tests/test_calculator.py +0 -0
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/tests/test_cli.py +0 -0
- {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/tests/test_greeter.py +0 -0
|
@@ -6,10 +6,7 @@ binnev_python_template.egg-info/dependency_links.txt
|
|
|
6
6
|
binnev_python_template.egg-info/entry_points.txt
|
|
7
7
|
binnev_python_template.egg-info/requires.txt
|
|
8
8
|
binnev_python_template.egg-info/top_level.txt
|
|
9
|
-
src/
|
|
10
|
-
src/core/calculator.py
|
|
11
|
-
src/core/greeter.py
|
|
12
|
-
src/core/py.typed
|
|
9
|
+
src/__init__.py
|
|
13
10
|
tests/test_api.py
|
|
14
11
|
tests/test_async_stuff.py
|
|
15
12
|
tests/test_calculator.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
src
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
urls = { Homepage = "https://github.com/binnev/python-template" }
|
|
3
3
|
|
|
4
4
|
name = "binnev-python-template"
|
|
5
|
-
version = "
|
|
5
|
+
version = "7.0.1"
|
|
6
6
|
authors = [{ name = "Robin Neville", email = "robin.m.neville@gmail.com" }]
|
|
7
7
|
description = "Add your description here"
|
|
8
8
|
readme = "README.md"
|
|
@@ -47,14 +47,16 @@ dev = [
|
|
|
47
47
|
"twine>=6.1.0",
|
|
48
48
|
]
|
|
49
49
|
|
|
50
|
-
#
|
|
51
|
-
# consumes your code as a python library
|
|
52
|
-
[tool.setuptools]
|
|
53
|
-
packages = ["libname"]
|
|
50
|
+
# ------------------------------------------------------------------------------
|
|
54
51
|
|
|
55
|
-
|
|
52
|
+
[tool.setuptools.packages.find]
|
|
53
|
+
include = ["src"]
|
|
54
|
+
|
|
55
|
+
# Give the src dir a different name when you import it
|
|
56
56
|
[tool.setuptools.package-dir]
|
|
57
|
-
|
|
57
|
+
python_template = "src"
|
|
58
|
+
|
|
59
|
+
# ------------------------------------------------------------------------------
|
|
58
60
|
|
|
59
61
|
[tool.pytest.ini_options]
|
|
60
62
|
asyncio_mode = "auto"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
libname
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"""The core calculator library with basic arithmetic operations."""
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
def add(a: float, b: float) -> float:
|
|
5
|
-
"""
|
|
6
|
-
Return the sum of two numbers.
|
|
7
|
-
|
|
8
|
-
The `add` function is a simple utility designed to perform the addition of
|
|
9
|
-
two floating-point numbers. It takes two arguments, `a` and `b`, both of
|
|
10
|
-
which are expected to be of type `float`. The function returns their sum,
|
|
11
|
-
also as a `float`.
|
|
12
|
-
|
|
13
|
-
Args:
|
|
14
|
-
a: The first number.
|
|
15
|
-
b: The second number.
|
|
16
|
-
|
|
17
|
-
Returns:
|
|
18
|
-
The sum of the two numbers.
|
|
19
|
-
|
|
20
|
-
Examples:
|
|
21
|
-
>>> add(2, 3)
|
|
22
|
-
5
|
|
23
|
-
|
|
24
|
-
>>> add(-1, 1)
|
|
25
|
-
0
|
|
26
|
-
"""
|
|
27
|
-
return a + b
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
def subtract(a: float, b: float) -> float:
|
|
31
|
-
"""
|
|
32
|
-
Return the difference of two numbers.
|
|
33
|
-
|
|
34
|
-
Args:
|
|
35
|
-
a: The first number.
|
|
36
|
-
b: The second number.
|
|
37
|
-
|
|
38
|
-
Returns:
|
|
39
|
-
The difference of the two numbers.
|
|
40
|
-
|
|
41
|
-
Examples:
|
|
42
|
-
>>> subtract(5, 3)
|
|
43
|
-
2
|
|
44
|
-
|
|
45
|
-
>>> subtract(2, 5)
|
|
46
|
-
-3
|
|
47
|
-
"""
|
|
48
|
-
return a - b
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
def multiply(a: float, b: float) -> float:
|
|
52
|
-
"""
|
|
53
|
-
Return the product of two numbers.
|
|
54
|
-
|
|
55
|
-
Args:
|
|
56
|
-
a: The first number.
|
|
57
|
-
b: The second number.
|
|
58
|
-
|
|
59
|
-
Returns:
|
|
60
|
-
The product of the two numbers.
|
|
61
|
-
|
|
62
|
-
Examples:
|
|
63
|
-
>>> multiply(2, 3)
|
|
64
|
-
6
|
|
65
|
-
|
|
66
|
-
>>> multiply(-1, 4)
|
|
67
|
-
-4
|
|
68
|
-
"""
|
|
69
|
-
return a * b
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
def divide(a: float, b: float) -> float:
|
|
73
|
-
"""
|
|
74
|
-
Return the division of two numbers. Raise an error if dividing by zero.
|
|
75
|
-
|
|
76
|
-
Args:
|
|
77
|
-
a: The numerator.
|
|
78
|
-
b: The denominator.
|
|
79
|
-
|
|
80
|
-
Returns:
|
|
81
|
-
The result of the division.
|
|
82
|
-
|
|
83
|
-
Raises:
|
|
84
|
-
ValueError: If the denominator is zero.
|
|
85
|
-
|
|
86
|
-
Examples:
|
|
87
|
-
>>> divide(6, 3)
|
|
88
|
-
2.0
|
|
89
|
-
|
|
90
|
-
>>> divide(5, 2)
|
|
91
|
-
2.5
|
|
92
|
-
"""
|
|
93
|
-
if b == 0:
|
|
94
|
-
raise ValueError("Cannot divide by zero.")
|
|
95
|
-
return a / b
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/binnev_python_template-6.0.3/src/core/py.typed → /binnev_python_template-7.0.1/src/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|