Skip to content

Commit 70cb0b1

Browse files
committed
Empty-Commit
1 parent 8771242 commit 70cb0b1

File tree

7 files changed

+43
-65
lines changed

7 files changed

+43
-65
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
run: |
5555
sudo apt-get update
5656
sudo apt-get install libkrb5-dev
57-
sudo curl -sSL https://install.python-poetry.org | python3 - --preview
58-
poetry install --only=dev
57+
sudo curl -sSL https://install.python-poetry.org | python3
58+
poetry install
5959
- name: Run tox
6060
run: |
6161
poetry run tox --parallel

.pre-commit-config.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,3 @@ repos:
1313
additional_dependencies:
1414
- "types-pytz"
1515
- "types-requests"
16-
17-
- repo: "https://github.com/python-poetry/poetry"
18-
rev: "1.2.0b3"
19-
hooks:
20-
- id: poetry-check

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ the [`JWT` authentication type](https://trino.io/docs/current/security/jwt.html)
177177
from sqlalchemy import create_engine
178178

179179
engine = create_engine("trino://<username>@<host>:<port>/<catalog>/<schema>?access_token=<jwt_token>")
180-
180+
181181
# or
182182
from trino.auth import JWTAuthentication
183183
engine = create_engine(
@@ -419,10 +419,10 @@ Start by forking the repository and then modify the code in your fork.
419419

420420
Clone the repository and go inside the code directory.
421421

422-
Python dependencies are managed using [Poetry](https://python-poetry.org/) which helps to ensure the project is managed in a deterministic way. Poetry [creates a virtual environment](https://python-poetry.org/docs/managing-environments/) to aid with the process. Currently this project uses [dependency groups](https://python-poetry.org/docs/master/managing-dependencies/) which are a pre-release feature (denoted by the `--preview` flag) and thus Poetry should be installed via:
422+
Python dependencies are managed using [Poetry](https://python-poetry.org/) which helps to ensure the project is managed in a deterministic way. Poetry [creates a virtual environment](https://python-poetry.org/docs/managing-environments/) to aid with the process. Poetry should be installed via:
423423

424424
```
425-
$ curl -sSL https://install.python-poetry.org | python3 - --preview
425+
$ curl -sSL https://install.python-poetry.org | python3
426426
```
427427

428428
When the code is ready, submit a Pull Request.
@@ -477,7 +477,7 @@ poetry run tox -e pre-commit
477477
```bash
478478
git fetch -a && git status
479479
```
480-
- Change version in `trino/__init__.py` to a new version, e.g. `0.123.0`.
480+
- Change version in `trino/pyproject.toml` to a new version, e.g. `0.123.0`.
481481
- Commit
482482
```bash
483483
git commit -a -m "Bump version to 0.123.0"

poetry.lock

+20-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+16-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["poetry-core>=1.1.0b3"]
2+
requires = ["poetry-core>=1.0.0"]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
@@ -44,23 +44,28 @@ requests = "*"
4444
requests_kerberos = { version = "*", optional = true }
4545
sqlalchemy = { version = "~1.4", optional = true }
4646

47-
[tool.poetry.extras]
48-
external-authentication-token-cache = ["keyring"]
49-
kerberos = ["requests_kerberos"]
50-
sqlalchemy = ["sqlalchemy"]
51-
52-
[tool.poetry.group.dev]
53-
optional = true
54-
55-
[tool.poetry.group.dev.dependencies]
47+
[tool.poetry.dev-dependencies]
48+
# In Poetry 1.2 these should be defined via:
49+
#
50+
# [tool.poetry.group.dev]
51+
# optional = true
52+
#
53+
# [tool.poetry.group.dev.dependencies]
5654
pre-commit = "*"
5755
tox = "*"
5856
tox-gh-actions = "*"
5957

60-
[tool.poetry.group.test.dependencies]
58+
# In Poetry 1.2 these should be defined via:
59+
#
60+
# [tool.poetry.group.test.dependencies]
6161
click = "*"
6262
httpretty = "<1.1"
6363
pytest = "*"
6464

65+
[tool.poetry.extras]
66+
external-authentication-token-cache = ["keyring"]
67+
kerberos = ["requests_kerberos"]
68+
sqlalchemy = ["sqlalchemy"]
69+
6570
[tool.poetry.plugins."sqlalchemy.dialects"]
6671
trino = "trino.sqlalchemy.dialect:TrinoDialect"

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ parallel_show_output = true
1717

1818
[testenv:pre-commit]
1919
commands =
20-
poetry install --only=dev
20+
poetry install
2121
poetry run pre-commit run --all-files --show-diff-on-failure
2222

2323
[tox]

trino/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@
1818
from . import logging
1919

2020
__all__ = ['auth', 'dbapi', 'client', 'constants', 'exceptions', 'logging']
21-

0 commit comments

Comments
 (0)