Skip to content

Commit

Permalink
Merge pull request #16 from cfobel/fix/fix-version-import
Browse files Browse the repository at this point in the history
Fix/fix version import
  • Loading branch information
cfobel authored Jul 5, 2024
2 parents 922374f + 6a86ea2 commit 23cbb5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
Expand Down Expand Up @@ -62,12 +62,12 @@ jobs:
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.12"

- name: Install dependencies
run: |
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ dynamic = ["version"]
[project.optional-dependencies]
testing = ["pytest", "pytest-cov", "black", "flake8", "flake8-pyproject", "isort"]

[project.scripts]
si-prefix = "si_prefix:main"

[tool.setuptools_scm]
write_to = "si_prefix/_version.py"

Expand Down
2 changes: 1 addition & 1 deletion si_prefix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import re

try:
from ._version import version as __version__
from ._version import __version__
except ImportError: # pragma: no cover
try: # pragma: no cover
from setuptools_scm import get_version # pragma: no cover
Expand Down

0 comments on commit 23cbb5b

Please sign in to comment.