-
Notifications
You must be signed in to change notification settings - Fork 3
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
9 changed files
with
126 additions
and
101 deletions.
There are no files selected for viewing
34 changes: 0 additions & 34 deletions
34
.github/workflows/publish_dbtenv_dbt_alias_release_to_pypi.yml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,63 @@ | ||
name: Publish dbtenv and dbtenv-dbt-alias releases to PyPI | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish_dbtenv_package: | ||
defaults: | ||
run: | ||
working-directory: dbtenv | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
- name: Build package | ||
run: python -m poetry build | ||
|
||
- name: Publish package | ||
uses: pypa/[email protected] | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
packages_dir: dbtenv/dist | ||
publish_dbtenv_dbt_alias_package: | ||
defaults: | ||
run: | ||
working-directory: dbtenv-dbt-alias | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
- name: Build package | ||
run: python -m poetry build | ||
|
||
- name: ls | ||
run: ls | ||
|
||
- name: Publish package | ||
uses: pypa/[email protected] | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
packages_dir: dbtenv-dbt-alias/dist | ||
|
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,3 +1,3 @@ | ||
# dbtenv-dbt-alias | ||
|
||
Installs a 'dbt' executable that is functionally equivalent to aliasing the dbt command to `dbtenv execute --`. | ||
dbtenv, but additionally installs a 'dbt' executable that is functionally equivalent to aliasing the dbt command to 'dbtenv execute --'. |
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,7 +1,7 @@ | ||
[tool.poetry] | ||
name = "dbtenv-dbt-alias" | ||
version = "1.0.0" | ||
description = "Routes dbt commands through dbtenv." | ||
version = "2.2.0" | ||
description = "dbtenv, but additionally installs a 'dbt' executable that is functionally equivalent to aliasing the dbt command to 'dbtenv execute --'." | ||
authors = ["Brooklyn Data Co. <[email protected]>"] | ||
keywords = ["dbt"] | ||
license = "Apache 2.0" | ||
|
@@ -19,7 +19,7 @@ classifiers = [ | |
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8" | ||
dbtenv = ">=2.1.0" | ||
dbtenv = "==2.1.0" | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
|
@@ -29,4 +29,5 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry.scripts] | ||
# CLI declaration | ||
dbtenv = "dbtenv.main:main" | ||
dbt = "dbtenv.main:main" |
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,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "dbtenv" | ||
version = "2.1.0" | ||
version = "2.2.0" | ||
description = "dbtenv is a version manager for dbt, automatically installing and switching to the needed adapter and version of dbt." | ||
authors = ["Brooklyn Data Co. <[email protected]>"] | ||
keywords = ["dbt"] | ||
|
@@ -27,9 +27,6 @@ PyYAML = "^6.0" | |
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry.extras] | ||
dbt-alias = ["dbtenv-dbt-alias"] | ||
|
||
[tool.poetry.scripts] | ||
# CLI declaration | ||
dbtenv = "dbtenv.main:main" |