Skip to content

Commit

Permalink
Clean up packaging and README
Browse files Browse the repository at this point in the history
  • Loading branch information
kwilcox committed Apr 5, 2023
1 parent c854f4e commit fb908b1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
9 changes: 4 additions & 5 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
include LICENSE.txt
include README.md
include pyproject.toml
include reqs/*.yml

graft xpublish_host

prune tests
prune *.egg-info
prune .github
prune **/__pycache__
prune reqs

exclude Dockerfile
exclude .dockerignore
exclude .gitignore
exclude .pre-commit-config.yaml
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ plugins_load_defaults: true

# Define any additional plugins. This is where you can override
# default plugins. These will replace any auto-discovered plugins.
# The keys here (pc1) are not important and are not used internally)
# The keys here (pc1) are not important and are not used internally
plugins_config:
pc1:
module: xpublish.plugins.included.zarr.ZarrPlugin
Expand All @@ -102,7 +102,7 @@ cache_config:
available_bytes: 1e11

# Define all of the datasets to load into the xpublish instance.
# The keys here (dc1) are not important and are not used internally)
# The keys here (dc1) are not important and are not used internally
datasets_config:
dc1:
# The ID is used as the "key" of the dataset in `xpublish.Rest`
Expand All @@ -117,7 +117,8 @@ datasets_config:
args:
- [loader arg1]
- [loader arg2]
# Keyword arguments passed into the `loader` function
# Keyword arguments passed into the `loader` function. See the `examples`
# directory for more details on how this can be used.
kwargs:
t_axis: 'time'
y_axis: 'lat'
Expand Down Expand Up @@ -202,7 +203,7 @@ Either way, `xpublish` will be running on port 9000 with (2) datasets: `simple`
The Docker image by default loads a configuration file from `/xpd/config.yaml` and an environmental variable file from `/xpd/.env`. You can change the location of those files by setting the env variables `XPUB_CONFIG_FILE` and `XPUB_ENV_FILES` respectively.

```shell
docker build -t xpublish-host
docker build -t xpublish-host .

# Using default config path
docker run --rm -p 9000:9000 -v "$(pwd)/xpublish_host/examples/example.yaml:/xpd/config.yaml" xpublish-host
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ requires = [
name = "xpublish-host"
description = "A collection of tools to standardize xpublish hosting"
readme = "README.md"
[project.license]
file="LICENSE.txt"

authors = [
{ name="Kyle Wilcox", email="[email protected]" },
]
Expand Down Expand Up @@ -42,7 +45,7 @@ dependencies = [
"Homepage" = "https://github.com/axiom-data-science/xpublish-host"

[tool.setuptools]
packages = ["xpublish_host"]
packages = ["xpublish_host", "xpublish_host.examples"]
zip-safe = false
include-package-data = true

Expand Down

0 comments on commit fb908b1

Please sign in to comment.