Skip to content

Commit

Permalink
pkg: add packaging config
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksiiOleksenko committed Apr 4, 2023
1 parent 2c9383e commit 73643e1
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
all: install

install:
python3 -m build
pip uninstall revizor
pip install dist/revizor-1.2.2-py3-none-any.whl

uninstall:
pip uninstall revizor

test_install:
python3 -c "import revizor; print(revizor.__version__)"

test:
./src/tests/runtests.sh

test_pre_release:
./src/tests/pre-release.sh

site_local:
mkdocs serve
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "revizor-fuzzer"
version = "1.2.2"
description = "A fuzzer to search for microarchitectural leaks in CPUs"
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Typing :: Typed",
]
dependencies = [
"unicorn==1.0.3",
"pyyaml",
"types-pyyaml",
"numpy"
]
maintainers = [{name = "Oleksii Oleksenko", email = ""}]

[project.urls]
"Homepage" = "https://microsoft.github.io/sca-fuzzer/"
"Source code" = "https://github.com/microsoft/sca-fuzzer"
"Bug Tracker" = "https://github.com/microsoft/sca-fuzzer/issues"
"Changelog" = "https://github.com/microsoft/sca-fuzzer/releases"

[tool.hatch.build.sources]
"src" = "revizor"

[tool.hatch.build]
exclude = [
"demo/",
"docs/",
"mkdocs-overrides/",
"src/tests/",
"src/x86/executor/",
"src/x86/tests/",
]

[project.scripts]
rvzr = "revizor.cli:main"

0 comments on commit 73643e1

Please sign in to comment.