Skip to content

Commit

Permalink
Merge branch 'release/1.0.0' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
JackMorganNZ committed May 22, 2021
2 parents a67b55b + 761bc59 commit efea878
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 11 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Documentation

on: [push]

jobs:
build-documentation:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python 3
uses: actions/[email protected]
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Build documentation
run: sphinx-build -a -W -E -b html docs/source/ docs/build/
15 changes: 11 additions & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Publish to PyPI

on:
release:
types: [published]
on: push

jobs:
build-and-publish:
Expand All @@ -26,7 +24,16 @@ jobs:
run: |
python -m build .
- name: Publish
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true

- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ FAQ

**Where is the changelog?**

The changelog is available within the `CHANGELOG`_ file.
The changelog is available within the `documentation`_.

**How do I install the development version as local package?**

Expand All @@ -76,7 +76,7 @@ The changelog is available within the `CHANGELOG`_ file.
3. ``$ pip3 install .``

.. _ReadTheDocs: http://verto.readthedocs.io/en/latest/
.. _CHANGELOG: CHANGELOG.md
.. _documentation: http://verto.readthedocs.io/en/latest/changelog.html
.. _license file: LICENSE.md
.. _existing and closed issues: https://github.com/uccser/verto/issues
.. _open a new issue: https://github.com/uccser/verto/issues/new
Expand Down
35 changes: 35 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
Changelog
#######################################

1.0.0
=======================================

This is the first official release of Verto, after over four years of use in production systems.
There are several changes in this release that may break existing pipelines and require changes.

- Add new :doc:`processors/external-link` processor that modifies hyperlinks to open in a new tab.
- Modify :doc:`processors/scratch` and :doc:`processors/scratch-inline` processors to set Scratch code to be rendered by a JavaScript library.

- This replaces the previous method of creating images.
- The ``split`` option has been removed as it is no longer relevant to the new method.
- The ``random`` option has been removed to improve consistency in rendered material.

- Randomising the blocks can be achieved after rendering the code.

- Use GitHub Actions for automated builds and publishing to PyPI.
- Use new declarative setup.cfg file for packaging configuration.
- Removed CodeClimate configuration file.
- Use GitHub Actions for automated testing (instead of Travis CI) and code analysis.
- Switch dependency tracking from PyUp to Dependabot.
- Move changelog outside of documentation to homepage for inclusion on PyPI homepage.
- Correct argument ``custom_settings`` to ``settings``.
- Update images for Scratch examples to use Scratch 3.
- Update regular expression strings in Python code to use raw strings.
- Updated authors to state UCCSER as primary owner.
- Dependency updates:

- Update ``setuptools`` from 41.0.1 to 56.2.0.
- Update ``sphinx`` from 1.8.1 to 4.0.2.
- Update ``sphinx_rtd_theme`` from 0.4.3 to 0.5.2.
- Update ``coverage`` from 4.5.3 to 5.5.
- Update ``flake8`` from 3.5.0 to 3.9.2.
- Update ``Jinja2`` from 2.10.1 to 3.0.1.
- Update ``python-slugify`` from 3.0.2 to 5.0.2.

0.11.0
=======================================

Expand Down
2 changes: 0 additions & 2 deletions docs/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,6 @@ Why are all dependency versions pinned?
Yes, this is not considered the best practice by the Python Software Foundation in their `packaging guide <https://packaging.python.org/discussions/install-requires-vs-requirements/#install-requires>`_.
However pinning dependencies ensure we control over each Verto release, following the logic of `Vincent Driessen <https://nvie.com/posts/pin-your-packages/>`_.

.. [1] We follow `Semantic Versioning <http://semver.org/>`_ for our numbering system. The number is used by ``setup.py`` to tell PyPI which version is being uploaded or ``pip`` which version is installed, and also used during the documentation build to number the version of Verto it was built from.
.. _CS Unplugged: https://github.com/uccser/cs-unplugged/
.. _CS Field Guide: https://github.com/uccser/cs-field-guide/
.. _here: https://github.com/uccser/verto
Expand Down
2 changes: 1 addition & 1 deletion docs/source/processors/blockquote.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Optional Tag Parameters

- ``footer`` - Boolean flag to indicate whether the blockquote contains a footer.

- If given as ``true``, then the last line should start with ``- `` to show it's the footer.
- If given as ``true``, then the last line should start with a dash (``-``) followed by a space to show it's the footer.

- ``source`` - Sets the ``cite`` parameter of the ``blockquote`` element.

Expand Down
4 changes: 4 additions & 0 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ Changing processors
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. automethod:: verto.Verto.update_processors(processors)
:noindex:

.. automethod:: verto.Verto.processor_defaults(processors)
:noindex:

This function is useful if you want to make minor changes to the default used processors. For example: You wish to still use all default processors but skip video tags:

Expand All @@ -193,8 +195,10 @@ Changing HTML templates
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. automethod:: verto.Verto.update_templates(html_templates)
:noindex:

.. automethod:: verto.Verto.clear_templates()
:noindex:

Full list of package methods
=======================================
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = verto
version = attr: verto.__version__
description = Verto is an extension of the Python Markdown package, which allows authors to include complex HTML elements with simple text tags in their Markdown.
long_description = file: README.rst, CHANGELOG.rst, LICENSE.rst
long_description = file: README.rst, LICENSE.rst
author = University of Canterbury Computer Science Education Research Group
author_email = [email protected]
keywords =
Expand Down Expand Up @@ -34,9 +34,9 @@ classifiers =
project_urls =
Issue Tracker = https://github.com/uccser/verto/issues
Documentation = https://verto.readthedocs.io/en/latest/
Changelog = http://verto.readthedocs.io/en/latest/changelog.html
Source Code = https://github.com/uccser/verto


[options]
packages = find:
python_requires = >=3.6
Expand Down

0 comments on commit efea878

Please sign in to comment.