Skip to content

Commit

Permalink
Release 1.0.0 (#231)
Browse files Browse the repository at this point in the history
* Pin dependency version between Python packages. These are always released together and should stay in sync

* Bump version to 1.0.0
  • Loading branch information
jonmmease authored Jan 21, 2023
1 parent c3faae5 commit 4c574e0
Show file tree
Hide file tree
Showing 20 changed files with 49 additions and 31 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions automation/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,25 @@ def bump_version(version):
cgf_path = cfg_dir / "setup.cfg"
parser = configparser.ConfigParser()
parser.read_string(cgf_path.read_text())

# Set package version
parser.set("metadata", "version", version)

# Check for embed dependencies
if parser.has_option("options.extras_require", "embed"):
deps = parser.get("options.extras_require", "embed").split("\n")
new_deps = []
for dep in deps:
if dep.strip().startswith("vegafusion-python-embed"):
new_deps.append(f"vegafusion-python-embed=={version}")
elif dep.strip().startswith("vegafusion"):
new_deps.append(f"vegafusion=={version}")
else:
new_deps.append(dep)

deps_str = "\n".join(new_deps)
parser.set("options.extras_require", "embed", deps_str)

with cgf_path.open("wt") as f:
parser.write(f)
print(f"Updated version in {cgf_path}")
Expand Down
2 changes: 1 addition & 1 deletion javascript/vegafusion-chart-editor/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion javascript/vegafusion-chart-editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-wasm-app",
"version": "1.0.0-rc3",
"version": "1.0.0",
"description": "create an app to consume rust-generated wasm packages",
"main": "index.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion javascript/vegafusion-embed/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion javascript/vegafusion-embed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vegafusion-embed",
"version": "1.0.0-rc3",
"version": "1.0.0",
"description": "Library to embed vegafusion visualizations",
"keywords": [
"vega",
Expand Down
2 changes: 1 addition & 1 deletion python/vegafusion-jupyter/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/vegafusion-jupyter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vegafusion-jupyter",
"version": "1.0.0-rc3",
"version": "1.0.0",
"description": "Altair Jupyter Widget library that relies on VegaFusion for serverside calculations",
"keywords": [
"jupyter",
Expand Down
4 changes: 2 additions & 2 deletions python/vegafusion-jupyter/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@
install_requires = [
'ipywidgets>=7.0.0,<9',
'altair>=4.2.0',
'vegafusion>=1.0.0rc1',
f'vegafusion=={version}', # [vegafusion VERSION]
],
extras_require={
'embed': [
"vegafusion-python-embed>=1.0.0rc1",
f"vegafusion-python-embed=={version}",
"vl-convert-python>=0.7.0"
],
},
Expand Down
2 changes: 1 addition & 1 deletion python/vegafusion-jupyter/vegafusion_jupyter/_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Information about the frontend package of the widgets.
"""
module_name = "vegafusion-jupyter"
module_version = "^1.0.0-rc3"
module_version = "^1.0.0"
2 changes: 1 addition & 1 deletion python/vegafusion-jupyter/vegafusion_jupyter/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0-rc3'
__version__ = '1.0.0'
4 changes: 2 additions & 2 deletions python/vegafusion/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ universal = 0
[metadata]
name = vegafusion
description = Core tools for using VegaFusion from Python
version = 1.0.0-rc3
version = 1.0.0
long_description = file: README.md
long_description_content_type = text/markdown
keywords = vega, altair, vegafusion, arrow
Expand Down Expand Up @@ -34,6 +34,6 @@ install_requires =

[options.extras_require]
embed =
vegafusion-python-embed>=1.0.0rc1
vegafusion-python-embed==1.0.0
vl-convert-python>=0.7.0

2 changes: 1 addition & 1 deletion python/vegafusion/vegafusion/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0-rc3'
__version__ = '1.0.0'
2 changes: 1 addition & 1 deletion vegafusion-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "vegafusion-core"
license = "BSD-3-Clause"
edition = "2021"
version = "1.0.0-rc3"
version = "1.0.0"

[features]
tonic_support = [ "tonic", "tonic-build",]
Expand Down
6 changes: 3 additions & 3 deletions vegafusion-python-embed/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "vegafusion-python-embed"
license = "BSD-3-Clause"
edition = "2021"
version = "1.0.0-rc3"
version = "1.0.0"

[lib]
name = "vegafusion_embed"
Expand All @@ -26,12 +26,12 @@ version = "1.0.79"
[dependencies.vegafusion-core]
path = "../vegafusion-core"
features = [ "pyo3",]
version = "1.0.0-rc3"
version = "1.0.0"

[dependencies.vegafusion-rt-datafusion]
path = "../vegafusion-rt-datafusion"
features = [ "pyarrow",]
version = "1.0.0-rc3"
version = "1.0.0"

[dependencies.tokio]
version = "1.18.1"
Expand Down
4 changes: 2 additions & 2 deletions vegafusion-rt-datafusion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ harness = false
name = "vegafusion-rt-datafusion"
license = "BSD-3-Clause"
edition = "2021"
version = "1.0.0-rc3"
version = "1.0.0"

[features]
pyarrow = [ "vegafusion-core/pyarrow",]
Expand Down Expand Up @@ -67,7 +67,7 @@ features = [ "bundled",]
[dependencies.vegafusion-core]
path = "../vegafusion-core"
features = [ "sqlgen",]
version = "1.0.0-rc3"
version = "1.0.0"

[dependencies.serde]
version = "1.0.137"
Expand Down
6 changes: 3 additions & 3 deletions vegafusion-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ path = "src/main.rs"

[package]
name = "vegafusion-server"
version = "1.0.0-rc3"
version = "1.0.0"
edition = "2021"
license = "BSD-3-Clause"

Expand All @@ -26,11 +26,11 @@ prost-build = "0.11.4"
[dependencies.vegafusion-core]
path = "../vegafusion-core"
features = [ "tonic_support",]
version = "1.0.0-rc3"
version = "1.0.0"

[dependencies.vegafusion-rt-datafusion]
path = "../vegafusion-rt-datafusion"
version = "1.0.0-rc3"
version = "1.0.0"

[dependencies.tokio]
version = "1.18.1"
Expand Down
4 changes: 2 additions & 2 deletions vegafusion-wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vegafusion-wasm"
version = "1.0.0-rc3"
version = "1.0.0"
edition = "2021"

[lib]
Expand All @@ -22,7 +22,7 @@ wasm-bindgen-test = "0.3.13"

[dependencies.vegafusion-core]
path = "../vegafusion-core"
version = "1.0.0-rc3"
version = "1.0.0"

[dependencies.serde]
version = "1.0.137"
Expand Down
2 changes: 1 addition & 1 deletion vegafusion-wasm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vegafusion-wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vegafusion-wasm",
"version": "1.0.0-rc3",
"version": "1.0.0",
"author": {
"name": "Jon Mease",
"email": "[email protected]",
Expand Down

0 comments on commit 4c574e0

Please sign in to comment.