Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthieu Boileau
nbcourse
Commits
c802adf0
Commit
c802adf0
authored
Nov 05, 2020
by
Matthieu Boileau
Browse files
Move from poetry to flit
parent
57268038
Pipeline
#10136
failed with stage
in 48 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
c802adf0
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
:
-
p
oetry build
-
poetry publish -u boileau -p $PYPI_PASSWORD
-
p
ip install git+https://github.com/boileaum/bookbook.git@master
-
flit build
only
:
-
master
\ No newline at end of file
nbcourse/__init__.py
View file @
c802adf0
"""
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
pyproject.toml
View file @
c802adf0
[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"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment