Skip to content

Commit

Permalink
create shell package for athena-community
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Oct 9, 2024
1 parent b74e2ce commit ce58c26
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
23 changes: 13 additions & 10 deletions dbt-athena-community/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies=["dbt-athena>=1.0.0b2,<2.0"]
dependencies=["dbt-athena @ {root:uri}/../dbt-athena"]
[project.urls]
Homepage = "https://github.com/dbt-labs/dbt-athena/dbt-athena"
Documentation = "https://docs.getdbt.com"
Expand All @@ -40,6 +40,9 @@ include = ["src/dbt"]
[tool.hatch.build.targets.wheel]
packages = ["src/dbt"]

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.version]
path = "src/dbt/adapters/athena/__version__.py"

Expand All @@ -58,8 +61,8 @@ dependencies = [
[tool.hatch.envs.default.scripts]
setup = "pre-commit install"
code-quality = "pre-commit run --all-files"
unit-tests = "pytest --cov=dbt --cov-report=html:htmlcov {args:tests/unit}"
integration-tests = "python -m pytest -n auto {args:tests/functional}"
unit-tests = "pytest --cov=dbt --cov-report=html:htmlcov {args:../dbt-athena/tests/unit}"
integration-tests = "python -m pytest -n auto {args:../dbt-athena/tests/functional}"

[tool.hatch.envs.build]
detached = true
Expand All @@ -75,20 +78,20 @@ check-all = [
]
check-wheel = [
"twine check dist/*",
"find ./dist/dbt_athena-*.whl -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/",
"pip freeze | grep dbt-athena",
"find ./dist/dbt_athena_community-*.whl -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/",
"pip freeze | grep dbt-athena-community",
]
check-sdist = [
"check-wheel-contents dist/*.whl --ignore W007,W008",
"find ./dist/dbt_athena-*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/",
"pip freeze | grep dbt-athena",
"find ./dist/dbt_athena_community-*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/",
"pip freeze | grep dbt-athena-community",
]

[tool.pytest]
env_files = ["test.env"]
env_files = ["../dbt-athena/test.env"]
testpaths = [
"tests/unit",
"tests/functional",
"../dbt-athena/tests/unit",
"../dbt-athena/tests/functional",
]
filterwarnings = [
"ignore:.*'soft_unicode' has been renamed to 'soft_str'*:DeprecationWarning",
Expand Down
1 change: 1 addition & 0 deletions dbt-athena-community/src/dbt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# don't extend the path the way we normally would because this doesn't need to be discoverable
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version = "1.8.4"
10 changes: 0 additions & 10 deletions dbt-athena-community/test.env.example

This file was deleted.

0 comments on commit ce58c26

Please sign in to comment.