Skip to content

Commit

Permalink
Robustify PyPi deployment (check manifest and distribution)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed Apr 6, 2020
1 parent c1abeb8 commit 35eee5e
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ docsrc/source/visions/_autosummary/
docsrc/source/visions/api/_autosummary/
docsrc/build/
plots/*/
playground/

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ python:
- "3.7"
- "3.8"

install:
before_install:
- python -m pip install --upgrade pip setuptools wheel
- pip install -r requirements.txt
- pip install -r requirements_test.txt
- pip install -e .

install:
- check-manifest
- python setup.py sdist bdist_wheel
- twine check dist/*

script:
# - pytest --cov=. tests/
Expand Down
26 changes: 24 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
include LICENSE
include README.md
include requirements.txt
include requirements_test.txt
include SIDNfonds.png
include requirements*.txt
exclude Makefile make.bat
recursive-include src *.py

# Include tests
include tox.ini pytest.ini mypy.ini
recursive-include tests *.py

# Include examples
recursive-include examples *.py
recursive-include examples *.ipynb

# Exclude visualisation data
exclude src/visions/visualisation/summaries src/visions/visualisation/typesets
recursive-exclude src/visions/visualisation/summaries *
recursive-exclude src/visions/visualisation/typesets *
recursive-exclude src/visions/visualisation *.html

# Exclude directories
exclude docs docsrc paper
recursive-exclude docs *
recursive-exclude docsrc *
recursive-exclude paper *
4 changes: 1 addition & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ More information can be found `here <https://dylan-profiler.github.io/visions/vi
This work was partially supported by `SIDN Fonds <https://www.sidnfonds.nl/projecten/dylan-data-analysis-leveraging-automatisation>`_.


.. raw:: html

<img src="SIDNfonds.png" width="200" />
.. image:: SIDNfonds.png

.. |PythonBadge| image:: https://img.shields.io/pypi/pyversions/visions
.. |PyPiDownloadsBadge| image:: https://pepy.tech/badge/visions
Expand Down
Binary file modified SIDNfonds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ pydot
pytest>=5.2.0
pytest-mypy
pytest-black
check-manifest>=0.41

0 comments on commit 35eee5e

Please sign in to comment.