Skip to content

Commit

Permalink
chore: update release scripts for python dependencies, update release…
Browse files Browse the repository at this point in the history
… instructions (#632)
  • Loading branch information
domoritz authored Dec 16, 2024
1 parent 67c68ca commit 5740dec
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/duckdb-server-rust/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ Run the benchmarks with
cargo bench
```

### Update dependencies
### Update Dependencies

Update the lockfile with `cargo update` and look for outdated dependencies with [cargo-outdated](https://github.com/kbknapp/cargo-outdated) `cargo outdated -d 1`.

### Release
### Publishing

Bump the version in `Cargo.toml` and then run `cargo publish`.
2 changes: 1 addition & 1 deletion packages/duckdb-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ Loads the bundled results.

## Publishing

Run the build with `uv build`. Then publish with `uvx twine upload --skip-existing dist/*`. We publish using tokens so when asked, set the username to `__token__` and then use your token as the password. Alternatively, create a [`.pypirc` file](https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#create-an-account).
Run the build with `uv build`. Then publish with `uvx twine upload --skip-existing ../../dist/*`. We publish using tokens so when asked, set the username to `__token__` and then use your token as the password. Alternatively, create a [`.pypirc` file](https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#create-an-account).
7 changes: 3 additions & 4 deletions packages/duckdb-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"version": "0.12.1",
"private": true,
"scripts": {
"prepublishOnly": "uv run pytest && uv run ruff check && uv run ruff format --check",
"publish": "uv build && uvx twine upload --skip-existing dist/*",
"release": "npm run prepublishOnly && npm run publish",
"dev": "uv run watchmedo auto-restart --pattern '*.py' --recursive --signal SIGTERM uv run duckdb-server"
"dev": "uv run watchmedo auto-restart --pattern '*.py' --recursive --signal SIGTERM uv run duckdb-server",
"prerelease": "uv run pytest && uv run ruff check && uv run ruff format --check",
"release": "uv build && uvx twine upload --skip-existing ../../dist/mosaic_widget*"
}
}
2 changes: 1 addition & 1 deletion packages/widget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Run `uv run ruff check --fix` and `uv run ruff format` to lint the code.

## Publishing

Run the build with `uv build`. Then publish with `uvx twine upload --skip-existing dist/*`. We publish using tokens so when asked, set the username to `__token__` and then use your token as the password. Alternatively, create a [`.pypirc` file](https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#create-an-account).
Run the build with `uv build`. Then publish with `uvx twine upload --skip-existing ../../dist/*`. We publish using tokens so when asked, set the username to `__token__` and then use your token as the password. Alternatively, create a [`.pypirc` file](https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#create-an-account).
5 changes: 2 additions & 3 deletions packages/widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
"dev": "npm run build -- --watch",
"test": "tsc -p jsconfig.json",
"lint": "eslint src",
"prepublishOnly": "npm run test && npm run lint && uv run ruff check && uv run ruff format --check && npm run build",
"publish": "uv build && uvx twine upload --skip-existing dist/*",
"release": "npm run prepublishOnly && npm run publish"
"prerelease": "npm run test && npm run lint && uv run ruff check && uv run ruff format --check && npm run build",
"release": "uv build && uvx twine upload --skip-existing ../../dist/mosaic_widget*"
},
"dependencies": {
"@uwdata/mosaic-core": "^0.12.2",
Expand Down

0 comments on commit 5740dec

Please sign in to comment.