Skip to main content

Internal utilities for projects following git-pull python package spec

Project description

gp-libs · Python Package License Code Coverage

You probably don't need these. These are internal helpers that are getting dogfooded on projects following git-pull's python package patterns, e.g. any python packages in cihai, vcs-python, or tmux-python. They're unstable (APIs can change without warning). When stabilized they can be broken off into separate packages, merged upstream, etc.

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

Docs Build Status

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.1a1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

gp_libs-0.0.1a1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gp-libs-0.0.1a1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for gp-libs-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 12fee346df8c6b06f6b3eb7ed5c13d1aca2512230ee9b9b004a3d2e9e1c89433
MD5 5a712c8f75a8f95512f4fb21a2f05659
BLAKE2b-256 1cc1ee8b9c850ba80931259c2f288ee3adb738f074692f2ff47e5315d0d11d21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gp_libs-0.0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for gp_libs-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 47b2378a47e930c747d67443cef1b4c2ecccfde5aa2ddadf605f05c6c7bc6579
MD5 b45284bbad5b8d5a5e63fa3a7817881d
BLAKE2b-256 fcc9e350a4c657b290728fb863ed9984eb8a6a8ed063c6670837b9d00f124537

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