File tree Expand file tree Collapse file tree 9 files changed +63
-15
lines changed Expand file tree Collapse file tree 9 files changed +63
-15
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+
6
+ jobs :
7
+ build :
8
+ name : Wheel and sdist
9
+ runs-on : ubuntu-latest
10
+ outputs :
11
+ version : ${{ steps.baipp.outputs.package_version }}
12
+ steps :
13
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14
+ - uses : hynek/build-and-inspect-python-package@b5076c307dc91924a82ad150cdd1533b444d3310 # v2.12.0
15
+ id : baipp
16
+
17
+ publish :
18
+ name : Publish to PyPI
19
+ if : startsWith(github.ref, 'refs/tags/')
20
+ runs-on : ubuntu-latest
21
+ needs : build
22
+ environment :
23
+ name : pypi
24
+ url : https://pypi.org/project/meltanolabs-target-csv${{ needs.build.outputs.version }}
25
+
26
+ permissions :
27
+ contents : write
28
+ id-token : write
29
+
30
+ steps :
31
+ - uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
32
+ with :
33
+ name : Packages
34
+ path : dist
35
+ - uses : svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # 2.9.0
36
+ with :
37
+ file : dist/*.whl
38
+ tag : ${{ github.ref }}
39
+ overwrite : true
40
+ file_glob : true
41
+ - uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 7
7
import sys
8
8
import warnings
9
9
from pathlib import Path
10
- from typing import Any , TYPE_CHECKING
10
+ from typing import TYPE_CHECKING , Any
11
11
12
12
import pytz
13
13
from singer_sdk .sinks import BatchSink
14
14
15
- from target_csv .serialization import write_batch , write_header
15
+ from meltanolabs_target_csv .serialization import write_batch , write_header
16
16
17
17
if TYPE_CHECKING :
18
18
from singer_sdk import Target
Original file line number Diff line number Diff line change 3
3
from singer_sdk import typing as th
4
4
from singer_sdk .target_base import Target
5
5
6
- from target_csv .sinks import CSVSink
6
+ from meltanolabs_target_csv .sinks import CSVSink
7
7
8
8
9
9
class TargetCSV (Target ):
10
10
"""A Singer target that generates CSV files."""
11
11
12
12
name = "target-csv"
13
+ package_name = "meltanolabs-target-csv"
14
+
13
15
config_jsonschema = th .PropertiesList (
14
16
th .Property (
15
17
"output_path" ,
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
- name = " target-csv"
3
- version = " 0.0.1 "
2
+ name = " meltanolabs- target-csv"
3
+ version = " 0.0.0 "
4
4
description = " Singer target for CSV, built with the Meltano SDK for Singer Targets."
5
5
authors = [
" Meltano <[email protected] >" ]
6
6
license = " Apache-2.0"
7
+ readme = " README.md"
7
8
keywords = [
8
9
" CSV" ,
9
10
" Singer" ,
@@ -33,11 +34,16 @@ pytest = "~=8.3"
33
34
singer-sdk = { version = " *" , extras = [" testing" ] }
34
35
35
36
[tool .poetry .scripts ]
36
- target-csv = ' target_csv .target:TargetCSV.cli'
37
+ target-csv = ' meltanolabs_target_csv .target:TargetCSV.cli'
37
38
38
39
[build-system ]
39
- requires = [" poetry-core>=1.0.7" ]
40
- build-backend = " poetry.core.masonry.api"
40
+ requires = [" poetry-core>=2.1.1" , " poetry-dynamic-versioning>=1.8.2" ]
41
+ build-backend = " poetry_dynamic_versioning.backend"
42
+
43
+ [tool .poetry-dynamic-versioning ]
44
+ enable = true
45
+ vcs = " git"
46
+ style = " semver"
41
47
42
48
[tool .ruff ]
43
49
line-length = 88
Original file line number Diff line number Diff line change 2
2
3
3
from __future__ import annotations
4
4
5
- from typing import Any , TYPE_CHECKING
5
+ from importlib .resources import files
6
+ from typing import TYPE_CHECKING , Any
6
7
7
8
from singer_sdk .testing import get_target_test_class
8
9
from singer_sdk .testing .suites import TestSuite
9
10
from singer_sdk .testing .templates import TargetFileTestTemplate
10
11
11
- from target_csv .target import TargetCSV
12
+ from meltanolabs_target_csv .target import TargetCSV
12
13
13
14
from . import data_files
14
15
15
- from importlib .resources import files
16
-
17
16
if TYPE_CHECKING :
18
17
from importlib .abc import Traversable
19
18
Original file line number Diff line number Diff line change 7
7
8
8
import pytest
9
9
10
- from target_csv .serialization import read_csv , write_batch , write_header
10
+ from meltanolabs_target_csv .serialization import read_csv , write_batch , write_header
11
11
12
12
SAMPLE_DATASETS : list [tuple [dict , list [dict [str , Any ]]]] = [
13
13
(
Original file line number Diff line number Diff line change 2
2
3
3
import pytest
4
4
5
- from target_csv .sinks import CSVSink
6
- from target_csv .target import TargetCSV
5
+ from meltanolabs_target_csv .sinks import CSVSink
6
+ from meltanolabs_target_csv .target import TargetCSV
7
7
8
8
9
9
def test_sink_output_file_cwd ():
You can’t perform that action at this time.
0 commit comments