Skip to content

Commit 2f8bf78

Browse files
committed
tools: Autotuner: Prepare Python module structure
Signed-off-by: Eryk Szpotanski <[email protected]>
1 parent 6217504 commit 2f8bf78

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

tools/AutoTuner/installer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ script_dir="$(dirname "${BASH_SOURCE[0]}")"
77
venv_name="autotuner_env"
88
python3 -m venv "$script_dir/$venv_name"
99
source "$script_dir/$venv_name/bin/activate"
10-
pip3 install -U -r $script_dir/requirements.txt
10+
pip3 install -e "$script_dir"
1111
deactivate

tools/AutoTuner/pyproject.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[project]
2+
name = "autotuner"
3+
version = "0.0.1"
4+
description = "This project provides a set of tools for tuning OpenROAD-flow-scripts parameter without user interference."
5+
classifiers = [
6+
"Programming Language :: Python :: 3",
7+
"License :: OSI Approved :: BSD 3-Clause",
8+
]
9+
readme = "README.md"
10+
requires-python = ">= 3.8"
11+
dynamic = ["dependencies", "optional-dependencies"]
12+
13+
[tool.setuptools.dynamic]
14+
dependencies = { file = ["requirements.txt"] }
15+
optional-dependencies.dev = { file = ["requirements-dev.txt"] }
16+
17+
[build-system]
18+
requires = ["setuptools", "setuptools_scm"]
19+
build-backend = "setuptools.build_meta"
20+
21+
[tool.setuptools.packages.find]
22+
where = ["src/"]
23+
include = [
24+
"autotuner*",
25+
]
26+
27+
[tool.setuptools]
28+
include-package-data = true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
black
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""
2+
AutoTuner module integrating Ray Tune and Vizier framework
3+
for ORFS parameters optimization.
4+
"""

0 commit comments

Comments
 (0)