Skip to content

Commit 82e08bf

Browse files
committed
Merge branch 'release/1.0.0'
2 parents 59ced06 + 22c23fd commit 82e08bf

20 files changed

+2005
-209
lines changed

.github/workflows/python-package.yml

Lines changed: 48 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,46 +11,74 @@ on:
1111

1212
jobs:
1313
test:
14-
1514
runs-on: ubuntu-latest
1615
strategy:
1716
matrix:
18-
python-version: [3.6, 3.7, 3.8, 3.9]
19-
17+
python-version: ["3.9", "3.10", "3.11"]
18+
poetry-version: ["1.5.1", "1.4.2", "1.3.2", "1.2.2"]
2019
steps:
21-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2221
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v4
2423
with:
2524
python-version: ${{ matrix.python-version }}
25+
- name: Set up Poetry ${{ matrix.poetry-version }}
26+
uses: abatilo/actions-poetry@v2
27+
with:
28+
poetry-version: ${{ matrix.poetry-version }}
29+
- name: View poetry --help
30+
run: poetry --help
2631
- name: Install dependencies
2732
run: |
28-
wget https://github.com/jgm/pandoc/releases/download/2.11.4/pandoc-2.11.4-1-amd64.deb
29-
sudo dpkg -i pandoc-2.11.4-1-amd64.deb
30-
python -m pip install --upgrade pip
31-
pip install .[docs,test]
33+
wget https://github.com/jgm/pandoc/releases/download/3.1.3/pandoc-3.1.3-1-amd64.deb
34+
sudo dpkg -i ./pandoc-3.1.3-1-amd64.deb
35+
poetry install
3236
- name: Test with tox
3337
run: |
34-
tox -e py
38+
poetry run tox -e py
3539
36-
cov:
40+
style:
3741
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v3
44+
- name: Set up Python
45+
uses: actions/setup-python@v4
46+
with:
47+
python-version: '3.11'
48+
- name: Set up Poetry
49+
uses: abatilo/actions-poetry@v2
50+
with:
51+
poetry-version: '1.5'
52+
- name: Install dependencies
53+
run: |
54+
poetry install
55+
- name: Test with tox
56+
run: |
57+
poetry run tox -e style
58+
poetry run tox -e linter
3859
60+
cov:
61+
runs-on: ubuntu-latest
3962
steps:
40-
- uses: actions/checkout@v2
63+
- uses: actions/checkout@v3
4164
- name: Set up Python
42-
uses: actions/setup-python@v1
65+
uses: actions/setup-python@v4
4366
with:
44-
python-version: '3.x'
67+
python-version: '3.11'
68+
- name: Set up Poetry
69+
uses: abatilo/actions-poetry@v2
70+
with:
71+
poetry-version: '1.5'
4572
- name: Install dependencies
4673
run: |
47-
wget https://github.com/jgm/pandoc/releases/download/2.11.4/pandoc-2.11.4-1-amd64.deb
48-
sudo dpkg -i pandoc-2.11.4-1-amd64.deb
49-
python -m pip install --upgrade pip
50-
pip install setuptools coveralls .[test]
74+
wget https://github.com/jgm/pandoc/releases/download/3.1.3/pandoc-3.1.3-1-amd64.deb
75+
sudo dpkg -i ./pandoc-3.1.3-1-amd64.deb
76+
poetry install
5177
- name: Test
5278
env:
5379
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
5480
run: |
55-
coverage run --source=pandoc_codeblock_include setup.py test
56-
coveralls
81+
poetry run tox -e coverage
82+
poetry run pip install coveralls
83+
poetry run coveralls
84+

.github/workflows/python-publish.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,25 @@ on:
99

