Skip to content

Commit 8f40ee9

Browse files
authored
Merge pull request #1 from MSeal/master
Moves the Execute Preprocessor into a new library!!!
2 parents b155a18 + cab2cad commit 8f40ee9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+4393
-1
lines changed

.bumpversion.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[bumpversion]
2+
current_version = 0.0.0
3+
commit = True
4+
tag = True
5+
tag_name = {new_version}
6+
7+
[bumpversion:file:nbclient/_version.py]
8+

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: python
2+
sudo: false
3+
matrix:
4+
include:
5+
- python: 3.5
6+
env: TOXENV=py35
7+
- python: 3.6
8+
env: TOXENV=py36
9+
- python: 3.7
10+
env: TOXENV=py37
11+
- python: 3.8
12+
env: TOXENV=py38
13+
- python: 3.6
14+
env: TOXENV=flake8
15+
- python: 3.6
16+
env: TOXENV=dist
17+
- python: 3.6
18+
env: TOXENV=docs
19+
- python: 3.6
20+
env: TOXENV=manifest
21+
install:
22+
- pip install tox
23+
script:
24+
- tox -e $TOXENV
25+
after_success:
26+
- test $TRAVIS_BRANCH = "master" &&
27+
test $TOXENV = "py36" &&
28+
coverage xml -i
29+
- test $TRAVIS_BRANCH = "master" &&
30+
test $TOXENV = "py36" &&
31+
codecov

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Change Log
2+
3+
## 0.1.0
4+
- Initial release -- moved out of nbconvert 6.0.0-a0

CONTRIBUTING.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Contributing
2+
3+
We follow the
4+
[Jupyter Contribution Workflow](https://jupyter.readthedocs.io/en/latest/contributor/content-contributor.html)
5+
and the [IPython Contributing Guide](https://github.com/ipython/ipython/blob/master/CONTRIBUTING.md).
6+
7+
# Testing
8+
9+
In your environment `pip install -e '.[test]'` will be needed to be able to
10+
run all of the tests.
11+
12+
# Documentation
13+
14+
NbClient needs some PRs to copy over documentation!
15+
16+
# Releasing
17+
18+
If you are going to release a version of `nbclient` you should also be capable
19+
of testing it and building the docs.
20+
21+
Please follow the instructions in [Testing](#testing) and [Documentation](#documentation) if
22+
you are unfamiliar with how to do so.
23+
24+
The rest of the release process can be found in [these release instructions](./RELEASING.md).

LICENSE

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Licensing terms
2+
3+
This project is licensed under the terms of the Modified BSD License
4+
(also known as New or Revised or 3-Clause BSD), as follows:
5+
6+
- Copyright (c) 2020-, Jupyter Development Team
7+
8+
All rights reserved.
9+
10+
Redistribution and use in source and binary forms, with or without
11+
modification, are permitted provided that the following conditions are met:
12+
13+
Redistributions of source code must retain the above copyright notice, this
14+
list of conditions and the following disclaimer.
15+
16+
Redistributions in binary form must reproduce the above copyright notice, this
17+
list of conditions and the following disclaimer in the documentation and/or
18+
other materials provided with the distribution.
19+
20+
Neither the name of the Jupyter Development Team nor the names of its
21+
contributors may be used to endorse or promote products derived from this
22+
software without specific prior written permission.
23+
24+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
25+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
28+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34+
35+
## About the Jupyter Development Team
36+
37+
The Jupyter Development Team is the set of all contributors to the Jupyter project.
38+
This includes all of the Jupyter subprojects.
39+
40+
The core team that coordinates development on GitHub can be found here:
41+
https://github.com/jupyter/.
42+
43+
## Our Copyright Policy
44+
45+
Jupyter uses a shared copyright model. Each contributor maintains copyright
46+
over their contributions to Jupyter. But, it is important to note that these
47+
contributions are typically only changes to the repositories. Thus, the Jupyter
48+
source code, in its entirety is not the copyright of any single person or
49+
institution. Instead, it is the collective copyright of the entire Jupyter
50+
Development Team. If individual contributors want to maintain a record of what
51+
changes/contributions they have specific copyright on, they should indicate
52+
their copyright in the commit message of the change, when they commit the
53+
change to one of the Jupyter repositories.
54+
55+
With this in mind, the following banner should be used in any source code file
56+
to indicate the copyright and license terms:
57+
58+
# Copyright (c) Jupyter Development Team.
59+
# Distributed under the terms of the Modified BSD License.

MANIFEST.in

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
include LICENSE
2+
include MANIFEST.in
3+
include requirements.txt
4+
include requirements-dev.txt
5+
include *.md
6+
include .bumpversion.cfg
7+
include tox.ini
8+
include pyproject.toml
9+
10+
# Code and test files
11+
recursive-include nbclient *.ipynb
12+
recursive-include nbclient *.png
13+
recursive-include nbclient *.py
14+
15+
# Documentation
16+
graft docs
17+
exclude docs/\#*
18+
exclude .readthedocs.yml
19+
exclude codecov.yml
20+
21+
# Examples
22+
graft examples
23+
24+
# docs subdirs we want to skip
25+
prune docs/build
26+
prune docs/gh-pages
27+
prune docs/dist
28+
29+
# Patterns to exclude from any directory
30+
global-exclude *~
31+
global-exclude *.pyc
32+
global-exclude *.pyo
33+
global-exclude .git
34+
global-exclude .ipynb_checkpoints

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# nbclient
2-
A client library for executing notebooks. Formally a nbconvert's ExecutePreprocessor
2+
3+
A client library for executing notebooks. Formally nbconvert's ExecutePreprocessor.
4+
5+
## TODO: Add more details here!

RELEASING.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Releasing
2+
3+
## Prerequisites
4+
5+
- First check that the CHANGELOG is up to date for the next release version
6+
- Ensure dev requirements are installed `pip install -r requirements-dev.txt`
7+
8+
## Push to GitHub
9+
10+
Change from patch to minor or major for appropriate version updates.
11+
12+
```bash
13+
bumpversion patch
14+
git push && git push --tags
15+
```
16+
17+
## Push to PyPI
18+
19+
```bash
20+
rm -rf dist/*
21+
rm -rf build/*
22+
python setup.py sdist bdist_wheel
23+
twine upload dist/*
24+
```

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SPHINXPROJ = nbclient
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/UPDATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
TODO: Figure out make options needed for non-api changes
2+
3+
```
4+
sphinx-apidoc -f -o reference ../nbclient
5+
```

0 commit comments

Comments
 (0)