-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: verify package can be installed and run
We now run an integration test that installs and executes the package in a clean Python environment with the minimum allowed dependency versions. This should ensure that all runtime dependencies are listed, and the min dependency versions work.
- Loading branch information
Showing
7 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.* | ||
**/__pycache__ | ||
**/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
|
||
**/__pycache__ | ||
/htmlcov | ||
**/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[tool.poetry] | ||
name = "smoketest" | ||
version = "0.1.0" | ||
description = "A package that depends on v8serialize with the oldest supported dependencies." | ||
authors = ["Your Name <you@example.com>"] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
v8serialize = "*" | ||
packaging = "<=14.5" # require the oldest version supported by v8serialize | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from v8serialize import SerializationFeature, dumps, loads | ||
|
||
|
||
def main() -> None: | ||
msg = "Don't let the smoke out!" | ||
msg_out = loads( | ||
dumps( | ||
"Don't let the smoke out!", | ||
v8_version=SerializationFeature.MaxCompatibility.first_v8_version, | ||
) | ||
) | ||
if msg != msg_out: | ||
raise AssertionError("Smoke test failed") | ||
print(msg_out) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |