Skip to content

Commit

Permalink
ci: also build with Python 3.11 (#64)
Browse files Browse the repository at this point in the history
### Summary of Changes

We support Python 3.11, so we should also ensure the library can be used
with it.
  • Loading branch information
lars-reimann authored Mar 22, 2023
1 parent 12fe520 commit d8ea617
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ on:
jobs:
poetry-with-codecov:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10" ]
python-version:
- "3.10"
- "3.11"
uses: lars-reimann/.github/.github/workflows/poetry-codecov-reusable.yml@main
with:
working-directory: .
python-version: ${{ matrix.python-version }}
module-name: library_analyzer
coverage: ${{ matrix.python-version == '3.10' }}
6 changes: 5 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ concurrency:
jobs:
poetry-with-codecov:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10" ]
python-version:
- "3.10"
- "3.11"
uses: lars-reimann/.github/.github/workflows/poetry-codecov-reusable.yml@main
with:
working-directory: .
python-version: ${{ matrix.python-version }}
module-name: library_analyzer
coverage: ${{ matrix.python-version == '3.10' }}
2 changes: 1 addition & 1 deletion src/library_analyzer/processing/api/_package_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def distribution(package_name: str) -> Optional[str]:


def distribution_version(dist: Optional[str]) -> Optional[str]:
if dist is None:
if dist is None or len(dist) == 0:
return None

return version(dist)

0 comments on commit d8ea617

Please sign in to comment.