Skip to content

Commit 5aad64e

Browse files
author
Ken Payne
committed
add poetry dynamic-versioning
1 parent 3e8a337 commit 5aad64e

File tree

2 files changed

+57
-7
lines changed

2 files changed

+57
-7
lines changed
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build_deploy:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
- name: Set up Python
17+
uses: actions/setup-python@v3
18+
with:
19+
python-version: '3.10'
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install poetry
24+
- name: Build package
25+
run: |
26+
poetry self add "poetry-dynamic-versioning[plugin]"
27+
poetry config repositories.testpypi https://test.pypi.org/legacy/
28+
poetry dynamic-versioning --no-cache
29+
poetry build
30+
- name: Upload wheel to release
31+
uses: svenstaro/upload-release-action@v2
32+
with:
33+
repo_token: ${{ secrets.GITHUB_TOKEN }}
34+
file: dist/*.whl
35+
tag: ${{ github.ref }}
36+
overwrite: true
37+
file_glob: true
38+
- name: Deploy to PyPI
39+
run: |
40+
poetry publish -r testpypi -u "__token__" -p "${{ secrets.TEST_PYPI_TOKEN }}"
41+
poetry publish -u "__token__" -p "${{ secrets.PYPI_TOKEN }}"

pyproject.toml

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
11
[tool.poetry]
22
name = "tap-singer-jsonl"
3-
version = "0.1.0"
4-
description = ""
3+
version = "0.0.0"
4+
description = "A Singer.io tap fro reading raw singer-formatted JSONL files from local and remote sources (e.g. s3)."
55
authors = ["Ken Payne <ken@meltano.com>"]
66
license = "MIT"
77
readme = "README.md"
88
packages = [{include = "tap_singer_jsonl"}]
9+
keywords = [
10+
"ELT",
11+
"Singer.io",
12+
]
913

1014
[tool.poetry.dependencies]
1115
python = ">=3.10,<3.12"
1216
singer-sdk = "^0.16.0"
1317
smart-open = {extras = ["s3"], version = "^6.3.0"}
1418

1519

16-
[build-system]
17-
requires = ["poetry-core"]
18-
build-backend = "poetry.core.masonry.api"
19-
2020
[tool.poetry.scripts]
2121
# CLI declaration
22-
tap-singer-jsonl = 'tap_singer_jsonl:main'
22+
tap-singer-jsonl = 'tap_singer_jsonl:main'
23+
24+
[build-system]
25+
requires = ["poetry-core>=1.0.8", "poetry-dynamic-versioning"]
26+
build-backend = "poetry_dynamic_versioning.backend"
27+
28+
[tool.poetry-dynamic-versioning]
29+
enable = true
30+
vcs = "git"
31+
style = "semver"

0 commit comments

Comments
 (0)