Skip to content

Commit 255b1d9

Browse files
committed
Initial commit
0 parents  commit 255b1d9

16 files changed

+1227
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

+123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
.hypothesis/
51+
.pytest_cache/
52+
53+
# Translations
54+
*.mo
55+
*.pot
56+
57+
# Django stuff:
58+
*.log
59+
local_settings.py
60+
db.sqlite3
61+
62+
# Flask stuff:
63+
instance/
64+
.webassets-cache
65+
66+
# Scrapy stuff:
67+
.scrapy
68+
69+
# Sphinx documentation
70+
docs/_build/
71+
72+
# PyBuilder
73+
target/
74+
75+
# Jupyter Notebook
76+
.ipynb_checkpoints
77+
78+
# IPython
79+
profile_default/
80+
ipython_config.py
81+
82+
# pyenv
83+
.python-version
84+
85+
# pipenv
86+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
87+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
88+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
89+
# install all needed dependencies.
90+
#Pipfile.lock
91+
92+
# celery beat schedule file
93+
celerybeat-schedule
94+
95+
# SageMath parsed files
96+
*.sage.py
97+
98+
# Environments
99+
.env
100+
.venv
101+
env/
102+
venv/
103+
ENV/
104+
env.bak/
105+
venv.bak/
106+
107+
# Spyder project settings
108+
.spyderproject
109+
.spyproject
110+
111+
# Rope project settings
112+
.ropeproject
113+
114+
# mkdocs documentation
115+
/site
116+
117+
# mypy
118+
.mypy_cache/
119+
.dmypy.json
120+
dmypy.json
121+
122+
# Pyre type checker
123+
.pyre/

.travis.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Config file for automatic testing at travis-ci.org
2+
3+
sudo: false
4+
language: python
5+
6+
matrix:
7+
include:
8+
- python: 2.7
9+
env: TOX_ENV=py27
10+
- python: 3.4
11+
env: TOX_ENV=py34
12+
- python: 3.5
13+
env: TOX_ENV=py35
14+
- python: 3.6
15+
env: TOX_ENV=py36
16+
- python: 3.7
17+
env: TOX_ENV=py37
18+
- python: pypy
19+
env: TOX_ENV=pypy
20+
- python: 3.6
21+
env: TOX_ENV=flake8
22+
23+
install:
24+
- pip install tox
25+
26+
script:
27+
- tox -e $TOX_ENV
28+
29+
before_cache:
30+
- rm -rf $HOME/.cache/pip/log
31+
32+
cache:
33+
directories:
34+
- $HOME/.cache/pip

LICENSE

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
Copyright (c) 2019, Chris Sewell
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
* Redistributions of source code must retain the above copyright notice, this
9+
list of conditions and the following disclaimer.
10+
11+
* Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
* Neither the name of pytest-notebook nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MANIFEST.in

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include LICENSE
2+
include README.rst
3+
4+
recursive-exclude * __pycache__
5+
recursive-exclude * *.py[co]

README.rst

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
===============
2+
pytest-notebook
3+
===============
4+
5+
.. image:: https://img.shields.io/pypi/v/pytest-notebook.svg
6+
:target: https://pypi.org/project/pytest-notebook
7+
:alt: PyPI version
8+
9+
.. image:: https://img.shields.io/pypi/pyversions/pytest-notebook.svg
10+
:target: https://pypi.org/project/pytest-notebook
11+
:alt: Python versions
12+
13+
.. image:: https://travis-ci.org/chrisjsewell/pytest-notebook.svg?branch=master
14+
:target: https://travis-ci.org/chrisjsewell/pytest-notebook
15+
:alt: See Build Status on Travis CI
16+
17+
.. image:: https://ci.appveyor.com/api/projects/status/github/chrisjsewell/pytest-notebook?branch=master
18+
:target: https://ci.appveyor.com/project/chrisjsewell/pytest-notebook/branch/master
19+
:alt: See Build Status on AppVeyor
20+
21+
A simple plugin to use with pytest
22+
23+
----
24+
25+
This `pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `cookiecutter-pytest-plugin`_ template.
26+
27+
28+
Features
29+
--------
30+
31+
* TODO
32+
33+
34+
Requirements
35+
------------
36+
37+
* TODO
38+
39+
40+
Installation
41+
------------
42+
43+
You can install "pytest-notebook" via `pip`_ from `PyPI`_::
44+
45+
$ pip install pytest-notebook
46+
47+
48+
Usage
49+
-----
50+
51+
* TODO
52+
53+
Contributing
54+
------------
55+
Contributions are very welcome. Tests can be run with `tox`_, please ensure
56+
the coverage at least stays the same before you submit a pull request.
57+
58+
License
59+
-------
60+
61+
Distributed under the terms of the `BSD-3`_ license, "pytest-notebook" is free and open source software
62+
63+
64+
Issues
65+
------
66+
67+
If you encounter any problems, please `file an issue`_ along with a detailed description.
68+
69+
.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter
70+
.. _`@hackebrot`: https://github.com/hackebrot
71+
.. _`MIT`: http://opensource.org/licenses/MIT
72+
.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause
73+
.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt
74+
.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0
75+
.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin
76+
.. _`file an issue`: https://github.com/chrisjsewell/pytest-notebook/issues
77+
.. _`pytest`: https://github.com/pytest-dev/pytest
78+
.. _`tox`: https://tox.readthedocs.io/en/latest/
79+
.. _`pip`: https://pypi.org/project/pip/
80+
.. _`PyPI`: https://pypi.org/project

appveyor.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# What Python version is installed where:
2+
# http://www.appveyor.com/docs/installed-software#python
3+
4+
environment:
5+
matrix:
6+
- PYTHON: "C:\\Python27"
7+
TOX_ENV: "py27"
8+
9+
- PYTHON: "C:\\Python34"
10+
TOX_ENV: "py34"
11+
12+
- PYTHON: "C:\\Python35"
13+
TOX_ENV: "py35"
14+
15+
- PYTHON: "C:\\Python36"
16+
TOX_ENV: "py36"
17+
18+
- PYTHON: "C:\\Python37"
19+
TOX_ENV: "py37"
20+
21+
init:
22+
- "%PYTHON%/python -V"
23+
- "%PYTHON%/python -c \"import struct;print( 8 * struct.calcsize(\'P\'))\""
24+
25+
install:
26+
- "%PYTHON%/Scripts/easy_install -U pip"
27+
- "%PYTHON%/Scripts/pip install tox"
28+
- "%PYTHON%/Scripts/pip install wheel"
29+
30+
build: false # Not a C# project, build stuff at the test step instead.
31+
32+
test_script:
33+
- "%PYTHON%/Scripts/tox -e %TOX_ENV%"
34+
35+
after_test:
36+
- "%PYTHON%/python setup.py bdist_wheel"
37+
- ps: "ls dist"
38+
39+
artifacts:
40+
- path: dist\*
41+
42+
#on_success:
43+
# - TODO: upload the content of dist/*.whl to a public wheelhouse

0 commit comments

Comments
 (0)