diff --git a/.github/workflows/testing_coverage.yml b/.github/workflows/testing_coverage.yml index 96e9d1e7..5d46abad 100644 --- a/.github/workflows/testing_coverage.yml +++ b/.github/workflows/testing_coverage.yml @@ -26,6 +26,9 @@ jobs: python-version: 3.8 poetry-version: 1.2.2 + - name: Install project dependencies + run: poetry install + # Run pytest with coverage report, saving to xml - name: Run tests on python 3.8 run: | diff --git a/.github/workflows/testing_multiversion.yml b/.github/workflows/testing_multiversion.yml index c3ef192c..f34ae159 100644 --- a/.github/workflows/testing_multiversion.yml +++ b/.github/workflows/testing_multiversion.yml @@ -27,6 +27,9 @@ jobs: python-version: ${{matrix.python-version}} poetry-version: 1.2.2 + - name: Install project dependencies + run: poetry install + # Use cached python and dependencies, install poetry - name: Run tests on python ${{matrix.python-version}} run: | diff --git a/LICENSE b/LICENSE index 74ab188a..7961f2d1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022-2023 OpenCOMPES +Copyright (c) 2022-2024 OpenCOMPES Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/conf.py b/docs/conf.py index 1d7e3575..bd4c1396 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,7 +27,7 @@ def _get_project_meta(): pkg_meta = _get_project_meta() project = str(pkg_meta["name"]) -copyright = "2022, OpenCOMPES team" +copyright = "2024, OpenCOMPES team" author = "OpenCOMPES team" # The short X.Y version diff --git a/sed/__init__.py b/sed/__init__.py index 997765cc..50850279 100644 --- a/sed/__init__.py +++ b/sed/__init__.py @@ -1,7 +1,7 @@ -"""sed module easy access APIs +"""sed module easy access APIs.""" +import importlib.metadata -""" from .core.processor import SedProcessor -__version__ = "0.1.0" +__version__ = importlib.metadata.version("sed-processor") __all__ = ["SedProcessor"] diff --git a/tests/test_sed.py b/tests/test_sed.py deleted file mode 100644 index 0d422524..00000000 --- a/tests/test_sed.py +++ /dev/null @@ -1,8 +0,0 @@ -"""This file contains code that performs several tests for the sed package -""" -from sed import __version__ - - -def test_version() -> None: - """This function tests for the version of the package""" - assert __version__ == "0.1.0"