11[ ![ CI] ( https://github.com/andreascaglioni/python-project-template/actions/workflows/tests.yml/badge.svg )] ( https://github.com/andreascaglioni/python-project-template/actions/workflows/tests.yml )
22[ ![ Docs] ( https://github.com/andreascaglioni/python-project-template/actions/workflows/docs.yml/badge.svg )] ( https://github.com/andreascaglioni/python-project-template/actions/workflows/docs.yml )
3- [ ![ codecov ] ( https://codecov. io/gh/andreascaglioni /python-project-template/branch/main/graph/badge .svg )] ( https://codecov.io/gh/andreascaglioni/ python-project-template )
4- [ ![ PyPI Version] ( https://img.shields.io/pypi/v/python-project-template .svg )] ( https://pypi.org/project/python-project-template/ )
3+ [ ![ PyPI Version ] ( https://img.shields. io/pypi/v /python-project-template.svg )] ( https://pypi.org/project/ python-project-template-AS/ )
4+ [ ![ TestPyPI Version] ( https://img.shields.io/badge/TestPyPI-latest-informational .svg )] ( https://test. pypi.org/project/python-project-template-AS / )
55[ ![ Python] ( https://img.shields.io/badge/python-3.8%2B-blue.svg )] ( https://www.python.org/ )
66[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( LICENSE )
77
@@ -43,14 +43,20 @@ This simple code is used to showcase some good coding practices.
4343
4444## Installation
4545
46- Clone the repository, create a virtual environment (recommended), and install dependencies and an editable installation of ` python-project-template ` :
46+ To install the latest release from TestPyPI, use :
4747
4848``` bash
49- git clone < https://github.com/andreascaglioni/python-project-template>
50- cd python-project-template
5149python3 -m venv .venv
5250source .venv/bin/activate
53- python -m pip install --upgrade pip setuptools wheel
51+ python -m pip install --upgrade pip
52+ pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple python-project-template-AS
53+ ```
54+
55+ Alternatively, you can clone the repository, create a virtual environment (recommended), and install dependencies and an editable installation of ` python-project-template ` :
56+
57+ ``` bash
58+ git clone < https://github.com/andreascaglioni/python-project-template>
59+ cd python-project-template
5460pip install -e " .[dev]"
5561```
5662
@@ -59,7 +65,7 @@ pip install -e ".[dev]"
5965The following is a quick example for the Calculator API.
6066
6167``` python
62- from python_project_template import default_calculator, Operation
68+ from python_project_template_AS import default_calculator, Operation
6369
6470# Create a default calculator (pre-populated with common operations)
6571calc = default_calculator()
@@ -88,20 +94,26 @@ print(calc.apply('inc', 4)) # -> 5
8894
8995For detailed documentation, please visit our [ GitHub Pages] ( https://andreascaglioni.github.io/your-repo-name/ ) .
9096
97+ To build the documentation locally:
98+
99+ 1 . Ensure all dependencies for documentation (e.g., Sphinx) generation are installed, for example running `` pip install -e ".[docs]" `` .
100+ 2 . Run the documentation build command (for example, `` make html `` ).
101+ 3 . Review the generated HTML in `` docs/_build/html `` .
102+
91103## Running tests
92104
93105Run the full PyTest test suite with coverage:
94106
95107``` bash
96- pytest -q --cov=python_project_template --cov-report=term --cov-report=html
108+ pytest -q --cov=python_project_template_AS --cov-report=term --cov-report=html
97109```
98110
99111Open ` htmlcov/index.html ` to view the coverage report.
100112
101113## Project structure
102114
103115```
104- src/python_project_template/ # Core library package
116+ src/python_project_template_AS/ # Core library package
105117 calculator.py # Calculator API
106118 operations.py # Built-in operations
107119 registry.py # Operation registry
0 commit comments