From 51a8e1129964d07c2817ef9c297c665e0fd81d22 Mon Sep 17 00:00:00 2001 From: janezlapajne Date: Wed, 28 Aug 2024 20:40:19 +0200 Subject: [PATCH 1/2] fix: Comment out cache-related code in docs.yml workflow --temporary fix --- .github/workflows/docs.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ffb08f1..c82b3da 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,11 +26,11 @@ jobs: run: | git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com - - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - - uses: actions/cache@v4 - with: - key: mkdocs-material-${{ env.cache_id }} - path: .cache - restore-keys: | - mkdocs-material- + # - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + # - uses: actions/cache@v4 + # with: + # key: mkdocs-material-${{ env.cache_id }} + # path: .cache + # restore-keys: | + # mkdocs-material- - run: pdm run mkdocs gh-deploy --force From 8e966e3eda31eabbfc7bae96d9ef5a662b99a01b Mon Sep 17 00:00:00 2001 From: janezlapajne Date: Wed, 28 Aug 2024 22:27:19 +0200 Subject: [PATCH 2/2] fix: Remove unused siapy version file and update installation instructions --- docs/install.md | 8 -------- siapy/__init__.py | 3 --- siapy/__version__.py | 18 ------------------ 3 files changed, 29 deletions(-) delete mode 100644 siapy/__version__.py diff --git a/docs/install.md b/docs/install.md index a4c94ba..8e8938b 100644 --- a/docs/install.md +++ b/docs/install.md @@ -47,14 +47,6 @@ cd siapy make install ``` -### Verify Installation - -To verify that siapy has been installed correctly, you can run: - -```bash -python -c "import siapy; print(siapy.__version__)" -``` - ## Troubleshooting If you encounter any issues during installation, consider the following solutions: diff --git a/siapy/__init__.py b/siapy/__init__.py index 6ebb05a..e69de29 100644 --- a/siapy/__init__.py +++ b/siapy/__init__.py @@ -1,3 +0,0 @@ -from .__version__ import __version__ - -__all__ = ["__version__"] diff --git a/siapy/__version__.py b/siapy/__version__.py deleted file mode 100644 index 4165063..0000000 --- a/siapy/__version__.py +++ /dev/null @@ -1,18 +0,0 @@ -import os -import re - -# Define the path to the pyproject.toml file -pyproject_path = os.path.join( - os.path.dirname(os.path.dirname(__file__)), "pyproject.toml" -) - -# Read the pyproject.toml file -with open(pyproject_path, "r", encoding="utf-8") as f: - pyproject_content = f.read() - -# Use a regular expression to extract the version number -version_match = re.search(r'version\s*=\s*"([^"]+)"', pyproject_content) -if version_match: - __version__ = version_match.group(1) -else: - raise ValueError("Version number not found in pyproject.toml")