-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Use dynamic versioning (#367)
- Loading branch information
1 parent
bf606b6
commit a894f2e
Showing
4 changed files
with
40 additions
and
25 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -16,25 +16,25 @@ jobs: | |
fetch-depth: 0 | ||
- uses: hynek/build-and-inspect-python-package@v2 | ||
|
||
# publish: | ||
# runs-on: ubuntu-latest | ||
# needs: build | ||
# environment: | ||
# name: publishing | ||
# url: https://pypi.org/project/tap-stackexchange/ | ||
# if: startsWith(github.ref, 'refs/tags/') | ||
# steps: | ||
# - uses: actions/download-artifact@v4 | ||
# with: | ||
# name: Packages | ||
# path: dist | ||
# - name: Upload wheel to release | ||
# uses: svenstaro/upload-release-action@v2 | ||
# with: | ||
# file: dist/*.whl | ||
# tag: ${{ github.ref }} | ||
# overwrite: true | ||
# file_glob: true | ||
publish: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
environment: | ||
name: publishing | ||
url: https://pypi.org/project/tap-stackexchange/ | ||
if: startsWith(github.ref, 'refs/tags/') | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: Packages | ||
path: dist | ||
- name: Upload wheel to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file: dist/*.whl | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true | ||
|
||
# - name: Publish | ||
# uses: pypa/[email protected] | ||
- name: Publish | ||
uses: pypa/[email protected] |
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 = "tap-stackexchange" | ||
version = "0.0.1" | ||
version = "0.0.0" | ||
description = "`tap-stackexchange` is a Singer tap for StackExchange, built with the Meltano SDK for Singer Taps." | ||
authors = ["Edgar Ramírez-Mondragón <[email protected]>"] | ||
classifiers = [ | ||
|
@@ -13,6 +13,8 @@ classifiers = [ | |
] | ||
keywords = [ | ||
"ELT", | ||
"meltano", | ||
"singer-io", | ||
"StackExchange", | ||
] | ||
license = "Apache-2.0" | ||
|
@@ -35,13 +37,21 @@ module = [ | |
ignore_missing_imports = true | ||
|
||
[build-system] | ||
requires = ["poetry-core==1.8.1"] | ||
build-backend = "poetry.core.masonry.api" | ||
build-backend = "poetry_dynamic_versioning.backend" | ||
requires = [ | ||
"poetry-core==1.8.1", | ||
"poetry-dynamic-versioning==1.2", | ||
] | ||
|
||
[tool.poetry.scripts] | ||
# CLI declaration | ||
tap-stackexchange = 'tap_stackexchange.tap:TapStackExchange.cli' | ||
|
||
[tool.poetry-dynamic-versioning] | ||
enable = true | ||
metadata = true | ||
style = "pep440" | ||
|
||
[tool.ruff] | ||
line-length = 88 | ||
target-version = "py38" | ||
|
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