diff --git a/HISTORY.rst b/HISTORY.rst index 396c3a67..376a0d35 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,11 @@ History ======= +0.1.0 (2022-06-08) +------------------ + +* Fix missing data files in distribution + 0.1.0 (2022-05-19) ------------------ diff --git a/orsopy/__init__.py b/orsopy/__init__.py index 7bedaeac..2e60b8d7 100644 --- a/orsopy/__init__.py +++ b/orsopy/__init__.py @@ -1,3 +1,3 @@ """Top-level package for orsopy.""" -__version__ = "0.1.0" +__version__ = "0.1.1" diff --git a/orsopy/orsopy.py b/orsopy/orsopy.py deleted file mode 100644 index dd0b80ed..00000000 --- a/orsopy/orsopy.py +++ /dev/null @@ -1 +0,0 @@ -"""Main module.""" diff --git a/orsopy/slddb/dbconfig.py b/orsopy/slddb/dbconfig.py index 7dda4761..0e6145ce 100644 --- a/orsopy/slddb/dbconfig.py +++ b/orsopy/slddb/dbconfig.py @@ -49,7 +49,7 @@ ("name", cstr, None, "*"), ("description", cstr, None, None), ("formula", cformula, None, "*"), - ("HR_fomula", cstr, None, None), + ("HR_formula", cstr, None, None), ("density", cposfloat, None, "g/cm³ **"), ("FU_volume", cposfloat, None, "ų **"), ("SLD_n", ccomplex, None, "Å⁻² **"), diff --git a/setup.cfg b/setup.cfg index c5909a4c..131da753 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,3 +30,4 @@ include_package_data = True [options.package_data] orsopy.slddb.element_table = nabs_geant4/*.npz +orsopy.fileio = schema/*.* diff --git a/tests/test_orsopy.py b/tests/test_orsopy.py deleted file mode 100644 index b3004b1b..00000000 --- a/tests/test_orsopy.py +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env python -"""Tests for `orsopy` package.""" - -import pytest - -from orsopy import orsopy diff --git a/tools/example_pre-commit_windows b/tools/example_pre-commit_windows index fe466577..a82e42bd 100644 --- a/tools/example_pre-commit_windows +++ b/tools/example_pre-commit_windows @@ -3,14 +3,16 @@ #!C:/Program\ Files/Git/bin/sh.exe for file in $(git diff --cached --name-only | grep -E '\.(py)$') do - echo "Reformat '$file'" - black -l 120 "$file" - isort -l 120 -l 120 --lbt 1 "$file" - git add "$file" - - flake8 --max-line-length=120 --ignore=F401,W503,E203 "$file" - if [ $? -ne 0 ]; then - echo "flake8 failed on staged file '$file'" - exit 1 # exit with failure status + if [ -f "$file" ]; then + echo "Reformat '$file'" + black -l 120 "$file" + isort -l 120 -l 120 --lbt 1 "$file" + git add "$file" + + flake8 --max-line-length=120 --ignore=F401,W503,E203 "$file" + if [ $? -ne 0 ]; then + echo "flake8 failed on staged file '$file'" + exit 1 # exit with failure status + fi fi done