Skip to content

Commit

Permalink
Add sql extra
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jan 19, 2024
1 parent 2fd5164 commit 45413f5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,23 @@ packages = [
[tool.poetry.dependencies]
python = ">=3.8"
importlib-resources = { version = "==6.1.*", python = "<3.9" }
{%- if cookiecutter.stream_type == 'SQL' %}
singer-sdk = { version="~=0.34.1", extras = ["sql"] }
{%- else %}
singer-sdk = { version="~=0.34.1" }
{%- endif %}
fs-s3fs = { version = "~=1.1.1", optional = true }
{%- if cookiecutter.stream_type in ["REST", "GraphQL"] %}
requests = "~=2.31.0"
{%- endif %}

[tool.poetry.group.dev.dependencies]
pytest = ">=7.4.0"
{%- if cookiecutter.stream_type == 'SQL' %}
singer-sdk = { version="~=0.34.1", extras = ["sql", "testing"] }
{%- else %}
singer-sdk = { version="~=0.34.1", extras = ["testing"] }
{%- endif %}

[tool.poetry.extras]
s3 = ["fs-s3fs"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,23 @@ packages = [

[tool.poetry.dependencies]
python = ">=3.8"
{%- if cookiecutter.serialization_method == 'SQL' %}
singer-sdk = { version="~=0.34.1", extras = ["sql"] }
{%- else %}
singer-sdk = { version="~=0.34.1" }
{%- endif %}
fs-s3fs = { version = "~=1.1.1", optional = true }
{%- if cookiecutter.serialization_method != "SQL" %}
requests = "~=2.31.0"
{%- endif %}

[tool.poetry.dev-dependencies]
pytest = ">=7.4.0"
{%- if cookiecutter.serialization_method == 'SQL' %}
singer-sdk = { version="~=0.34.1", extras = ["sql", "testing"] }
{%- else %}
singer-sdk = { version="~=0.34.1", extras = ["testing"] }
{%- endif %}

[tool.poetry.extras]
s3 = ["fs-s3fs"]
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def mypy(session: Session) -> None:
@session(python=python_versions)
def tests(session: Session) -> None:
"""Execute pytest tests and compute coverage."""
session.install(".[s3,parquet]")
session.install(".[parquet,s3,sql]")
session.install(*test_dependencies)

sqlalchemy_version = os.environ.get("SQLALCHEMY_VERSION")
Expand Down
3 changes: 2 additions & 1 deletion poetry.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ docs = [
"sphinx-reredirects",
]
s3 = ["fs-s3fs"]
sql = ["sqlalchemy"]
testing = [
"pytest",
"pytest-durations"
Expand Down

0 comments on commit 45413f5

Please sign in to comment.