Skip to content

Commit efa3064

Browse files
[TEMP] Changes for testing during development + test.pypi deployment
- Rename package to dvsim_test - Add provision for a semantic release on the 'semantic-release-dev' branch Signed-off-by: Harry Callahan <hcallahan@lowrisc.org>
1 parent 9e54c36 commit efa3064

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
branches:
1111
# Branch-protected, only reviewed pull-requests push to master
1212
- "master"
13+
# [DEV] Pushes to the following branch during action-development only
14+
- "semantic-release-dev"
1315

1416
permissions:
1517
contents: read
@@ -55,7 +57,7 @@ jobs:
5557
# First time round, just determine the new version and increment the pyproject.toml accordingly.
5658
# Then, we can re-lock uv.lock with the new version, and leave the change staged
5759
uv run semantic-release version --skip-build --no-changelog --no-commit --no-tag --no-push --no-vcs-release
58-
uv lock --upgrade-package 'dvsim'
60+
uv lock --upgrade-package 'dvsim_test'
5961
git add uv.lock
6062
# The second invocation generates all other release metadata, and wraps up the lockfile change
6163
# into the single tagged release commit
@@ -142,7 +144,7 @@ jobs:
142144
runs-on: ubuntu-latest
143145
environment:
144146
name: test.pypi
145-
url: https://test.pypi.org/p/dvsim
147+
url: https://test.pypi.org/p/dvsim_test
146148
permissions:
147149
# IMPORTANT: this permission is mandatory for Trusted Publishing
148150
id-token: write

pyproject.toml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
###########
88

99
[project]
10-
name = "dvsim"
10+
name = "dvsim_test"
1111
version = "0.1.0"
1212
description = "DV system"
1313
authors = [{name = "lowRISC contributors (OpenTitan project)"}]
@@ -49,21 +49,21 @@ release = [
4949
]
5050

5151
dev = [
52-
"dvsim[linting,typing,test,debug]"
52+
"dvsim_test[linting,typing,test,debug]"
5353
]
5454
ci = [
55-
"dvsim[linting,typing,test]",
55+
"dvsim_test[linting,typing,test]",
5656
"gitpython",
5757
]
5858
# Dependency set to be installed automatically in the direnv-activated nix devshell
5959
# - Leave out ruff(linting) as it contains a rust binary that needs to be installed by the flake
6060
nix = [
61-
"dvsim[typing,test,debug]",
61+
"dvsim_test[typing,test,debug]",
6262
"gitpython",
6363
]
6464

6565
[project.scripts]
66-
dvsim = "dvsim.cli:main"
66+
dvsim = "dvsim_test.cli:main"
6767

6868
################
6969
# BUILD-SYSTEM #
@@ -80,6 +80,9 @@ build-backend = "hatchling.build"
8080
[tool.hatch]
8181
metadata.allow-direct-references = true
8282

83+
[tool.hatch.build.targets.wheel]
84+
packages = ["src/dvsim"]
85+
8386
[tool.pyright]
8487
include = ["src"]
8588
reportMissingImports = "error"
@@ -141,6 +144,11 @@ match = "master"
141144
prerelease_token = "rc"
142145
prerelease = false
143146

147+
[tool.semantic_release.branches.semantic-release-dev]
148+
match = "semantic-release-dev"
149+
prerelease_token = "rc-srd"
150+
prerelease = false
151+
144152
[tool.semantic_release.remote]
145153
name = "origin"
146154
ignore_token_for_push = true

uv.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)