Skip to content

Commit

Permalink
Version Awareness (#24)
Browse files Browse the repository at this point in the history
* Add versioneer

* Add --version flag

* Overwrite existing older post_save hook versions

* Set source files for coverage report

* Add test for nonexistant Jupyter config dir

* Replace tmp_path_factory with tmp_path

* Use pkg_resources.parse_version for more robust sorting

* Fix MANIFEST
  • Loading branch information
jayqi committed Jun 9, 2020
1 parent d493750 commit af222d2
Show file tree
Hide file tree
Showing 12 changed files with 2,656 additions and 37 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nbautoexport/_version.py export-subst
5 changes: 3 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ include LICENSE
include README.md

recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
recursive-exclude * __pycache__ *.py[co]
include versioneer.py
include nbautoexport/_version.py
11 changes: 5 additions & 6 deletions nbautoexport/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
"""Top-level package for nbautoexport."""
from nbautoexport.nbautoexport import post_save
from nbautoexport._version import get_versions

__author__ = """DrivenData"""
__email__ = "info@drivendata.org"
__version__ = "0.1.1"
__all__ = [post_save]


from nbautoexport.nbautoexport import post_save # noqa:F401
__version__ = get_versions()["version"]
del get_versions
Loading

0 comments on commit af222d2

Please sign in to comment.