mirror of
https://github.com/Kaelio/ktx.git
synced 2026-07-04 10:52:13 +02:00
chore: align release policy with bundled runtime wheel
This commit is contained in:
parent
9fb3d33f2f
commit
7500a4529a
2 changed files with 5 additions and 21 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
"python": {
|
"python": {
|
||||||
"publish": false,
|
"publish": false,
|
||||||
"repository": null,
|
"repository": null,
|
||||||
"packages": ["ktx-sl", "ktx-daemon", "kaelio-ktx"]
|
"packages": ["kaelio-ktx"]
|
||||||
},
|
},
|
||||||
"publishedPackageSmoke": {
|
"publishedPackageSmoke": {
|
||||||
"packageName": "@kaelio/ktx",
|
"packageName": "@kaelio/ktx",
|
||||||
|
|
|
||||||
|
|
@ -26,18 +26,6 @@ async function writeReleaseMetadataInputs(root) {
|
||||||
private: true,
|
private: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
await mkdir(join(root, 'python', 'ktx-sl'), { recursive: true });
|
|
||||||
await mkdir(join(root, 'python', 'ktx-daemon'), { recursive: true });
|
|
||||||
|
|
||||||
await writeFile(
|
|
||||||
join(root, 'python', 'ktx-sl', 'pyproject.toml'),
|
|
||||||
['[project]', 'name = "ktx-sl"', 'version = "0.1.0"', ''].join('\n'),
|
|
||||||
);
|
|
||||||
await writeFile(
|
|
||||||
join(root, 'python', 'ktx-daemon', 'pyproject.toml'),
|
|
||||||
['[project]', 'name = "ktx-daemon"', 'version = "0.1.0"', ''].join('\n'),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function writeUploadableArtifactFixtures(layout) {
|
async function writeUploadableArtifactFixtures(layout) {
|
||||||
|
|
@ -50,10 +38,6 @@ async function writeUploadableArtifactFixtures(layout) {
|
||||||
`${packageInfo.name}-tarball`,
|
`${packageInfo.name}-tarball`,
|
||||||
]),
|
]),
|
||||||
[join(layout.pythonDir, 'kaelio_ktx-0.1.0-py3-none-any.whl'), 'kaelio-ktx-runtime-wheel'],
|
[join(layout.pythonDir, 'kaelio_ktx-0.1.0-py3-none-any.whl'), 'kaelio-ktx-runtime-wheel'],
|
||||||
[join(layout.pythonDir, 'ktx_sl-0.1.0-py3-none-any.whl'), 'ktx-sl-wheel'],
|
|
||||||
[join(layout.pythonDir, 'ktx_sl-0.1.0.tar.gz'), 'ktx-sl-sdist'],
|
|
||||||
[join(layout.pythonDir, 'ktx_daemon-0.1.0-py3-none-any.whl'), 'ktx-daemon-wheel'],
|
|
||||||
[join(layout.pythonDir, 'ktx_daemon-0.1.0.tar.gz'), 'ktx-daemon-sdist'],
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
for (const [path, contents] of fileContents) {
|
for (const [path, contents] of fileContents) {
|
||||||
|
|
@ -78,7 +62,7 @@ function releasePolicy(overrides = {}) {
|
||||||
python: {
|
python: {
|
||||||
publish: false,
|
publish: false,
|
||||||
repository: null,
|
repository: null,
|
||||||
packages: ['ktx-sl', 'ktx-daemon', 'kaelio-ktx'],
|
packages: ['kaelio-ktx'],
|
||||||
...pythonOverrides,
|
...pythonOverrides,
|
||||||
},
|
},
|
||||||
publishedPackageSmoke: {
|
publishedPackageSmoke: {
|
||||||
|
|
@ -142,7 +126,7 @@ describe('release readiness policy', () => {
|
||||||
sourceRevision: 'abc123',
|
sourceRevision: 'abc123',
|
||||||
npmPublishEnabled: false,
|
npmPublishEnabled: false,
|
||||||
pythonPublishEnabled: false,
|
pythonPublishEnabled: false,
|
||||||
packageNames: ['@kaelio/ktx', 'ktx-sl', 'ktx-daemon', 'kaelio-ktx'],
|
packageNames: ['@kaelio/ktx', 'kaelio-ktx'],
|
||||||
publishedPackageSmokeGate: {
|
publishedPackageSmokeGate: {
|
||||||
status: 'not_required',
|
status: 'not_required',
|
||||||
script: 'pnpm run release:published-smoke',
|
script: 'pnpm run release:published-smoke',
|
||||||
|
|
@ -221,7 +205,7 @@ describe('release readiness policy', () => {
|
||||||
sourceRevision: 'abc123',
|
sourceRevision: 'abc123',
|
||||||
npmPublishEnabled: false,
|
npmPublishEnabled: false,
|
||||||
pythonPublishEnabled: false,
|
pythonPublishEnabled: false,
|
||||||
packageNames: ['@kaelio/ktx', 'ktx-sl', 'ktx-daemon', 'kaelio-ktx'],
|
packageNames: ['@kaelio/ktx', 'kaelio-ktx'],
|
||||||
publishedPackageSmokeGate: {
|
publishedPackageSmokeGate: {
|
||||||
status: 'required',
|
status: 'required',
|
||||||
script: 'pnpm run release:published-smoke',
|
script: 'pnpm run release:published-smoke',
|
||||||
|
|
@ -273,7 +257,7 @@ describe('release readiness policy', () => {
|
||||||
sourceRevision: 'abc123',
|
sourceRevision: 'abc123',
|
||||||
npmPublishEnabled: true,
|
npmPublishEnabled: true,
|
||||||
pythonPublishEnabled: false,
|
pythonPublishEnabled: false,
|
||||||
packageNames: ['@kaelio/ktx', 'ktx-sl', 'ktx-daemon', 'kaelio-ktx'],
|
packageNames: ['@kaelio/ktx', 'kaelio-ktx'],
|
||||||
publishedPackageSmokeGate: {
|
publishedPackageSmokeGate: {
|
||||||
status: 'required',
|
status: 'required',
|
||||||
script: 'pnpm run release:published-smoke',
|
script: 'pnpm run release:published-smoke',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue