Skip to content

Commit

Permalink
Properly build package before testing with tox
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeSneyders committed Feb 20, 2024
1 parent dd7c464 commit 694ea8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ maintainers = [
"Niels Rogge <[email protected]>",
]
repository = "https://github.com/ml6team/fondant"
include = ["*.txt", "*.rst", "*.md", "fondant/components/**/*.yaml"]
exclude = ["fondant/components"] # Exclude everything except for component specs
include = ["*.txt", "*.rst", "*.md", "src/fondant/components/**/*.yaml"]
#exclude = ["fondant/components"] # Exclude everything except for component specs
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
Expand Down Expand Up @@ -75,6 +75,9 @@ vertex = ["docker", "kfp", "google-cloud-aiplatform"]
sagemaker = ["sagemaker", "boto3"]
docker = ["docker"]

all = ["dask", "dask-cuda", "s3fs", "adlfs", "gcsfs", "docker", "kfp", "google-cloud-aiplatform",
"sagemaker", "boto3"]

[tool.poetry.group.test]
optional = true

Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ allowlist_externals=
/usr/bin/bash
commands_pre=
bash ./scripts/pre-build.sh
poetry lock
poetry install --all-extras
poetry show
poetry build
poetry run pip install dist/fondant-0.1.dev0-py3-none-any.whl
poetry run pip list
bash ./scripts/post-build.sh
commands=
poetry run python -m pytest tests -vv --cov fondant --cov-report term-missing --ignore=tests/integration_tests
commands_post=
Expand Down

0 comments on commit 694ea8e

Please sign in to comment.