Skip to main content

Internal utilities for projects following git-pull python package spec

Project description

Project helpers for git-pull python projects

Python Package Docs Build Status Code Coverage License

You probably don't need these. These are internal helpers.

doctest helpers (for docutils)

Two parts:

  1. doctest module: Same specification as doctest, but can parse reStructuredText and markdown
  2. pytest plugin: Collects pytest for reStructuredText and markdown files

doctest module

...

This extends standard library doctest to support anything docutils can parse. It can parse reStructuredText (.rst) and markdown (.md).

It supports two barebones directives:

  • docutils' doctest_block

    >>> 2 + 2
    4
    
  • .. doctest:: directive

    reStructuredText:

    .. doctest::
    
       >>> 2 + 2
       4
    

    Markdown (requires myst-parser):

    ```{doctest}
    >>> 2 + 2
    4
    ```
    

pytest plugin

...

This plugin integrates with the above module.

$ pytest docs/

Like the above module, it supports docutils' own doctest_block and a basic .. doctest:: directive.

sphinx plugins

Plain-text issue linker

We need to parse plain text, e.g. #99999, to point to the project tracker at https://github.com/git-pull/gp-libs/issues/99999. This way the markdown looks good anywhere you render it, including GitHub and GitLab.

Table of contents for autodoc

sphinx.ext.autodoc doesn't link objects in the table of contents. So we need a plugin to help.

Install

$ pip install --user gp-libs

Developmental releases

You can test the unpublished version of g before its released.

  • pip:

    $ pip install --user --upgrade --pre gp-libs
    

More information

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

gp-libs-0.0.1a0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

gp_libs-0.0.1a0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file gp-libs-0.0.1a0.tar.gz.

File metadata

  • Download URL: gp-libs-0.0.1a0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.10.6 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for gp-libs-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 b4d0f2b42a8844071be7e8ab30f6eb692c812fe7c713873bb0f509f913e7375d
MD5 3de92e865f1de11cf941f1173b3bc9ad
BLAKE2b-256 0c298332a0a169d33aa26e80df7e5bcb616080a002bf616db8bfc46a70ac2f71

See more details on using hashes here.

File details

Details for the file gp_libs-0.0.1a0-py3-none-any.whl.

File metadata

  • Download URL: gp_libs-0.0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.10.6 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for gp_libs-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 afb2cea617b5c4dd2e9aa1628016d449f9d1dacb26ddbad1caf3317a926b7c27
MD5 799a074d0a743f5052867e3fd34e602b
BLAKE2b-256 623ae0e61643b240be999f9c6d7abf3a4fc7a6bd4c54a13f9bf848a7560dc205

See more details on using hashes here.

Supported by

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