diff options
| author | J08nY | 2024-04-16 14:46:47 +0200 |
|---|---|---|
| committer | J08nY | 2024-04-16 14:46:47 +0200 |
| commit | f57762f291bbd0de46c7a7f98135fd3e15827db2 (patch) | |
| tree | f511c13c0f3695651a1d479d2311c64ae80b7b76 | |
| parent | b766b7bf98160dd51086bf1463b62098522cc4d1 (diff) | |
| download | pyecsca-f57762f291bbd0de46c7a7f98135fd3e15827db2.tar.gz pyecsca-f57762f291bbd0de46c7a7f98135fd3e15827db2.tar.zst pyecsca-f57762f291bbd0de46c7a7f98135fd3e15827db2.zip | |
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | pyproject.toml | 50 |
2 files changed, 28 insertions, 26 deletions
@@ -1,5 +1,7 @@ PERF_SCRIPTS = test.ec.perf_mod test.ec.perf_formula test.ec.perf_mult test.sca.perf_combine test.sca.perf_zvp +all: help + test: pytest -m "not slow" --cov=pyecsca @@ -64,4 +66,4 @@ help: @echo " - docs: Build docs using sphinx." @echo " - help: Show this help." -.PHONY: test test-plots test-all typecheck typecheck-all codestyle codestyle-all docstyle black black-all perf doc-coverage docs +.PHONY: all test test-plots test-all typecheck typecheck-all codestyle codestyle-all docstyle black black-all perf doc-coverage docs diff --git a/pyproject.toml b/pyproject.toml index 285cd76..11485b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,45 +52,45 @@ ] [project.urls] -"Homepage" = "https://https://neuromancer.sk/pyecsca/" -"Documentation" = "https://https://neuromancer.sk/pyecsca/" -"Bug Tracker" = "https://github.com/J08nY/pyecsca/issues" -"Repository" = "https://github.com/J08nY/pyecsca" + "Homepage" = "https://https://neuromancer.sk/pyecsca/" + "Documentation" = "https://https://neuromancer.sk/pyecsca/" + "Bug Tracker" = "https://github.com/J08nY/pyecsca/issues" + "Repository" = "https://github.com/J08nY/pyecsca" [project.optional-dependencies] -"picoscope_sdk" = ["picosdk"] -"picoscope_alt" = ["picoscope"] -"chipwhisperer" = ["chipwhisperer"] -"smartcard" = ["pyscard"] -"leia" = ["smartleia"] -"gmp" = ["gmpy2"] -"pari" = ["cysignals", "cypari2"] -"dev" = ["mypy", "flake8", "interrogate", "pyinstrument", "black", "types-setuptools", "pydocstyle"] -"test" = ["pytest>=7.0.0", "coverage", "pytest-cov", "pytest-sugar", "pytest-mock"] -"doc" = ["sphinx", "sphinx-autodoc-typehints", "nbsphinx", "sphinx-paramlinks", "sphinx_design", "alabaster>=0.7.16"] + "picoscope_sdk" = ["picosdk"] + "picoscope_alt" = ["picoscope"] + "chipwhisperer" = ["chipwhisperer"] + "smartcard" = ["pyscard"] + "leia" = ["smartleia"] + "gmp" = ["gmpy2"] + "pari" = ["cysignals", "cypari2"] + "dev" = ["mypy", "flake8", "interrogate", "pyinstrument", "black", "types-setuptools", "pydocstyle"] + "test" = ["pytest>=7.0.0", "coverage", "pytest-cov", "pytest-sugar", "pytest-mock"] + "doc" = ["sphinx", "sphinx-autodoc-typehints", "nbsphinx", "sphinx-paramlinks", "sphinx_design", "alabaster>=0.7.16"] [tool.setuptools.packages.find] -include = ["pyecsca*"] -namespaces = true + include = ["pyecsca*"] + namespaces = true [tool.setuptools.package-data] -pyecsca = ["ec/efd/*/*", "ec/efd/*/*/*", "ec/efd/*/*/*/*", "ec/std/*", "ec/std/*/*"] + pyecsca = ["ec/efd/*/*", "ec/efd/*/*/*", "ec/efd/*/*/*/*", "ec/std/*", "ec/std/*/*"] [tool.setuptools_scm] [tool.pytest.ini_options] -testpaths = ["test"] -markers = [ + testpaths = ["test"] + markers = [ "slow: marks tests as slow (deselect with '-m \"not slow\"')", -] -filterwarnings = [ - "ignore:(?s).*pkg_resources is deprecated as an API:DeprecationWarning:chipwhisperer.capture.trace.TraceWhisperer", # ChipWhisperer + ] + filterwarnings = [ + "ignore:(?s).*pkg_resources is deprecated as an API:DeprecationWarning:chipwhisperer.capture.trace.TraceWhisperer", # ChipWhisperer #"ignore:Deprecated call to `pkg_resources.declare_namespace", "ignore:(?s).*Pyarrow will become a required dependency of pandas:DeprecationWarning", # pandas pyarrow (pandas<3.0), -] + ] [tool.mypy] -plugins = "numpy.typing.mypy_plugin" + plugins = "numpy.typing.mypy_plugin" [tool.interrogate] -exclude = ["pyecsca/ec/formula/fliparoo.py", "pyecsca/ec/formula/graph.py", "pyecsca/ec/formula/partitions.py", "pyecsca/ec/formula/switch_sign.py", "pyecsca/ec/std/.github/"] + exclude = ["pyecsca/ec/formula/fliparoo.py", "pyecsca/ec/formula/graph.py", "pyecsca/ec/formula/partitions.py", "pyecsca/ec/formula/switch_sign.py", "pyecsca/ec/std/.github/"] |
