File tree Expand file tree Collapse file tree 8 files changed +1385
-64
lines changed Expand file tree Collapse file tree 8 files changed +1385
-64
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ jobs:
18
18
- uses : actions/setup-python@v4
19
19
with :
20
20
python-version : 3.8
21
- - name : Install Poetry
22
- uses : snok/install-poetry@v1
21
+ - name : Install uv
22
+ uses : astral-sh/setup-uv@v5
23
23
with :
24
- version : 1.8.5
24
+ version : " 0.7.12 "
25
25
- name : Compare tag and project version
26
26
run : |
27
- if [ "v$(poetry version | cut -d' ' -f2)" != "${{ github.ref_name }}" ]; then echo "Version mismatch"; exit 1; fi
28
- - name : Poetry Build
27
+ if [ "v$(uv version | cut -d' ' -f2)" != "${{ github.ref_name }}" ]; then echo "Version mismatch"; exit 1; fi
28
+ - name : Build package
29
29
run : |
30
- poetry build
30
+ uv build
31
31
- name : Publish package distributions to PyPI
32
32
uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 27
27
python-version : ${{ matrix.python-version }}
28
28
cache : ' pip'
29
29
30
+ - name : Install uv
31
+ uses : astral-sh/setup-uv@v5
32
+ with :
33
+ version : " 0.7.12"
34
+
30
35
- name : Check install local
31
36
run : |
32
37
pip install ".[test]"
35
40
36
41
- name : Check build
37
42
run : |
38
- pip install poetry
39
- poetry build
43
+ uv build
40
44
41
45
- name : Check install sdist
42
46
run : |
Original file line number Diff line number Diff line change 1
-
2
1
.vscode
3
- poetry.lock
4
2
5
3
# Byte-compiled / optimized / DLL files
6
4
__pycache__ /
@@ -98,13 +96,6 @@ ipython_config.py
98
96
# install all needed dependencies.
99
97
# Pipfile.lock
100
98
101
- # poetry
102
- # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
103
- # This is especially recommended for binary packages to ensure reproducibility, and is more
104
- # commonly ignored for libraries.
105
- # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
106
- # poetry.lock
107
-
108
99
# pdm
109
100
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
110
101
# pdm.lock
Original file line number Diff line number Diff line change 1
1
# Contributor Guidance
2
2
3
- ## Development
4
-
5
- Note: this project is explicitly meant to support Python versions as old
6
- as 3.8. This (unfortunately) means it requires Poetry 1.8.x to install
7
- and build correctly.
8
-
9
- ```
10
- $ brew install pipx
11
- $ pipx ensurepath
12
- $ pipx install poetry==1.8.5
13
- $ poetry update
14
- ```
3
+ This project uses ` uv ` . Run ` uv sync ` after checking out the repository
4
+ to initialize your virtualenv with the project's dependencies.
15
5
16
6
## Publish package to PyPI
17
7
18
8
When we are ready to release a new version ` vx.y.z ` , one of the maintainers should:
19
9
20
- 1 . Execute ` poetry version {minor,patch}` to update the project version
10
+ 1 . Execute ` uv version {minor,patch}` to update the project version
21
11
1 . Commit the version change and any release-related changes
22
12
1 . Create a new tag with ` git tag -s -m "Version x.y.z" vx.y.z ` .
23
13
If the tag doesn't match with the project version, step 4 validation will fail.
Original file line number Diff line number Diff line change @@ -6,10 +6,14 @@ runtime and execute Spatial SQL queries.
6
6
7
7
## Installation
8
8
9
- If you use [ Poetry ] ( https://python-poetry.org ) in your project, add the
10
- dependency with ` poetry add ` :
9
+ To add this library as a dependency in your Python project, use ` uv add `
10
+ or ` poetry add ` as appropriate :
11
11
12
12
```
13
+ # For uv-managed projects
14
+ $ uv add wherobots-python-dbapi
15
+
16
+ # For poetry-managed projects
13
17
$ poetry add wherobots-python-dbapi
14
18
```
15
19
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " wherobots-python-dbapi"
3
-
4
- [tool .poetry ]
5
- name = " wherobots-python-dbapi"
6
3
version = " 0.15.0"
7
4
description = " Python DB-API driver for Wherobots DB"
8
- authors = [
" Maxime Petazzoni < [email protected] > " ]
9
- license = " Apache 2.0 "
5
+ authors = [
{ name = " Maxime Petazzoni" , email = " [email protected] " } ]
6
+ requires-python = " ~=3.8 "
10
7
readme = " README.md"
11
- packages = [{ include = " wherobots" }]
8
+ license = " Apache-2.0"
9
+ dependencies = [
10
+ " packaging" ,
11
+ " requests>=2.31.0" ,
12
+ " websockets>=13.0" ,
13
+ " tenacity>=8.2.3" ,
14
+ " cbor2>=5.6.3" ,
15
+ " StrEnum>=0.4.15,<0.5" ,
16
+ " pyarrow>=14.0.2" ,
17
+ " pandas" ,
18
+ ]
19
+
20
+ [project .optional-dependencies ]
21
+ test = [" pytest>=8.0.2" ]
12
22
13
23
[project .urls ]
14
24
Homepage = " https://github.com/wherobots/wherobots-python-dbapi-driver"
15
25
Tracker = " https://github.com/wherobots/wherobots-python-dbapi-driver/issues"
16
26
17
- [tool .poetry .dependencies ]
18
- python = " ^3.8"
19
- packaging = " *"
20
- requests = " >=2.31.0"
21
- websockets = " >=13.0"
22
- tenacity = " >=8.2.3"
23
- cbor2 = " >=5.6.3"
24
- StrEnum = " ^0.4.15"
25
- pyarrow = { version = " >=14.0.2" }
26
- pandas = { version = " *" }
27
- pytest = { version = " >=8.0.2" , optional = true }
28
-
29
- [tool .poetry .extras ]
30
- test = [ " pytest" ]
31
-
32
- [tool .poetry .group .dev .dependencies ]
33
- pre-commit = " *"
34
- pytest = " >=8.0.2"
35
- pyarrow = " >=14.0.2"
36
- pandas = " *"
37
- rich = " >=13.7.1"
27
+ [dependency-groups ]
28
+ dev = [
29
+ " pre-commit" ,
30
+ " pytest>=8.0.2" ,
31
+ " pyarrow>=14.0.2" ,
32
+ " pandas" ,
33
+ " rich>=13.7.1" ,
34
+ ]
35
+
36
+ [tool .hatch .build .targets .sdist ]
37
+ include = [" wherobots" ]
38
+
39
+ [tool .hatch .build .targets .wheel ]
40
+ include = [" wherobots" ]
38
41
39
42
[build-system ]
40
- requires = [" poetry-core>=1.9.1 " ]
41
- build-backend = " poetry.core.masonry.api "
43
+ requires = [" hatchling " ]
44
+ build-backend = " hatchling.build "
42
45
43
46
[tool .pylint .format ]
44
47
max-line-length = " 88"
You can’t perform that action at this time.
0 commit comments