Skip to content

Commit

Permalink
🐞 fix: ModuleNotFoundError: No module named 'pkg_resources' #33
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-yang-biz committed Sep 9, 2023
1 parent fcc5485 commit 7c8c719
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
3 changes: 3 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
1. fixed following issues due to github actions upgrade:
1. [#42](https://github.com/zillionare/python-project-wizard/issues/42)
2. checkout@v2, setup-python@v2 is deprecated
3. [#33](https://github.com/zillionare/python-project-wizard/issues/33)
4. [#34](https://github.com/zillionare/python-project-wizard/issues/34)
5. [#41](https://github.com/zillionare/python-project-wizard/issues/41)
2. add mypy as type checker
3. remove python 3.7, add python 3.11 and use python 3.11 as default
6 changes: 3 additions & 3 deletions {{cookiecutter.project_slug}}/.github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ jobs:
- name: build documentation
run: |
poetry install -E doc
poetry run mkdocs build
mkdocs build
git config --global user.name Docs deploy
git config --global user.email [email protected]
poetry run mike deploy -p -f --ignore "`poetry version --short`.dev"
poetry run mike set-default -p "`poetry version --short`.dev"
mike deploy -p -f --ignore "`poetry version --short`.dev"
mike set-default -p "`poetry version --short`.dev"
- name: Build wheels and source tarball
run: |
Expand Down
6 changes: 3 additions & 3 deletions {{cookiecutter.project_slug}}/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ jobs:
- name: publish documentation
run: |
poetry install -E doc
poetry run mkdocs build
mkdocs build
git config --global user.name Docs deploy
git config --global user.email [email protected]
poetry run mike deploy -p -f --ignore `poetry version --short` latest
poetry run mike set-default -p `poetry version --short`
mike deploy -p -f --ignore `poetry version --short` latest
mike set-default -p `poetry version --short`
- name: Build wheels and source tarball
run: |
Expand Down
8 changes: 7 additions & 1 deletion {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ livereload = {version = "^2.6.3", optional = true}
pyreadline = {version = "^2.1", optional = true}
mike = { version="^1.1.2", optional=true}
mypy = {version = "^1.5.1", optional = true}
setuptools = {version="^68.0", optional = true}
pkginfo = {version="^1.9", optional = true}
virtualenv = {version="^20.0", optional = true}

[tool.poetry.extras]
test = [
Expand All @@ -85,7 +88,10 @@ doc = [
"mkdocstrings",
"mkdocs-material-extension",
"mkdocs-autorefs",
"mike"
"mike",
"setuptools",
"pkginfo",
"virtualenv"
]

{% if cookiecutter.command_line_interface|lower == 'fire' -%}
Expand Down

0 comments on commit 7c8c719

Please sign in to comment.