1010
jobs:
1111
deploy:
12-
1312
runs-on: ubuntu-latest
14-
1513
steps:
16-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1715
- name: Set up Python
18-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.11'
19+
- name: Set up Poetry
20+
uses: abatilo/actions-poetry@v2
1921
with:
20-
python-version: '3.x'
22+
poetry-version: '1.5'
2123
- name: Install dependencies
2224
run: |
23-
python -m pip install --upgrade pip
24-
pip install setuptools wheel twine
25+
poetry install
26+
poetry run pip install twine
2527
- name: Build and publish
2628
env:
2729
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2830
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2931
run: |
30-
python setup.py sdist bdist_wheel
31-
twine upload dist/*
32+
poetry build
33+
poetry run twine upload dist/*

.readthedocs.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.11"
12+
13+
# Build documentation in the "docs/" directory with Sphinx
14+
sphinx:
15+
configuration: docs/conf.py
16+
17+
# Optionally build your docs in additional formats such as PDF and ePub
18+
formats:
19+
- htmlzip
20+
21+
# Optional but recommended, declare the Python requirements required
22+
# to build your documentation
23+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
24+
python:
25+
install:
26+
- requirements: docs/requirements.txt
27+

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2018-2019, Christophe Demko
3+
Copyright (c) 2018-2023, Christophe Demko
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

MANIFEST.in

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# pandoc-codeblock-include
2-
![Python package](https://github.com/chdemko/pandoc-codeblock-include/workflows/Python%20package/badge.svg?branch=0.1.1)
3-
[![Coveralls](https://img.shields.io/coveralls/github/chdemko/pandoc-codeblock-include/0.1.1.svg?logo=Codecov&logoColor=white)](https://coveralls.io/github/chdemko/pandoc-codeblock-include?branch=0.1.1)
1+
Installation
2+
============
3+
4+
![Python package](https://github.com/chdemko/pandoc-codeblock-include/workflows/Python%20package/badge.svg?branch=develop)
5+
[![Coveralls](https://img.shields.io/coveralls/github/chdemko/pandoc-codeblock-include/develop.svg?logo=Codecov&logoColor=white)](https://coveralls.io/github/chdemko/pandoc-codeblock-include?branch=develop)
46
[![Code Climate](https://codeclimate.com/github/chdemko/pandoc-codeblock-include/badges/gpa.svg)](https://codeclimate.com/github/chdemko/pandoc-codeblock-include/)
5-
[![Code Beat](https://codebeat.co/badges/acdf2439-b9df-42df-8387-bd5f70e14314)](https://codebeat.co/projects/github-com-chdemko-pandoc-codeblock-include-develop/)
6-
[![Codacy](https://img.shields.io/codacy/grade/26716ef242ba4089aff55eff7ca592a9.svg?logo=codacy&logoColor=white)](https://www.codacy.com/app/chdemko/pandoc-codeblock-include)
7+
[![Code Beat](https://codebeat.co/badges/c0e680bd-9c47-4180-8d3f-b706905d0e73)](https://codebeat.co/projects/github-com-chdemko-pandoc-codeblock-include-develop/)
8+
[![Codacy](https://img.shields.io/codacy/grade/26716ef242ba4089aff55eff7ca592a9.svg?logo=codacy&logoColor=white)](https://app.codacy.com/gh/chdemko/pandoc-codeblock-include/)
79
[![PyPI version](https://img.shields.io/pypi/v/pandoc-codeblock-include.svg?logo=Python&logoColor=white)](https://pypi.org/project/pandoc-codeblock-include/)
810
[![PyPI format](https://img.shields.io/pypi/format/pandoc-codeblock-include.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4gwPFiYw92eBNAAAAgJJREFUeNrt3T1WwkAUgNH31Br3ogWptdAlgyvQxYgHeh0LKKxI+PHAzNyvRo8xlxl5CZKllBIaax0Rr5n53tqB3Ti3k7qPiEUpZQAAggEACAYAIBgAgGAAoG8Ey9oRAHBas9oR5NgcIDOz5TN4pjnIJiJeapwTWAFGfMR2CDRlJViUUuYAtAfgOSK+Jv5N8FbddlBGav4M7+9795jHUsqqTGtdFQIAxgE0jQCAaQCaRQDAdABNIgDgMADNIQDgcAB/EHxWjwCA4wDsvvahegQAHA+gCQQAnAagegQAnA6gagQAnAdArQhcDdx//D+ZeXvg95tHxDK21wbG2mTm/SWP38Wgcz+jMj8i4ikiVhMePrv0z3vnlO1/grS+DVoBehfuVwCAABAAAkAAqLO6nwP896Tz2ucIVgBbgAAQAAJAAAgAASAABIAAEAACQAAIADXZyfcD9P55A7W/c8oKYAsQAAJAAAgAASBzgJ5eB1sBBIAAEAACQAAIAJkDTM/9AO4HEAACQAAIAAEgANTPHMD9AFYAASAABIAAEAACQP3MAWq/H6D3OYYVwBYgAASAABAAAkDmAF5HWwEEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAXVWj/x+g988FtAIIAAEgAASAABAAaqhfB1BFkJjdTNQAAAAASUVORK5CYII=)](https://pypi.org/project/pandoc-codeblock-include/)
9-
[![License](https://img.shields.io/pypi/l/pandoc-codeblock-include.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABmCAYAAAADI5lUAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4gwPFiQKA106BAAABUNJREFUeNrtnV2IFlUYx3/P625qbrGlpWmWdaMVKau2EmpCrSDqxRpUUkr0SYVEFyFRUXQhfUAihTdCESVpKpKQpLZBsghltn605VVKpmZgGYvmbhpPFzMbWu3LO7szO1//H+zN7sw5c57nd8685+zMeY0quLsB04FW4A7gWmAMMAyRRbqBE8BRYCfwMfCNmXlfJ1iV5LcAbwBNimuu+Q54xcw21iSAuzcA7wOLFLtCsQl4yMxO9ymAu48HtgK3Kl6F5ACw0Mx++o8AYc/fBUxWnArN98DtZtYFULngDx8o+aXgZuDdi0YAd58fDv2iPMwzs+0WTvX2qfeXjv1Ak7n7DOBLxaOU3FYhWOQR5aS1AsxWHErLnArB8q4oJ+PM3buBoRFO6gJ2K3aZpBm4PMLxPXh09ijO2cTd90RNZkVhKzcSQAIICSAkgJAAQgIICSAkgJAAQgIIC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Q/8bcvRsYGuGcLuLbJ0/ESzPRvtW0x9z9MDBBsSslhyoE27eIcnKsAuxUHErLFxWC15tFOdli7m7AXmCK4lEq9gFTK+Hmx88pHqVjuZkFj4SZ2TZgs2JSGjaa2WcA1vsbd28AdgGTFZ9Csx+YaWZn4IKVQDM7DSwIDxDFve8v7E3+RQKEEhwFZgGbFKvC8REwK8wx/ytA70hgZvcQbInSobjlns6w1y++sOf/k+9qZ4ZTxKlAKzCH4OvfxgLDFNdM0k2wc/lRggW+LUBHtW8l+xuWwqBw5I0ApAAAAABJRU5ErkJggg==)](https://raw.githubusercontent.com/chdemko/pandoc-codeblock-include/0.1.1/LICENSE)
11+
[![License](https://img.shields.io/pypi/l/pandoc-codeblock-include.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABmCAYAAAADI5lUAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4gwPFiQKA106BAAABUNJREFUeNrtnV2IFlUYx3/P625qbrGlpWmWdaMVKau2EmpCrSDqxRpUUkr0SYVEFyFRUXQhfUAihTdCESVpKpKQpLZBsghltn605VVKpmZgGYvmbhpPFzMbWu3LO7szO1//H+zN7sw5c57nd8685+zMeY0quLsB04FW4A7gWmAMMAyRRbqBE8BRYCfwMfCNmXlfJ1iV5LcAbwBNimuu+Q54xcw21iSAuzcA7wOLFLtCsQl4yMxO9ymAu48HtgK3Kl6F5ACw0Mx++o8AYc/fBUxWnArN98DtZtYFULngDx8o+aXgZuDdi0YAd58fDv2iPMwzs+0WTvX2qfeXjv1Ak7n7DOBLxaOU3FYhWOQR5aS1AsxWHErLnArB8q4oJ+PM3buBoRFO6gJ2K3aZpBm4PMLxPXh09ijO2cTd90RNZkVhKzcSQAIICSAkgJAAQgIICSAkgJAAQgIICSAKT91gVOLui4EVKbZzvZm9kGD7rgHmEbw9NRoYCTQCvwInCd7UaQPaep/GLZUABP+ivDHFdo5KKPHTgNeAu6jyll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gFTK+Hmx88pHqVjuZkFj4SZ2TZgs2JSGjaa2WcA1vsbd28AdgGTFZ9Csx+YaWZn4IKVQDM7DSwIDxDFve8v7E3+RQKEEhwFZgGbFKvC8REwK8wx/ytA70hgZvcQbInSobjlns6w1y++sOf/k+9qZ4ZTxKlAKzCH4OvfxgLDFNdM0k2wc/lRggW+LUBHtW8l+xuWwqBw5I0ApAAAAABJRU5ErkJggg==)](https://raw.githubusercontent.com/chdemko/pandoc-codeblock-include/develop/LICENSE)
1012
[![Python version](https://img.shields.io/pypi/pyversions/pandoc-codeblock-include.svg?logo=Python&logoColor=white)](https://pypi.org/project/pandoc-codeblock-include/)
1113
[![Downloads](https://pepy.tech/badge/pandoc-codeblock-include)](https://pepy.tech/project/pandoc-codeblock-include)
1214
[![Development Status](https://img.shields.io/pypi/status/pandoc-codeblock-include.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4gwPFiUnX5lXMAAAAlBJREFUeNrt3b1qlEEUBuB3TNDCP7wDOwv/cgv+pDC3YcDe+xBFFFLoDWhhpxiD12Ch1mJsg7irjRLGYjcKEbLC92n223meMgQSzrx7Zs6wMAkAAAAAAAAAAAAAAAAAAAAw78r+H9RaLyZZT3Itydkkx5XpUH1L8iHJVpJHpZS3/yQAtdZjSe4muZXkiLrPpd0kG0lul1K+9xaA6eK/SHJFjQfhdZIbfYRg75N+z+IPytUkd3rpANM9/422P8jt4HIp5V3XDrBu8QdpKcnNPraA62o5WKt9bAHjJCfUcpDGpZRTXQNQ1fGAApVSDvPvz1qfrv+fvb9xAiAACACDVf80qrU+q7Wecwhs4BB4gM+ZXBRt6wBtOpO/uC7WARa3AyTJqJRyWgdo18xLIgEwBSAACABt3hOYAhZ7Cph9TyAAzQYgSZ4KQNsBGAlA2wFwCDQFIAAIAAKAACAACAACgAAgAAgAAoAAIAAIAIvniwC07aVvBM2wwN8I2kmyogO0Z5TkSZKVUsqnZfVou4PpAKYABAABYDHnfAFofM6feUh0D7Cw9wA7e6OeDtDwnD/rl90DNN6hdABTAAJAs5aTjJOcVIreT+H/68DXuQNsW+bB+thHAF6p42Btdp4iaq0XMnk2bkk9B2U3yaVSyvtOHWD6Fu2Geg7Ow66Ln/x+OvZokueZPBjN/NtKslZK+dHLGDh9g3YtyYNpa2F+2/79vhb/VwfYN/acz+RFytVMno/3puDh+prJ8/GbSR730fYBAAAAAAAAAAAAAAAAAACAYfkJuHbYr8dtGYwAAAAASUVORK5CYII=)](https://pypi.org/project/pandoc-codeblock-include/)
@@ -20,19 +22,7 @@ license icon by [Daniel Bruce](https://www.iconfinder.com/icons/216659/license_i
2022

2123
[pandoc]: http://pandoc.org/
2224

23-
Documentation
24-
-------------
25-
26-
See the [wiki pages](https://github.com/chdemko/pandoc-codeblock-include/wiki).
27-
28-
Usage
29-
-----
30-
31-
To apply the filter, use the following option with pandoc:
32-
33-
--filter pandoc-codeblock-include
34-
35-
Installation
25+
Instructions
3626
------------
3727

3828
*pandoc-codeblock-include* requires [python], a programming language that comes pre-installed on linux and Mac OS X, and which is easily installed [on Windows]. Either python 2.7 or 3.x will do.

docs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
```{include} ../README.md
2+
```

docs/conf.py

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Configuration file for the Sphinx documentation builder.
4+
#
5+
# This file does only contain a selection of the most common options. For a
6+
# full list see the documentation:
7+
# http://www.sphinx-doc.org/en/master/config
8+
9+
# -- Path setup --------------------------------------------------------------
10+
11+
# If extensions (or modules to document with autodoc) are in another directory,
12+
# add these directories to sys.path here. If the directory is relative to the
13+
# documentation root, use os.path.abspath to make it absolute, like shown here.
14+
#
15+
# import os
16+
# import sys
17+
# sys.path.insert(0, os.path.abspath('.'))
18+
19+
import os
20+
import sys
21+
22+
sys.path.insert(0, os.path.abspath("../.."))
23+
24+
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
25+
26+
# -- Project information -----------------------------------------------------
27+
28+
project = "pandoc-code-block-include"
29+
copyright = "2018-2023, Christophe Demko"
30+
author = "Christophe Demko"
31+
32+
# The short X.Y version
33+
version = "1.0"
34+
# The full version, including alpha/beta/rc tags
35+
release = "1.0.0"
36+
37+
38+
# -- General configuration ---------------------------------------------------
39+
40+
# If your documentation needs a minimal Sphinx version, state it here.
41+
#
42+
# needs_sphinx = '1.0'
43+
needs_sphinx = "6.0"
44+
45+
# Add any Sphinx extension module names here, as strings. They can be
46+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
47+
# ones.
48+
extensions = [
49+
'myst_parser'
50+
]
51+
52+
# Add any paths that contain templates here, relative to this directory.
53+
templates_path = []
54+
55+
# The suffix(es) of source filenames.
56+
# You can specify multiple suffix as a list of string:
57+
#
58+
# source_suffix = ['.rst', '.md']
59+
source_suffix = {
60+
'.rst': 'restructuredtext',
61+
'.md': 'markdown',
62+
}
63+
64+
65+
# The master toctree document.
66+
master_doc = "index"
67+
68+
# The language for content autogenerated by Sphinx. Refer to documentation
69+
# for a list of supported languages.
70+
#
71+
# This is also used if you do content translation via gettext catalogs.
72+
# Usually you set "language" from the command line for these cases.
73+
language = "en"
74+
75+
# List of patterns, relative to source directory, that match files and
76+
# directories to ignore when looking for source files.
77+
# This pattern also affects html_static_path and html_extra_path.
78+
exclude_patterns = ['images']
79+
80+
# The name of the Pygments (syntax highlighting) style to use.
81+
# pygments_style = None
82+
pygments_style = "sphinx"
83+
84+
85+
# -- Options for HTML output -------------------------------------------------
86+
87+
# The theme to use for HTML and HTML Help pages. See the documentation for
88+
# a list of builtin themes.
89+
#
90+
if not on_rtd: # only import and set the theme if we're building docs locally
91+
import sphinx_rtd_theme
92+
93+
html_theme = "sphinx_rtd_theme"
94+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
95+
96+
# Theme options are theme-specific and customize the look and feel of a theme
97+
# further. For a list of options available for each theme, see the
98+
# documentation.
99+
#
100+
# html_theme_options = {}
101+
102+
# Add any paths that contain custom static files (such as style sheets) here,
103+
# relative to this directory. They are copied after the builtin static files,
104+
# so a file named "default.css" will overwrite the builtin "default.css".
105+
html_static_path = []
106+
107+
# Custom sidebar templates, must be a dictionary that maps document names
108+
# to template names.
109+
#
110+
# The default sidebars (for documents that don't match any pattern) are
111+
# defined by theme itself. Builtin themes are using these templates by
112+
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
113+
# 'searchbox.html']``.
114+
#
115+
# html_sidebars = {}
116+

docs/images/lorem

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
2+
Duis pretium rutrum dignissim.
3+
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
4+
Interdum et malesuada fames ac ante ipsum primis in faucibus.
5+
Ut iaculis arcu sed dui ornare pretium.
39.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)