Skip to content

Commit 22e4077

Browse files
committed
bump: version 0.2.10.dev0 → 0.4.0
1 parent 1428e7d commit 22e4077

File tree

4 files changed

+64
-27
lines changed

4 files changed

+64
-27
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
## v0.4.0 (2025-09-29)
2+
3+
### Fix
4+
5+
- workaround for building python extensions with runtime_library_dirs on windows
6+
7+
### Refactor
8+
9+
- use actual src file for tests. fixes missing json file on windows
10+
- use actual src file for tests. fixes sonar from thinking it needs to check cpp code
11+
- use actual src file for tests. fixes missing json file
12+
- use actual src file for tests
13+
14+
## v0.3.0 (2025-09-29)
15+
16+
### Fix
17+
18+
- workaround for building python extensions with runtime_library_dirs on windows
19+
20+
### Refactor
21+
22+
- use actual src file for tests. fixes missing json file on windows
23+
- use actual src file for tests. fixes sonar from thinking it needs to check cpp code
24+
- use actual src file for tests. fixes missing json file
25+
- use actual src file for tests
26+
27+
## v0.2.9 (2025-08-08)
28+
129
## v0.2.7 (2025-08-04)
230

331
### Feat

Jenkinsfile

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -807,36 +807,45 @@ pipeline {
807807
}
808808
options{
809809
lock("${env.JOB_NAME}")
810-
// This has to be do "checkout scm" anyways to get the hash so there is no reason the check it out twice
811-
skipDefaultCheckout true
812810
}
813811
steps{
814-
unstash 'PYTHON_PACKAGES'
815812
script {
816-
def scmVars = checkout scm
817813
def projectMetadata = readTOML( file: 'pyproject.toml')['project']
818-
writeFile(
819-
file: 'body.md',
820-
text: "${projectMetadata.name} Version ${projectMetadata.version} Release"
821-
822-
)
823-
createGitHubRelease(
824-
credentialId: "${GITHUB_CREDENTIALS_ID}",
825-
repository: env.GITHUB_REPO,
826-
tag: env.BRANCH_NAME,
827-
commitish: scmVars.GIT_COMMIT,
828-
bodyFile: 'body.md',
829-
)
830-
def assets = []
831-
findFiles(glob: 'dist/*').each{
832-
assets << [filePath: "${it.path}"]
814+
withCredentials([string(credentialsId: GITHUB_CREDENTIALS_ID, variable: 'GITHUB_TOKEN')]) {
815+
def requestBody = JsonOutput.toJson([
816+
tag_name: env.BRANCH_NAME,
817+
name: "Version ${projectMetadata.version}",
818+
generate_release_notes: false,
819+
draft: false,
820+
prerelease: false
821+
])
822+
def createReleaseResponse = httpRequest(
823+
httpMode: 'POST',
824+
contentType: 'APPLICATION_JSON',
825+
url: "https://api.github.com/repos/UIUCLibrary/tripwire/releases",
826+
customHeaders: [
827+
[name: 'Authorization', value: "token ${GITHUB_TOKEN}"]
828+
],
829+
requestBody: requestBody,
830+
validResponseCodes: '201' // Expect a 201 Created status code
831+
)
832+
unstash 'PYTHON_PACKAGES'
833+
def releaseData = readJSON text: createReleaseResponse.content
834+
findFiles(glob: 'dist/*').each{
835+
def uploadResponse = httpRequest(
836+
url: "${releaseData.upload_url.replace('{?name,label}', '')}?name=${it.name}",
837+
httpMode: 'POST',
838+
uploadFile: it.path,
839+
customHeaders: [[name: 'Authorization', value: "token ${GITHUB_TOKEN}"]],
840+
wrapAsMultipart: false
841+
)
842+
if (uploadResponse.status >= 200 && uploadResponse.status < 300) {
843+
echo "File uploaded successfully to GitHub release."
844+
} else {
845+
error "Failed to upload file: ${uploadResponse.status} - ${uploadResponse.content}"
846+
}
847+
}
833848
}
834-
uploadGithubReleaseAsset(
835-
credentialId: "${GITHUB_CREDENTIALS_ID}",
836-
repository: env.GITHUB_REPO,
837-
tagName: env.BRANCH_NAME,
838-
uploadAssets: assets
839-
)
840849
}
841850
}
842851
post{

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ classifiers = [
99
"Programming Language :: Python :: 3",
1010
"Topic :: Software Development :: Libraries :: Python Modules",
1111
]
12-
version = "0.2.10.dev0"
12+
version = "0.4.0"
1313

1414
dependencies = [
1515
"setuptools>=77.0.1",

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)