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 Sep 16, 2024
1 parent 7f73618 commit 12dca2e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 21 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==1.3.1
pip==24.2
poetry==1.8.3
poetry @ git+https://github.com/python-poetry/poetry.git@main
poetry-plugin-export==1.8.0
poetry-dynamic-versioning==1.4.1
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.

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 @@ -297,13 +307,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 @@ -313,7 +326,6 @@ extend-exclude = [
"*simpleeval*",
]
line-length = 88
target-version = "py38"

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

0 comments on commit 12dca2e

Please sign in to comment.