Skip to content

Commit

Permalink
Merge branch 'multi_tld_mvp' of https://github.com/Transport-for-the-…
Browse files Browse the repository at this point in the history
…North/caf.distribute into multi_tld_mvp
  • Loading branch information
isaac-tfn committed Jan 5, 2024
2 parents 1f3afc5 + d53b875 commit 32a7192
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 13 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/documentation-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Based on GitHub action here: https://github.com/readthedocs/actions/tree/main/preview

name: readthedocs/actions
on:
pull_request_target:
types:
- opened
# Execute this action only on PRs that touch
# documentation files.
paths:
- "docs/**"

permissions:
pull-requests: write

jobs:
documentation-links:
runs-on: ubuntu-latest
steps:
- uses: readthedocs/actions/preview@v1
with:
project-slug: "cafdistribute"
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ python:
- method: pip
path: .
- requirements: docs/requirements.txt

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
<p align="center">
<a href="https://pypi.org/project/caf.distribute/"><img alt="Supported Python versions" src="https://img.shields.io/pypi/pyversions/caf.distribute.svg?style=flat-square"></a>
<a href="https://pypi.org/project/caf.distribute/"><img alt="Latest release" src="https://img.shields.io/github/release/transport-for-the-north/caf.distribute.svg?style=flat-square&maxAge=86400"></a>
<a href="https://anaconda.org/conda-forge/caf.distribute"><img alt="Conda" src="https://img.shields.io/conda/v/conda-forge/caf.distribute?style=flat-square&logo=condaforge"></a>
<a href="https://app.codecov.io/gh/Transport-for-the-North/caf.distribute"><img alt="Coverage" src="https://img.shields.io/codecov/c/github/transport-for-the-north/caf.distribute.svg?branch=master&style=flat-square&logo=CodeCov"></a>
<a href="https://github.com/Transport-for-the-North/caf.distribute/actions?query=event%3Apush"><img alt="Testing Badge" src="https://img.shields.io/github/actions/workflow/status/transport-for-the-north/caf.toolkit/tests.yml?style=flat-square&logo=GitHub&label=Tests"></a>
<a href="https://www.gnu.org/licenses/gpl-3.0.en.html"><img alt="License: GNU GPL v3.0" src="https://img.shields.io/badge/license-GPLv3-blueviolet.svg?style=flat-square"></a>
<a href='https://cafdistribute.readthedocs.io/en/stable/?badge=stable'><img alt='Documentation Status' src="https://img.shields.io/readthedocs/cafdistribute?style=flat-square&logo=readthedocs"></a>
<a href="https://github.com/psf/black"><img alt="code style: black" src="https://img.shields.io/badge/code%20format-black-000000.svg?style=flat-square"></a>
</p>

Expand Down
9 changes: 7 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@
napoleon_google_docstring = False
napoleon_numpy_docstring = True

# The full version, including alpha/beta/rc tags
release = str(caf.distribute.__version__)
# The short X.Y version.
import caf.distribute

version = str(caf.distribute.__version__)

# The full version, including alpha/beta/rc tags.
release = version


# -- General configuration ---------------------------------------------------
Expand Down
5 changes: 0 additions & 5 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# Required libraries for a doc build
scipy>=1.9.3
numpy>=1.19.0
pandas>=1.4.0
tqdm>=4.50.2
caf.toolkit>=0.2.1
sphinx-automodapi>=0.16.0
pydata-sphinx-theme>=0.14.1
graphviz>=0.20.1
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ test = [
"Bug Tracker" = "https://github.com/Transport-for-the-North/caf.distribute/issues"
Homepage = "https://github.com/Transport-for-the-North/caf.distribute"
Source = "https://github.com/Transport-for-the-North/caf.distribute"
Documentation = "http://cafdistribute.rtfd.io/"

# Packaging options
[tool.setuptools.packages.find]
Expand Down
6 changes: 1 addition & 5 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,5 @@ tox>=3.24.3, <5.0.0
# edit_install
versioningit>=2.2.0, < 3.0.0

# documentation
sphinx >=7.2.6, <8.0.0
sphinx-automodapi>=0.16.0
pydata-sphinx-theme>=0.14.1
graphviz>=0.20.1
# For documentation requirements se docs/requirements.txt

0 comments on commit 32a7192

Please sign in to comment.