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.
Files changed (20) hide show
  1. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/PKG-INFO +1 -1
  2. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/binnev_python_template.egg-info/PKG-INFO +1 -1
  3. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/binnev_python_template.egg-info/SOURCES.txt +1 -4
  4. binnev_python_template-7.0.1/binnev_python_template.egg-info/top_level.txt +1 -0
  5. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/pyproject.toml +9 -7
  6. binnev_python_template-6.0.3/binnev_python_template.egg-info/top_level.txt +0 -1
  7. binnev_python_template-6.0.3/src/core/__init__.py +0 -5
  8. binnev_python_template-6.0.3/src/core/calculator.py +0 -95
  9. binnev_python_template-6.0.3/src/core/greeter.py +0 -12
  10. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/README.md +0 -0
  11. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/binnev_python_template.egg-info/dependency_links.txt +0 -0
  12. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/binnev_python_template.egg-info/entry_points.txt +0 -0
  13. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/binnev_python_template.egg-info/requires.txt +0 -0
  14. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/setup.cfg +0 -0
  15. /binnev_python_template-6.0.3/src/core/py.typed → /binnev_python_template-7.0.1/src/__init__.py +0 -0
  16. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/tests/test_api.py +0 -0
  17. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/tests/test_async_stuff.py +0 -0
  18. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/tests/test_calculator.py +0 -0
  19. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/tests/test_cli.py +0 -0
  20. {binnev_python_template-6.0.3 → binnev_python_template-7.0.1}/tests/test_greeter.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: binnev-python-template
3
- Version: 6.0.3
3
+ Version: 7.0.1
4
4
  Summary: Add your description here
5
5
  Author-email: Robin Neville <robin.m.neville@gmail.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: binnev-python-template
3
- Version: 6.0.3
3
+ Version: 7.0.1
4
4
  Summary: Add your description here
5
5
  Author-email: Robin Neville <robin.m.neville@gmail.com>
6
6
  License-Expression: MIT
@@ -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/core/__init__.py
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
@@ -2,7 +2,7 @@
2
2
  urls = { Homepage = "https://github.com/binnev/python-template" }
3
3
 
4
4
  name = "binnev-python-template"
5
- version = "6.0.3"
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
- # This tells setuptools which packages you want to be importable when someone
51
- # consumes your code as a python library
52
- [tool.setuptools]
53
- packages = ["libname"]
50
+ # ------------------------------------------------------------------------------
54
51
 
55
- # This maps source code directory names to package names
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
- libname = "src/core"
57
+ python_template = "src"
58
+
59
+ # ------------------------------------------------------------------------------
58
60
 
59
61
  [tool.pytest.ini_options]
60
62
  asyncio_mode = "auto"
@@ -1,5 +0,0 @@
1
- __app_name__ = "python-template"
2
- __version__ = "6.0.3"
3
-
4
- from . import calculator as calculator
5
- from . import greeter as greeter
@@ -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
@@ -1,12 +0,0 @@
1
- def greeting(name: str = "") -> str:
2
- """
3
- Greet a person.
4
-
5
- Args:
6
- name: the name of the person to greet
7
-
8
- Returns:
9
- A greeting string
10
- """
11
- name = name or "world"
12
- return f"Hello, {name}!"