Make a fork of the main jupyter-docx-bundler repository and clone the fork
git clone https://github.com/<your-github-username>/jupyter-docx-bundler
Contributions to jupyter-docx-bundler can then be made by submitting pull requests on GitHub.
To build the library you can install the necessary requirements using pip or conda
cd jupyter-docx-bundler
Install all development requirements by executing
conda install --file requirements.txt --file requirements_test.txt pandoc
Install the package in editable mode by executing
pip install --no-deps -e .
Make the package available to nbconvert and as an entry in the Download As menu by executing
jupyter bundlerextension enable --py jupyter_docx_bundler --sys-prefix
Make sure you have Pandoc installed, see installing-pandoc for instructions.
Install the package in editable mode and all necessary requirements by executing
pip install -e ".[test]"
Make the package available to nbconvert and as an entry in the Download As menu by executing
jupyter bundlerextension enable --py jupyter_docx_bundler --sys-prefix
Test the package with pytest by executing the following command
pytest .
This package follows the packaing guide and you can create new packages for PyPI by executing.
python setup.py sdist bdist_wheel
Furthermore this package is also build with conda-build by executing the following command for Python 3.9
conda-build conda.recipe python=3.9
As documented in noarch-builds a Python- and OS-dependent build is necessary.
git tag
a commit with a new version like0.3.1
- Let the GitHub Actions pass, it builds all PyPI and conda-packages. You can download them as artifacts.
- Put the PyPI-artifacts in the folder
dist
. Upload the packages to PyPI withtwine upload dist/*
- Upload the conda-packages to anaconda.org with
anaconda upload jupyter-docx-bundler-0.3.1-py39_0.tar.bz2