Skip to content

Commit cecdc07

Browse files
Merge branch 'main' into edgarrmondragon/refactor/capabilities
2 parents c2ca5e2 + b425274 commit cecdc07

File tree

186 files changed

+7109
-2050
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+7109
-2050
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Bug Report
22
description: File a bug report
33
title: "bug: <title>"
4-
labels: ["kind/Bug", "valuestream/SDK"]
4+
type: Fix
5+
assignees:
6+
- edgarrmondragon
57

68
body:
79
- type: markdown
@@ -13,7 +15,7 @@ body:
1315
attributes:
1416
label: Singer SDK Version
1517
description: Version of the library you are using
16-
placeholder: "0.39.1"
18+
placeholder: "0.42.1"
1719
validations:
1820
required: true
1921
- type: checkboxes
@@ -29,14 +31,13 @@ body:
2931
label: Python Version
3032
description: Version of Python you are using
3133
options:
32-
- "3.6 (EOL)"
33-
- "3.7 (EOL)"
34-
- "3.8"
35-
- "3.9"
36-
- "3.10"
37-
- "3.11"
38-
- "3.12"
3934
- "NA"
35+
- "3.13"
36+
- "3.12"
37+
- "3.11"
38+
- "3.10"
39+
- "3.9"
40+
- "3.8 or earlier"
4041
validations:
4142
required: true
4243
- type: dropdown
@@ -61,7 +62,7 @@ body:
6162
description: What operating system you are using
6263
placeholder: "Windows"
6364
validations:
64-
required: true
65+
required: false
6566
- type: textarea
6667
id: what-happened
6768
attributes:
@@ -78,3 +79,9 @@ body:
7879
render: Python
7980
validations:
8081
required: false
82+
- type: input
83+
id: slack_or_linen
84+
attributes:
85+
label: Link to Slack/Linen
86+
description: Provide a link to the Slack or Linen conversation, if applicable
87+
placeholder: "https://..."

.github/ISSUE_TEMPLATE/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Documentation change
22
description: Request a documentation change
33
title: "docs: <title>"
4+
type: Docs
45
labels: ["Documentation", "valuestream/SDK"]
6+
assignees:
7+
- edgarrmondragon
58

69
body:
710
- type: markdown

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ name: Feature request
22
description: Request a new feature
33
title: "feat: <title>"
44
labels: ["kind/Feature", "valuestream/SDK"]
5+
type: Feat
56
assignees:
6-
- meltano/engineering
7+
- edgarrmondragon
78

89
body:
910
- type: markdown
@@ -16,7 +17,8 @@ body:
1617
label: Feature scope
1718
description: Functionality this new feature would impact
1819
options:
19-
- Taps (catalog, state, stream maps, tests, etc.)
20+
- Taps (catalog, state, tests, etc.)
21+
- Inline mapping (stream maps, flattening, etc.)
2022
- Targets (data type handling, batching, SQL object generation, tests, etc.)
2123
- Configuration (settings parsing, validation, etc.)
2224
- CLI (options, error messages, logging, etc.)

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ updates:
1515
update-types:
1616
- "minor"
1717
- "patch"
18+
versioning-strategy: increase-if-necessary
1819
- package-ecosystem: pip
1920
directory: "/.github/workflows"
2021
schedule:

.github/workflows/api-changes.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,14 @@ jobs:
3030
- name: Setup Python
3131
uses: actions/setup-python@v5
3232
with:
33-
python-version: 3.12
33+
python-version: 3.x
3434

3535
- name: Install tools
3636
env:
3737
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
3838
run: |
3939
python -Im pip install -U pip
4040
pipx install griffe nox
41-
pipx inject nox nox-poetry
4241
pipx list
4342
4443
- name: Set REF

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ name: "CodeQL"
88

99
on:
1010
push:
11-
branches: [ "main" ]
11+
branches:
12+
- "main"
13+
- "v*"
1214
paths:
1315
- .github/workflows/codeql-analysis.yml
1416
- '**.py' # Any Python file

.github/workflows/codspeed.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- "main"
7+
- "v*"
78
paths:
89
- "singer_sdk/**"
910
- "tests/**"
@@ -30,7 +31,7 @@ jobs:
3031
- uses: actions/checkout@v4
3132
- uses: actions/setup-python@v5
3233
with:
33-
python-version: 3.12
34+
python-version: 3.x
3435
architecture: x64
3536

3637
- name: Install poetry

.github/workflows/constraints.txt

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
griffe==0.48.0
2-
pip==24.2
3-
poetry==1.8.3
4-
poetry-plugin-export==1.8.0
5-
poetry-dynamic-versioning==1.4.0
6-
pre-commit==3.8.0
7-
nox==2024.4.15
8-
nox-poetry==1.0.3
1+
griffe~=1.5
2+
pip==24.3.1
3+
poetry==1.8.4
4+
pre-commit==4.0.1
5+
nox==2024.10.9

.github/workflows/cookiecutter-e2e.yml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ on:
88
- "e2e-tests/cookiecutters/**"
99
- ".github/workflows/cookiecutter-e2e.yml"
1010
push:
11-
branches: [main]
11+
branches:
12+
- main
13+
- v*
1214
paths:
1315
- "cookiecutter/**"
1416
- "e2e-tests/cookiecutters/**"
@@ -24,14 +26,8 @@ env:
2426

