Skip to content

Commit 290f748

Browse files
committed
Tidy up the repository to be published to Pypi
Signed-off-by: Douglas Reis <doreis@lowrisc.org>
1 parent 7a12469 commit 290f748

File tree

7 files changed

+135
-518
lines changed

7 files changed

+135
-518
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ uv sync --all-extras
4646
```
4747
Build package
4848
```sh
49-
cd rdl-exporter
50-
uv run python -m build
49+
uv build --all
5150
```
5251
Install the package locally
5352
```sh

pyproject.toml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
11
[project]
22
name = "benevisrdl"
3-
version = "0.0.0"
3+
version = "0.1.0"
44
description = "Houses PeakRDL pluggins."
55
requires-python = ">=3.10"
6-
readme = "README.md" # Path to your README file
7-
license = { file = "LICENSE" } # Path to your LICENSE file
6+
readme = "README.md"
7+
license = { file = "LICENSE" }
88
dependencies = [
9-
"uv==0.6.1",
10-
"isort==5.10.1",
11-
"yapf==0.32.0",
12-
"click>=8.2.1",
13-
"jinja2>=3.1.6",
14-
"peakrdl>=1.4.0",
159
]
10+
1611
[project.optional-dependencies]
1712
linting = [
13+
"pyright>=1.1.403",
1814
"ruff>=0.9.6",
19-
"mypy==0.971",
20-
"flake8 ~= 7.1",
2115
]
2216
dev = [
2317
"pytest>=8.4.1",
24-
"hatch>=1.4.1",
2518
"twine>=6.1.0",
26-
"build>=1.2.2",
19+
"uv-build>=0.8.4",
2720
]
2821
ci = ["benevisrdl[linting,dev]"]
2922

@@ -33,11 +26,25 @@ py-modules = []
3326
[tool.ruff]
3427
target-version = "py310"
3528
line-length = 100
29+
extend-exclude = [
30+
]
3631

3732
[tool.ruff.lint]
3833
preview = true
3934
explicit-preview-rules = true
40-
extend-select = ["E", "E303", "W391"]
35+
select = ["ALL"]
36+
extend-select = ["W391", "E303"]
37+
allowed-confusables = [""]
38+
ignore = [
39+
"D203", "D213", "COM812", "ISC001",
40+
"FIX", "TD",
41+
]
4142

4243
[tool.uv.workspace]
4344
members = [ "rdl2ot", "rdlexporter"]
45+
46+
[[tool.uv.index]]
47+
name = "testpypi"
48+
url = "https://test.pypi.org/simple/"
49+
publish-url = "https://test.pypi.org/legacy/"
50+
explicit = true

rdl2ot/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md

rdl2ot/pyproject.toml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,38 @@
11
[project]
22
name = "rdl2ot"
3-
version = "0.1.0"
3+
version = "0.1.7"
44
description = "An extension of PeakRDL to generate Opentitan RTL."
55
requires-python = ">=3.10"
6+
keywords = ["SystemRDL", "Opentitan", "Codegen"]
7+
readme = "README.md"
68
dependencies = [
9+
"click>=8.2.1",
10+
"jinja2>=3.1.6",
11+
"peakrdl>=1.4.0",
712
]
813

14+
authors = [
15+
{ name = "lowRISC contributors"},
16+
]
17+
18+
[project.scripts]
19+
rdl2ot = "rdl2ot.cli:main"
20+
21+
[project.urls]
22+
Homepage = "https://github.com/lowrisc/benevisrdl"
23+
Issues = "https://github.com/lowrisc/benevisrdl/issues"
24+
Documentation = "https://github.com/lowrisc/benevisrdl"
25+
26+
927
[build-system]
10-
requires = ["hatchling"]
11-
build-backend = "hatchling.build"
28+
requires = ["uv_build>=0.8.4,<0.9.0"]
29+
build-backend = "uv_build"
30+
31+
[tool.pyright]
32+
include = ["src"]
33+
reportMissingImports = "error"
34+
reportMissingTypeStubs = false
35+
venv = ".venv"
36+
executionEnvironments = [
37+
{ root = "src" },
38+
]

rdlexporter/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md

rdlexporter/pyproject.toml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
11
[project]
22
name = "rdlexporter"
3-
version = "0.1.0"
3+
version = "0.1.6"
44
description = "Library to export rdl files"
55
requires-python = ">=3.10"
66
keywords = ["SystemRDL", "library", "exporter"]
7-
dependencies = []
7+
readme = "README.md"
8+
dependencies = [
9+
"peakrdl>=1.4.0",
10+
]
811

912
authors = [
1013
{ name = "lowRISC contributors"},
1114
]
1215

1316
[project.urls]
14-
Homepage = "https://github.com/lowrisc/benevisrdl/rdlexporter"
15-
Issues = "https://github.com/lowrisc/benevisrdl/rdlexporter/issues"
16-
Documentation = "https://github.com/lowrisc/benevisrdl/rdlexporter"
17+
Homepage = "https://github.com/lowrisc/benevisrdl"
18+
Issues = "https://github.com/lowrisc/benevisrdl/issues"
19+
Documentation = "https://github.com/lowrisc/benevisrdl"
1720

1821
[build-system]
19-
requires = ["hatchling"]
20-
build-backend = "hatchling.build"
21-
22-
[tool.hatch.build.targets.wheel]
23-
packages = ["src/rdlexporter"]
22+
requires = ["uv_build>=0.8.4,<0.9.0"]
23+
build-backend = "uv_build"
2424

25-
[tool.hatch.build.targets.sdist]
26-
exclude = [
27-
"/.github",
28-
"/tests",
29-
"/*.pyc",
30-
"/.pytest_cache",
31-
"/.uv",
32-
"/.venv",
25+
[tool.pyright]
26+
include = ["src"]
27+
reportMissingImports = "error"
28+
reportMissingTypeStubs = false
29+
venv = ".venv"
30+
executionEnvironments = [
31+
{ root = "src" },
3332
]

0 commit comments

Comments
 (0)