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 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")