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 Oct 10, 2024
1 parent 702c0db commit db56d55
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
griffe==1.3.2
pip==24.2
poetry==1.8.3
poetry @ git+https://github.com/python-poetry/poetry.git@main
pre-commit==4.0.0
nox==2024.4.15
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,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
12 changes: 6 additions & 6 deletions poetry.lock

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

40 changes: 26 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
[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]" }]
keywords = [
"Meltano",
"Singer",
Expand All @@ -28,15 +27,26 @@ 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]
[project.urls]
Homepage = "https://sdk.meltano.com/en/latest/"
Repository = "https://github.com/meltano/sdk"
Documentation = "https://sdk.meltano.com/en/latest/"
"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"
backoff = { version = ">=2.0.0", python = "<4" }
Expand Down Expand Up @@ -296,13 +306,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/python-poetry/poetry-core.git@main",
"poetry-dynamic-versioning",
]
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 @@ -311,7 +324,6 @@ extend-exclude = [
"cookiecutter/*",
]
line-length = 88
target-version = "py38"

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

0 comments on commit db56d55

Please sign in to comment.