Skip to content

Commit

Permalink
Update / cleanup build configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
plypaul committed Apr 25, 2024
1 parent 9e2c131 commit 1df0aca
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 25 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/cd-push-to-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ jobs:
with:
python-version: "${{ env.PYTHON_VERSION }}"

- name: Hatch Publish
- name: Hatch Publish `metricflow`
run: hatch build && hatch publish
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.PYPI_API_TOKEN }}

- name: Hatch Publish `metricflow-semantics`
run: cd metricflow-semantics && hatch build && hatch publish
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.PYPI_API_TOKEN }}
14 changes: 4 additions & 10 deletions metricflow-semantics/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,7 @@ features = [
"Source Code" = "https://github.com/dbt-labs/metricflow/tree/main/metricflow-semanitcs"

[tool.hatch.build.targets.sdist]
exclude = [
".github",
".changes",
".changie.yaml",
".gitignore",
".pre-commit-config.yaml",
"CONTRIBUTING.md",
"MAKEFILE",
"/tests_metricflow_semantics"
]
packages = ["metricflow_semantics"]

[tool.hatch.build.targets.wheel]
packages = ["metricflow_semantics"]
20 changes: 6 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,13 @@ trino-sql-client-packages = [
"trino>=0.327.0, <0.328.0",
]

# There are files that hatch will always include as well (e.g. the LICENSE file).
# See hatch build docs for more details.
[tool.hatch.build.targets.sdist]
exclude = [
".github",
".changes",
".changie.yaml",
".gitignore",
".pre-commit-config.yaml",
"CONTRIBUTING.md",
"Makefile",
"/dbt-metricflow",
"/local-data-warehouses",
"/metricflow-semantics/tests_metricflow_semantics",
"/scripts",
"/tests",
]
packages = ["metricflow", "metricflow-semantics/metricflow_semantics"]

[tool.hatch.build.targets.wheel]
packages = ["metricflow", "metricflow-semantics/metricflow_semantics"]


# Environment setup
Expand Down

0 comments on commit 1df0aca

Please sign in to comment.