Skip to content

Commit

Permalink
fix: import error in executor compiled py pyinstaller (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
waketzheng committed Aug 21, 2024
1 parent 7decce7 commit 190fa7e
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 90 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,13 @@ jobs:
run: |
python -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry self add poetry-version-plugin
- name: Install requirements
run: |
poetry install
poetry run pip install coveralls
- name: Check code style and Type Hint
run: |
poetry run ruff check --extend-select=I .
poetry run ruff format --check .
poetry run mypy .
poetry run bandit -c pyproject.toml -r fastapi_cdn_host
run: ./scripts/check.sh
- name: test
run: ./scripts/test.sh
- name: build
Expand Down
5 changes: 1 addition & 4 deletions fastapi_cdn_host/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import importlib.metadata
from pathlib import Path

from .client import AssetUrl, CdnHostEnum, CdnHostItem, monkey_patch_for_docs_ui
from .utils import today_lock, weekday_lock

patch_docs = monkey_patch = monkey_patch_for_docs_ui
__version__ = importlib.metadata.version(Path(__file__).parent.name)
__version__ = "0.7.4"
__all__ = (
"__version__",
"AssetUrl",
Expand Down
Loading

0 comments on commit 190fa7e

Please sign in to comment.