Skip to content

Commit 6596c94

Browse files
renamed project to upload to testPyPI (name taken)
1 parent 1374e2a commit 6596c94

File tree

13 files changed

+14
-16
lines changed

13 files changed

+14
-16
lines changed

examples/example_1_calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Each operation is tested and the results are printed to verify correct behavior.
1313
"""
1414

15-
from python_project_template import Calculator, Operation, ADD, NEG
15+
from python_project_template_AS import Calculator, Operation, ADD, NEG
1616

1717

1818
# Initialize new calculator

examples/example_2_replace_operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Example on registering and replacing an operation with a new one (by the same name) in the Calculator class.
55
"""
66

7-
from python_project_template.calculator import Calculator, Operation
7+
from python_project_template_AS.calculator import Calculator, Operation
88

99

1010
if __name__ == "__main__":

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["hatchling >= 1.26"]
33
build-backend = "hatchling.build"
44

55
[project]
6-
name = "python-project-template"
6+
name = "python-project-template-AS"
77
description = "A minimal Python project demonstrating best practices for testing, documentation, and CI/CD. It implements a mini calculator as a minimal example."
88
version = "0.1.0"
99
readme = "README.md"
@@ -12,14 +12,12 @@ authors = [{ name = "Andrea Scaglioni", email = "[email protected]" }
1212
keywords = ["example", "template", "project-template", "pytest", "sphinx", "CI/CD"]
1313
license = { text = "MIT" }
1414
dependencies = []
15-
1615
classifiers = [
1716
"Programming Language :: Python :: 3",
1817
"License :: OSI Approved :: MIT License",
1918
"Operating System :: OS Independent",
2019
]
2120

22-
2321
[project.urls]
2422
Homepage = "https://github.com/andreascaglioni/python-project-template"
2523

File renamed without changes.

src/python_project_template/calculator.py renamed to src/python_project_template_AS/calculator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
operation-related failures.
1010
"""
1111

12-
from typing import Callable, Iterable, List, Any, Optional
12+
from typing import Callable, Iterable, List, Any, Optional, Union
1313

1414
from .registry import OperationRegistry
1515
from .operations import Operation
@@ -90,10 +90,10 @@ def composed(x):
9090

9191
return composed
9292

93-
def chain(self, sequence: Iterable[str], initial: Any) -> Any:
93+
def chain(self, sequence: Iterable[Union[str, int]], initial: Any) -> Any:
9494
"""Apply a mixed sequence of operations to an initial value.
9595
96-
The sequence may contain operation names (str) and literal values.
96+
The sequence may contain operation names (str) and literal integer values.
9797
Binary operations consume the current value and the next literal.
9898
This helper is intentionally small and tailored for tests/examples.
9999
"""
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from python_project_template import default_calculator
3+
from python_project_template_AS import default_calculator
44

55

66
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)