-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
84 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ tests/**/.pytest_cache | |
*~ | ||
|
||
cocotbext/spi/_version.py | ||
.pdm.toml | ||
.pdm.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: debug-statements | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.3.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py37-plus] | ||
- repo: https://github.com/tox-dev/pyproject-fmt | ||
rev: "0.8.0" | ||
hooks: | ||
- id: pyproject-fmt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
include LICENSE | ||
include README.md | ||
recursive-include tests Makefile test_*.py test_*.v | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,36 @@ | ||
[build-system] | ||
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools>=61", | ||
"setuptools_scm[toml]>=6.2", | ||
"wheel", | ||
] | ||
|
||
[project] | ||
name = "cocotbext-spi" | ||
description = "SPI modules for cocotb" | ||
readme = "README.md" | ||
license = {text = "MIT"} | ||
authors = [ | ||
{name = "Spencer Chang", email = "[email protected]"}, | ||
] | ||
dependencies = [ | ||
"cocotb>=1.6", | ||
] | ||
requires-python = ">=3.7" | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)", | ||
] | ||
requires-python = ">=3.7" | ||
readme = "README.md" | ||
license = {text = "MIT"} | ||
dynamic = ["version"] | ||
dynamic = [ | ||
"version", | ||
] | ||
dependencies = [ | ||
"cocotb>=1.6", | ||
] | ||
[project.urls] | ||
repository = "https://github.com/schang412/cocotbext-spi" | ||
|
||
|
||
[tool.setuptools_scm] | ||
write_to = "cocotbext/spi/_version.py" | ||
|
@@ -32,27 +41,6 @@ testpaths = [ | |
] | ||
addopts = "--import-mode importlib" | ||
|
||
[tool.tox] | ||
legacy_tox_ini = """ | ||
[tox] | ||
isolated_build = true | ||
envlist = py{37,38,39},lint | ||
[testenv] | ||
setenv = | ||
PDM_IGNORE_SAVED_PYTHON="1" | ||
deps = pdm | ||
commands = | ||
pdm install --dev | ||
pytest tests -n auto | ||
[testenv:lint] | ||
deps = pdm | ||
commands = | ||
pdm install -G lint | ||
flake8 cocotbext/ tests/ | ||
""" | ||
|
||
[tool.pdm] | ||
[tool.pdm.dev-dependencies] | ||
test = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ module test_ads8028 | |
inout wire ncs | ||
); | ||
|
||
endmodule // test_ads8028 | ||
endmodule // test_ads8028 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
""" | ||
Copyright (c) 2021 Spencer Chang | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ module test_drv8304 | |
inout wire ncs | ||
); | ||
|
||
endmodule // test_drv8304 | ||
endmodule // test_drv8304 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ module test_tmc4671 | |
inout wire ncs | ||
); | ||
|
||
endmodule // test_tmc4671 | ||
endmodule // test_tmc4671 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[tox] | ||
isolated_build = true | ||
envlist = py{37,38,39},lint,check-dist | ||
|
||
[flake8] | ||
max-line-length = 120 | ||
|
||
[testenv] | ||
setenv = | ||
PDM_IGNORE_SAVED_PYTHON="1" | ||
deps = pdm | ||
commands = | ||
pdm install --dev | ||
pytest tests -n auto | ||
|
||
[testenv:lint] | ||
deps = pdm | ||
commands = | ||
pdm install -G lint | ||
flake8 cocotbext/ tests/ | ||
|
||
[testenv:check-dist] | ||
skip_install = true | ||
deps = | ||
pdm | ||
twine | ||
commands = | ||
pdm build | ||
twine check dist/* |