Skip to content

Commit

Permalink
Merge pull request #429 from OpenCOMPES/proper-versioning
Browse files Browse the repository at this point in the history
using importlib to get package version
  • Loading branch information
zain-sohail authored Jun 24, 2024
2 parents bf11f53 + 9d2cc7b commit 610ad8b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/testing_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/testing_multiversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions sed/__init__.py
Original file line number Diff line number Diff line change
@@ -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"]
8 changes: 0 additions & 8 deletions tests/test_sed.py

This file was deleted.

0 comments on commit 610ad8b

Please sign in to comment.