Commit 2a0bd128 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

v0.3.1

parent 89eac3da
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: variables:
GIT_SUBMODULE_STRATEGY: recursive 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: test:
stage: test stage: test
image: $CI_REGISTRY_IMAGE
tags: tags:
- docker - docker
script: script:
- poetry install - python -m pytest -v
- poetry run pytest tests -v
deploy: deploy:
stage: deploy stage: deploy
image: $CI_REGISTRY_IMAGE
tags: tags:
- docker - docker
script: script:
- poetry build - flit publish
- poetry publish -u boileau -p $PYPI_PASSWORD
only: only:
- master - master
\ No newline at end of file
# Changelog # Changelog
## [0.3.1] - 2020-11-06
### Changed
* use flit instead of poetry
## [0.3.0] - 2020-11-05 ## [0.3.0] - 2020-11-05
### Changed ### 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 * `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 * some code enhancement
### Fixed ### 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 import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.INFO)
__version__ = '0.3.1'
\ No newline at end of file
[tool.poetry] [build-system]
name = "nbcourse" requires = ["flit_core >=2,<4"]
version = "0.3.0" build-backend = "flit_core.buildapi"
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"
[tool.poetry.scripts] [tool.flit.metadata]
nbcourse = 'nbcourse:main' 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] [tool.flit.metadata.requires-extra]
requires = ["poetry>=0.12"] test = ["pytest"]
build-backend = "poetry.masonry.api"
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