Skip to content

Commit

Permalink
chore: Use Poetry support for PEP 621
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Aug 16, 2024
1 parent 3be5d97 commit 3da2574
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
griffe==0.48.0
pip==24.2
poetry==1.8.3
poetry @ git+https://github.com/radoering/poetry.git@pep621-support
poetry-plugin-export==1.8.0
poetry-dynamic-versioning==1.4.0
pre-commit==3.8.0
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ repos:
cookiecutter/.*
)$
- repo: https://github.com/python-poetry/poetry
rev: 1.8.0
hooks:
- id: poetry-check
# - repo: https://github.com/python-poetry/poetry
# rev: 1.8.0
# hooks:
# - id: poetry-check
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 29 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
[tool.poetry]
[project]
name = "singer-sdk"
version = "0.0.0"
dynamic = [
"dependencies",
"version",
]
description = "A framework for building Singer taps"
authors = ["Meltano Team and Contributors <[email protected]>"]
maintainers = ["Meltano Team and Contributors <[email protected]>"]
readme = "README.md"
homepage = "https://sdk.meltano.com/en/latest/"
repository = "https://github.com/meltano/sdk"
documentation = "https://sdk.meltano.com/en/latest/"
authors = [{ name = "Meltano Team and Contributors", email = "[email protected]" }]
maintainers = [{ name = "Meltano Team and Contributors", email = "[email protected]" }]
urls.Homepage = "https://sdk.meltano.com/en/latest/"
urls.Repository = "https://github.com/meltano/sdk"
urls.Documentation = "https://sdk.meltano.com/en/latest/"
urls."Issue Tracker" = "https://github.com/meltano/sdk/issues"
urls."Twitter" = "https://twitter.com/meltanodata/"
urls."Changelog" = "https://github.com/meltano/sdk/blob/main/CHANGELOG.md"
urls."Slack" = "https://meltano.com/slack"
urls."Youtube" = "https://www.youtube.com/meltano"
keywords = [
"Meltano",
"Singer",
Expand All @@ -28,14 +35,15 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Typing :: Typed",
]
license = "Apache-2.0"
readme = "README.md"
license.file = "LICENSE"
requires-python = ">=3.8"

[tool.poetry.urls]
"Issue Tracker" = "https://github.com/meltano/sdk/issues"
"Twitter" = "https://twitter.com/meltanodata/"
"Changelog" = "https://github.com/meltano/sdk/blob/main/CHANGELOG.md"
"Slack" = "https://meltano.com/slack"
"Youtube" = "https://www.youtube.com/meltano"
[tool.poetry]
# TODO: remove this duplicate name when nox-poetry supports PEP 621
# https://github.com/cjolowicz/nox-poetry/pull/1223
name = "singer-sdk"
version = "0.0.0"

[tool.poetry.dependencies]
python = ">=3.8"
Expand Down Expand Up @@ -274,13 +282,16 @@ enable = true
style = "pep440"

[build-system]
requires = ["poetry-core==1.9.0", "poetry-dynamic-versioning==1.4.0"]
requires = [
"poetry-core@ git+https://github.com/radoering/poetry-core.git@pep621-support",
"poetry-dynamic-versioning==1.4.0",
]
build-backend = "poetry_dynamic_versioning.backend"

[tool.poetry.plugins."pytest11"]
[project.entry-points."pytest11"]
singer_testing = "singer_sdk.testing.pytest_plugin"

[tool.poetry.plugins."singer_sdk.batch_encoders"]
[project.entry-points."singer_sdk.batch_encoders"]
jsonl = "singer_sdk.contrib.batch_encoder_jsonl:JSONLinesBatcher"
parquet = "singer_sdk.contrib.batch_encoder_parquet:ParquetBatcher"

Expand All @@ -291,7 +302,6 @@ extend-exclude = [
]
line-length = 88
src = ["samples", "singer_sdk", "tests"]
target-version = "py38"

[tool.ruff.format]
docstring-code-format = true
Expand Down

0 comments on commit 3da2574

Please sign in to comment.