Skip to main content

a pizzacutter default test project, crated with PizzaCutter and the PizzaCutter default python template

Project description

Version v1.0.6 as of 2023-07-13 see Changelog

build_badge license jupyter black

codecov Maintainability Maintainability Code Coverage snyk

This is the test project created using PizzaCutter

PizzaCutter is a command-line utility that creates and updates software projects in any language from PizzaCutter project templates.

The purpose of this repository is, to show and test a newly created project from the python default template.

More Information can be found here :

automated tests, Github Actions, Documentation, Badges, etc. are managed with PizzaCutter (cookiecutter on steroids)

Python version required: 3.8.0 or newer

tested on recent linux with python 3.8, 3.9, 3.10, 3.11, pypy-3.9 - architectures: amd64

100% code coverage, flake8 style checking ,mypy static type checking ,tested under Linux, macOS, Windows, automatic daily builds and monitoring



Try it Online

You might try it right away in Jupyter Notebook by using the “launch binder” badge, or click here

Usage

  • example for including docstrings

def main() -> None:
    """
    the main method, prints hello world


    Parameter
    ----------
    none
        none


    Result
    ----------
    none


    Exceptions
    ----------
    none


    Examples
    ----------

    >>> main()
    Hello World - by PizzaCutter

    """

Usage from Commandline

Usage: pct_python_default_test [OPTIONS] COMMAND [ARGS]...

  a pizzacutter default test project, crated with PizzaCutter and the
  PizzaCutter default python template

Options:
  --version                     Show the version and exit.
  --traceback / --no-traceback  return traceback information on cli
  -h, --help                    Show this message and exit.

Commands:
  info  get program informations

Installation and Upgrade

  • Before You start, its highly recommended to update pip and setup tools:

python -m pip --upgrade pip
python -m pip --upgrade setuptools
  • to install the latest version from github via pip:

python -m pip install --upgrade git+https://github.com/bitranox/pct_python_default_test.git
  • include it into Your requirements.txt:

# Insert following line in Your requirements.txt:
# for the latest development version :
pct_python_default_test @ git+https://github.com/bitranox/pct_python_default_test.git

# to install and upgrade all modules mentioned in requirements.txt:
python -m pip install --upgrade -r /<path>/requirements.txt
  • to install the latest development version, including test dependencies from source code:

# cd ~
$ git clone https://github.com/bitranox/pct_python_default_test.git
$ cd pct_python_default_test
python -m pip install -e .[test]
  • via makefile: makefiles are a very convenient way to install. Here we can do much more, like installing virtual environments, clean caches and so on.

# from Your shell's homedirectory:
$ git clone https://github.com/bitranox/pct_python_default_test.git
$ cd pct_python_default_test

# to run the tests:
$ make test

# to install the package
$ make install

# to clean the package
$ make clean

# uninstall the package
$ make uninstall

Requirements

following modules will be automatically installed :

## Project Requirements
click
cli_exit_tools

Acknowledgements

  • special thanks to “uncle bob” Robert C. Martin, especially for his books on “clean code” and “clean architecture”

Contribute

I would love for you to fork and send me pull request for this project. - please Contribute

License

This software is licensed under the MIT license

Changelog

  • new MAJOR version for incompatible API changes,

  • new MINOR version for added functionality in a backwards compatible manner

  • new PATCH version for backwards compatible bug fixes

v1.0.6

2023-07-13:
  • require minimum python 3.8

  • remove python 3.7 tests

v1.0.5

2023-xx-xx:
  • introduce PEP517 packaging standard

  • introduce pyproject.toml build-system

  • remove mypy.ini

  • remove pytest.ini

  • remove setup.cfg

  • remove setup.py

  • remove .bettercodehub.yml

  • remove .travis.yml

  • update black config

  • clean ./tests/test_cli.py

v1.0.4

2023-06-26:
  • update black config

  • remove travis config

  • remove bettercodehub config

  • do not upload .egg files to pypi.org

v1.0.3

2023-01-13:
  • update github actions : checkout@v3 and setup-python@v4

  • remove “better code” badges

  • remove python 3.6 tests

  • adding python 3.11 tests

  • update pypy tests to 3.9

v1.0.2

2022-05-20: update github actions test matrix to python 3.10

v1.0.1

2022-03-29: remedy mypy Untyped decorator makes function “cli_info” untyped

v1.0.0

2022-03-25: remove listdir of ./dist, moved to lib_cicd_github

v0.1.1

2020-08-01: fix pypi deploy

v0.1.0

2020-07-31:
  • change1

  • change2

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pct_python_default_test-1.0.6.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pct_python_default_test-1.0.6-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file pct_python_default_test-1.0.6.tar.gz.

File metadata

  • Download URL: pct_python_default_test-1.0.6.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for pct_python_default_test-1.0.6.tar.gz
Algorithm Hash digest
SHA256 1161d5bcf5fbb04abcc8462a988fbac91403a3c69c7b65a7d5b7610f1c2d6bc5
MD5 4dd4a9a0e1157624de4ddc9d4b851b34
BLAKE2b-256 5a84b0316eade813c46118a6f5bd6b831ba6befbd53618dfb2c0f668bd514e56

See more details on using hashes here.

File details

Details for the file pct_python_default_test-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for pct_python_default_test-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 658efae55196fd033b510f31fc0c8293122f9bce449076e4e73783b7f0c2b0c3
MD5 cdd613e02c01817f13114e03232b6269
BLAKE2b-256 b30526e24ca83b3c39033f5bace7ecd3743cb38dc024dbc5466515b2ed98c778

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page