Skip to content

Commit a894f2e

Browse files
chore: Use dynamic versioning (#367)
1 parent bf606b6 commit a894f2e

File tree

4 files changed

+40
-25
lines changed

4 files changed

+40
-25
lines changed

Diff for: .github/workflows/build.yaml

+21-21
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ jobs:
1616
fetch-depth: 0
1717
- uses: hynek/build-and-inspect-python-package@v2
1818

19-
# publish:
20-
# runs-on: ubuntu-latest
21-
# needs: build
22-
# environment:
23-
# name: publishing
24-
# url: https://pypi.org/project/tap-stackexchange/
25-
# if: startsWith(github.ref, 'refs/tags/')
26-
# steps:
27-
# - uses: actions/download-artifact@v4
28-
# with:
29-
# name: Packages
30-
# path: dist
31-
# - name: Upload wheel to release
32-
# uses: svenstaro/upload-release-action@v2
33-
# with:
34-
# file: dist/*.whl
35-
# tag: ${{ github.ref }}
36-
# overwrite: true
37-
# file_glob: true
19+
publish:
20+
runs-on: ubuntu-latest
21+
needs: build
22+
environment:
23+
name: publishing
24+
url: https://pypi.org/project/tap-stackexchange/
25+
if: startsWith(github.ref, 'refs/tags/')
26+
steps:
27+
- uses: actions/download-artifact@v4
28+
with:
29+
name: Packages
30+
path: dist
31+
- name: Upload wheel to release
32+
uses: svenstaro/upload-release-action@v2
33+
with:
34+
file: dist/*.whl
35+
tag: ${{ github.ref }}
36+
overwrite: true
37+
file_glob: true
3838

39-
# - name: Publish
40-
# uses: pypa/[email protected]
39+
- name: Publish
40+
uses: pypa/[email protected]

Diff for: .pre-commit-config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ repos:
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
1616

17+
- repo: https://github.com/tox-dev/pyproject-fmt
18+
rev: "1.5.3"
19+
hooks:
20+
- id: pyproject-fmt
21+
1722
- repo: https://github.com/astral-sh/ruff-pre-commit
1823
# Ruff version.
1924
rev: 'v0.1.13'

Diff for: pyproject.toml

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tap-stackexchange"
3-
version = "0.0.1"
3+
version = "0.0.0"
44
description = "`tap-stackexchange` is a Singer tap for StackExchange, built with the Meltano SDK for Singer Taps."
55
authors = ["Edgar Ramírez-Mondragón <[email protected]>"]
66
classifiers = [
@@ -13,6 +13,8 @@ classifiers = [
1313
]
1414
keywords = [
1515
"ELT",
16+
"meltano",
17+
"singer-io",
1618
"StackExchange",
1719
]
1820
license = "Apache-2.0"
@@ -35,13 +37,21 @@ module = [
3537
ignore_missing_imports = true
3638

3739
[build-system]
38-
requires = ["poetry-core==1.8.1"]
39-
build-backend = "poetry.core.masonry.api"
40+
build-backend = "poetry_dynamic_versioning.backend"
41+
requires = [
42+
"poetry-core==1.8.1",
43+
"poetry-dynamic-versioning==1.2",
44+
]
4045

4146
[tool.poetry.scripts]
4247
# CLI declaration
4348
tap-stackexchange = 'tap_stackexchange.tap:TapStackExchange.cli'
4449

50+
[tool.poetry-dynamic-versioning]
51+
enable = true
52+
metadata = true
53+
style = "pep440"
54+
4555
[tool.ruff]
4656
line-length = 88
4757
target-version = "py38"

Diff for: tap_stackexchange/tap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class TapStackExchange(Tap):
4747
th.Property(
4848
"tags",
4949
th.ArrayType(th.StringType),
50-
default=["LimeSurvey"],
50+
default=[],
5151
description="Question tags",
5252
),
5353
th.Property(

0 commit comments

Comments
 (0)