2527
jobs:
2628
lint:
27-
name: Cookiecutter E2E Python ${{ matrix.python-version }} / ${{ matrix.os }}
28-
runs-on: ${{ matrix.os }}
29-
strategy:
30-
fail-fast: true
31-
matrix:
32-
include:
33-
- { python-version: "3.12", os: "ubuntu-latest" }
34-
29+
name: Cookiecutter E2E Python
30+
runs-on: ubuntu-latest
3531
steps:
3632
- uses: actions/checkout@v4
3733
- name: Upgrade pip
@@ -46,38 +42,36 @@ jobs:
4642
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
4743
run: |
4844
pipx install poetry
49-
pipx inject poetry poetry-plugin-export
5045
poetry --version
51-
poetry self show plugins
5246
5347
- uses: actions/setup-python@v5
5448
with:
55-
python-version: ${{ matrix.python-version }}
56-
architecture: x64
57-
cache: 'pip'
58-
cache-dependency-path: 'poetry.lock'
49+
python-version: 3.x
50+
51+
- uses: astral-sh/setup-uv@v4
52+
with:
53+
version: ">=0.4.30"
5954

6055
- name: Install pre-commit
6156
run: |
62-
pipx install pre-commit
57+
uv tool install --with=pre-commit-uv pre-commit
6358
pre-commit --version
6459
6560
- name: Install Nox
6661
env:
6762
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
6863
run: |
69-
pipx install nox
70-
pipx inject nox nox-poetry
64+
uv tool install nox
7165
nox --version
7266
7367
- name: Run Nox
7468
run: |
75-
nox --python=${{ matrix.python-version }} --session=test_cookiecutter
69+
nox --session=test_cookiecutter
7670
7771
- uses: actions/upload-artifact@v4
7872
if: always()
7973
with:
80-
name: cookiecutter-${{ matrix.os }}-py${{ matrix.python-version }}
74+
name: cookiecutter-ubuntu-latest-py3x
8175
path: |
8276
/tmp/tap-*
8377
/tmp/target-*

.github/workflows/release.yml

Lines changed: 49 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,52 @@ on:
55

66
jobs:
77
build:
8+
name: Build artifacts
89
runs-on: ubuntu-latest
910
steps:
1011
- uses: actions/checkout@v4
1112
with:
1213
fetch-depth: 0
1314
- uses: hynek/build-and-inspect-python-package@v2
1415

16+
check-tag:
17+
name: Check tag
18+
runs-on: ubuntu-latest
19+
if: startsWith(github.ref, 'refs/tags/')
20+
outputs:
21+
is_final: ${{ steps.check.outputs.is_final }}
22+
steps:
23+
- name: Check if tag is a pre-release
24+
id: check
25+
run: |
26+
echo "is_final=$(echo '${{ github.ref }}' | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+$' && echo 'true' || echo 'false')" >> $GITHUB_OUTPUT
27+
28+
provenance:
29+
name: Provenance
30+
runs-on: ubuntu-latest
31+
needs: [build]
32+
if: startsWith(github.ref, 'refs/tags/')
33+
permissions:
34+
id-token: write # Needed for attestations
35+
attestations: write # Needed for attestations
36+
outputs:
37+
bundle-path: ${{ steps.attest.outputs.bundle-path }}
38+
steps:
39+
- uses: actions/download-artifact@v4
40+
with:
41+
name: Packages
42+
path: dist
43+
- uses: actions/attest-build-provenance@v1
44+
id: attest
45+
with:
46+
subject-path: "./dist/singer_sdk*"
47+
- uses: actions/upload-artifact@v4
48+
with:
49+
name: Attestations
50+
path: ${{ steps.attest.outputs.bundle-path }}
51+
1552
publish:
16-
name: Publish to PyPI
53+
name: PyPI
1754
runs-on: ubuntu-latest
1855
needs: [build]
1956
environment:
@@ -28,38 +65,39 @@ jobs:
2865
name: Packages
2966
path: dist
3067
- name: Publish
31-
uses: pypa/gh-action-pypi-publish@v1.9.0
68+
uses: pypa/gh-action-pypi-publish@v1.12.2
3269

3370
upload-to-release:
3471
name: Upload files to release
3572
runs-on: ubuntu-latest
36-
needs: [build]
37-
if: startsWith(github.ref, 'refs/tags/')
73+
needs: [build, check-tag, provenance]
74+
if: ${{ startsWith(github.ref, 'refs/tags/') && needs.check-tag.outputs.is_final == 'true' }}
3875
permissions:
3976
contents: write # Needed for uploading files to the release
40-
id-token: write # Needed for attestations
41-
attestations: write # Needed for attestations
4277

4378
steps:
4479
- uses: actions/download-artifact@v4
4580
with:
4681
name: Packages
4782
path: dist
83+
84+
- uses: actions/download-artifact@v4
85+
with:
86+
name: Attestations
87+
path: attestations
88+
4889
- name: Upload wheel and sdist to release
4990
uses: svenstaro/upload-release-action@v2
5091
with:
5192
file: dist/singer_sdk*
5293
tag: ${{ github.ref }}
5394
overwrite: true
5495
file_glob: true
55-
- uses: actions/attest-build-provenance@v1
56-
id: attest
57-
with:
58-
subject-path: "./dist/singer_sdk*"
96+
5997
- name: Upload attestations to release
6098
uses: svenstaro/upload-release-action@v2
6199
with:
62-
file: ${{ steps.attest.outputs.bundle-path }}
100+
file: attestations/attestation.jsonl
63101
tag: ${{ github.ref }}
64102
overwrite: true
65103
asset_name: attestations.intoto.jsonl

0 commit comments

Comments
 (0)