-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
454 additions
and
66 deletions.
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 |
---|---|---|
|
@@ -33,8 +33,8 @@ jobs: | |
python-version: "3.11" | ||
cache: "pip" | ||
|
||
- name: Install hatch | ||
run: pipx install hatch | ||
- name: Install rye | ||
run: curl -sSf https://rye.astral.sh/get | bash | ||
|
||
- name: Bundle | ||
run: npm run bundle | ||
|
@@ -46,4 +46,5 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Julien Barnier" | ||
hatch -e docs run quarto publish gh-pages doc | ||
source .venv/bin/activate | ||
quarto publish gh-pages doc |
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
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 @@ | ||
3.11.9 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ _site/ | |
_freeze/ | ||
site_libs/ | ||
*_files/ | ||
*.html | ||
*.html |
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
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,10 +1,6 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "pyobsplot" | ||
dynamic = ["version"] | ||
version = "0.4.3" | ||
description = "Observable Plot in Jupyter notebooks and Quarto documents" | ||
authors = [{ name = "Julien Barnier", email = "[email protected]" }] | ||
license = {file = "LICENSE"} | ||
|
@@ -19,12 +15,12 @@ classifiers = [ | |
"Topic :: Scientific/Engineering :: Visualization", | ||
] | ||
dependencies = [ | ||
"anywidget[dev]==0.9.0", | ||
"pandas>=1.2.0", | ||
"polars>=0.20.0", | ||
"pyarrow==15.0.0", | ||
"anywidget[dev]>=0.9.11", | ||
"pandas>=2.2.2", | ||
"polars>=0.20.29", | ||
"pyarrow>=16.1.0", | ||
"requests", | ||
"typst>=0.11.0", | ||
"typst>=0.11.1", | ||
] | ||
|
||
[project.urls] | ||
|
@@ -33,45 +29,30 @@ documentation = "https://juba.github.io/pyobsplot" | |
repository = "https://github.com/juba/pyobsplot" | ||
changelog = "https://github.com/juba/pyobsplot/blob/main/NEWS.md" | ||
|
||
[tool.hatch.version] | ||
path = "src/pyobsplot/__about__.py" | ||
|
||
[tool.hatch.envs.default] | ||
dependencies = ["coverage[toml]>=6.5", "pytest", "geopandas>=0.12.2"] | ||
|
||
[tool.hatch.envs.default.scripts] | ||
test = "pytest {args:tests}" | ||
test-cov = "coverage run -m pytest {args:tests}" | ||
cov-report = ["- coverage combine", "coverage report"] | ||
cov = ["test-cov", "cov-report"] | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.envs.docs] | ||
dependencies = [ | ||
"jupyterlab", | ||
"geopandas>=0.12.2" | ||
[tool.rye] | ||
managed = true | ||
dev-dependencies = [ | ||
"pytest>=8.2.1", | ||
"geopandas>=0.14.4", | ||
"jupyterlab>=4.2.1", | ||
"ipykernel>=6.29.4", | ||
"playwright>=1.44.0", | ||
] | ||
|
||
|
||
[[tool.hatch.envs.tests.matrix]] | ||
python = ["3.10", "3.11"] | ||
|
||
[tool.hatch.envs.lint] | ||
detached = true | ||
dependencies = ["black>=23.9.1", "mypy>=1.0.0", "ruff>=0.0.291"] | ||
|
||
[tool.hatch.envs.lint.scripts] | ||
typing = "mypy --install-types --non-interactive {args:src/pyobsplot tests}" | ||
style = ["ruff {args:.}", "black --check --diff {args:.}"] | ||
fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] | ||
all = ["style", "typing"] | ||
[tool.rye.scripts] | ||
test = "pytest" | ||
|
||
[tool.hatch.metadata] | ||
allow-direct-references = true | ||
|
||
[tool.hatch.build.targets.sdist] | ||
exclude = [".github", "doc", ".vscode", "examples"] | ||
|
||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/pyobsplot"] | ||
|
||
|
@@ -150,16 +131,3 @@ ban-relative-imports = "all" | |
# Tests can use magic values, assertions, and relative imports | ||
"tests/**/*" = ["PLR2004", "S101", "TID252"] | ||
|
||
|
||
[tool.coverage.run] | ||
source_pkgs = ["pyobsplot", "tests"] | ||
branch = true | ||
parallel = true | ||
omit = ["src/pyobsplot/__about__.py"] | ||
|
||
[tool.coverage.paths] | ||
pyobsplot = ["src/pyobsplot"] | ||
tests = ["tests"] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] |
Oops, something went wrong.