Commit c802adf0 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Move from poetry to flit

parent 57268038
Pipeline #10136 failed with stage
in 48 seconds
image: boileaum/jupyter
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
- pip install flit
- flit install
- pip install git+https://github.com/boileaum/bookbook.git@master
- python -m pytest tests -v
deploy:
stage: deploy
image: $CI_REGISTRY_IMAGE
tags:
- docker
script:
- poetry build
- poetry publish -u boileau -p $PYPI_PASSWORD
- pip install git+https://github.com/boileaum/bookbook.git@master
- flit build
only:
- master
\ No newline at end of file
"""
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.0'
\ 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",
"nbconvert >= 6.0",
"bs4",
"IPython",
"jinja2",
"jupyter_contrib_nbextensions",
"latex",
"markdown",
"rise",
"pyyaml",
"doit >= 0.32.0",
"python-frontmatter",
]
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"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.flit.metadata.requires-extra]
test = ["pytest"]
Markdown is supported
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