Skip to content

API Reference

__author__ module-attribute

__author__ = 'Peter Yuen'

__email__ module-attribute

__email__ = 'ppeetteerrsx@gmail.com'

__version__ module-attribute

__version__ = metadata.version('simple_poetry')

__docs

__docs()

Build gh-pages documentation branch.

Source code in simple_poetry/__init__.py
32
33
34
35
36
37
38
39
def __docs():  # pragma: no cover
    """
    Build gh-pages documentation branch.
    """
    shell(
        "cp README.md docs/index.md && \
            mkdocs gh-deploy --force"
    )

__serve

__serve()

Serve local documentation.

Source code in simple_poetry/__init__.py
22
23
24
25
26
27
28
29
def __serve():  # pragma: no cover
    """
    Serve local documentation.
    """
    shell(
        "cp README.md docs/index.md && \
            mkdocs serve"
    )

__test

__test()

Runs pytest locally and keeps only coverage.xml for GitHub Actions to upload to Codecov.

Source code in simple_poetry/__init__.py
12
13
14
15
16
17
18
19
def __test():  # pragma: no cover
    """
    Runs pytest locally and keeps only `coverage.xml` for GitHub Actions to upload to Codecov.
    """
    shell(
        "pytest --cov=simple_poetry --cov-report xml --cov-report term-missing tests \
            && rm -rf .pytest_cache && rm .coverage"
    )