Skip to content

Commit

Permalink
Add setup.py and versioneer (#56)
Browse files Browse the repository at this point in the history
Also pins black version in CI because version 20.8b0 and later of black finds more things to change. Just pinning this for now and we can make a separate pull-request to use the newer version of black (if we want)
  • Loading branch information
leifdenby authored Sep 4, 2020
1 parent 159f0bc commit 686310c
Show file tree
Hide file tree
Showing 7 changed files with 2,484 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lagtraj/_version.py export-subst
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include versioneer.py
include lagtraj/_version.py
6 changes: 6 additions & 0 deletions lagtraj/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ def njit(numba_function):
def build_data_path(root_data_path, data_type):
data_type_plural = DATA_TYPE_PLURAL[data_type]
return Path(root_data_path) / data_type_plural


from ._version import get_versions

__version__ = get_versions()["version"]
del get_versions
Loading

0 comments on commit 686310c

Please sign in to comment.