Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: pytest
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
python3 -m venv venv
. venv/bin/activate
python3 -m pip install --upgrade pip
Expand All @@ -36,9 +39,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: pytest
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
python3 -m venv venv
. venv/bin/activate
python3 -m pip install --upgrade pip
Expand All @@ -56,9 +62,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: pytest
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
python3 -m venv venv
. venv/bin/activate
python3 -m pip install --upgrade pip
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
steps:
- name: Check out Git repository
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Lint with Flake8
run: |
pip install --upgrade pip
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
submodules: true
fetch-depth: 0

- uses: hynek/build-and-inspect-python-package@v2

publish:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ __pycache__/
dist/
venv/
.venv
.vscode/
.vscode/
umi/_version.py
19 changes: 13 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
[build-system]
requires = [
"setuptools >= 64",
"setuptools_scm[toml] >= 8, <10"
"setuptools >= 80",
"setuptools_scm[toml] >= 8"
]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "umi/_version.py"
write_to_template = '''
# This file is automatically generated by setuptools_scm.
# Do not edit it directly.

__version__ = "{version}"
'''

[tool.setuptools]
include-package-data = true
packages = ["umi"]
Expand All @@ -16,16 +25,14 @@ description = "Universal Memory Interface (UMI)"
readme = "README.md"
urls = {Homepage = "https://github.com/zeroasiccorp/umi"}
requires-python = ">= 3.9"
license = {file = "LICENSE"}
license = "Apache-2.0"
license-files = ["LICENSE"]
dependencies = [
"siliconcompiler >= 0.36.5",
"lambdalib >= 0.12.0, <0.13.0"
]
dynamic = ["version"]

[tool.setuptools.dynamic]
version = {attr = "umi.__version__"}

[project.optional-dependencies]
test = [
"pytest == 8.4.2",
Expand Down
6 changes: 5 additions & 1 deletion umi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
from umi import adapters
from umi.common import Standard

__version__ = "0.4.10"
try:
from umi._version import __version__
except ImportError:
# This only exists in installations
__version__ = None

__all__ = [
"Standard",
Expand Down
Loading