Commit 8d6e8ed9 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Merge branch 'develop' into 'master'

v0.3.1

See merge request !19
parents 89eac3da 2a0bd128
Pipeline #10141 failed with stages
in 1 minute and 42 seconds
image: boileaum/jupyter
default:
before_script:
- python -m venv .venv
- source .venv/bin/activate
- pip install flit
- flit install
- pip install git+https://github.com/boileaum/bookbook.git@master
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- deps
- test
- deploy
deps:
stage: deps
tags:
- shell
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker info
- echo "Building $CI_REGISTRY_IMAGE"
- DOCKER_BUILDKIT=1 docker build --pull -t $CI_REGISTRY_IMAGE -f Dockerfile .
- docker push $CI_REGISTRY_IMAGE
test:
stage: test
image: $CI_REGISTRY_IMAGE
tags:
- docker
script:
- poetry install
- poetry run pytest tests -v
- python -m pytest -v
deploy:
stage: deploy
image: $CI_REGISTRY_IMAGE
tags:
- docker
script:
- poetry build
- poetry publish -u boileau -p $PYPI_PASSWORD
- flit publish
only:
- master
\ No newline at end of file
# Changelog
## [0.3.1] - 2020-11-06
### Changed
* use flit instead of poetry
## [0.3.0] - 2020-11-05
### Changed
- `style_ipython.tplx` -> `style_ipython.tex.j2` in `/theme/default/templates/book.tplx`. Please update this file in your local `theme/` dir if you are using nbconvert >= 6.0
- some code enhancement
* `style_ipython.tplx` -> `style_ipython.tex.j2` in `/theme/default/templates/book.tplx`. Please update this file in your local `theme/` dir if you are using nbconvert >= 6.0
* some code enhancement
### Fixed
- Fix issues with pdf generation using nbconvert >= 6.0
* Fix issues with pdf generation using nbconvert >= 6.0
"""
Build a small website to host Jupyter notebooks as course chapters
"""
import logging
log = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
__version__ = '0.3.1'
\ No newline at end of file
[tool.poetry]
name = "nbcourse"
version = "0.3.0"
description = "Create a minisite to publish a course based on Jupyter notebooks"
authors = ["Matthieu Boileau <matthieu.boileau@math.unistra.fr>"]
license = "MIT"
keywords = ["jupyter", "nbconvert"]
repository = "https://gitlab.math.unistra.fr/boileau/nbcourse"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.7"
nbconvert = ">=6.0"
bs4 = "^0.0.1"
IPython = "^7.15.0"
jinja2 = "^2.11.2"
jupyter_contrib_nbextensions = "^0.5.1"
latex = "^0.7.0"
markdown = "^3.2.2"
rise = "^5.6.1"
pyyaml = "^5.3.1"
doit = ">=0.32.0"
python-frontmatter = "^0.5.0"
bookbook = { git = "https://github.com/boileaum/bookbook.git", branch = "develop" }
[tool.poetry.dev-dependencies]
pytest = "^5.4.3"
pycodestyle = "^2.6.0"
[build-system]
requires = ["flit_core >=2,<4"]
build-backend = "flit_core.buildapi"
[tool.poetry.scripts]
nbcourse = 'nbcourse:main'
[tool.flit.metadata]
module = "nbcourse"
author = "Matthieu Boileau"
author-email = "matthieu.boileau@math.unistra.fr"
home-page = "https://gitlab.math.unistra.fr/boileau/nbcourse"
classifiers = ["License :: OSI Approved :: MIT License"]
description-file = "README.md"
requires = [
"nbconvert >= 6.0",
"bs4",
"IPython",
"jinja2",
"jupyter_contrib_nbextensions",
"latex",
"markdown",
"rise",
"pyyaml",
"doit >= 0.32.0",
"python-frontmatter",
]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.flit.metadata.requires-extra]
test = ["pytest"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment