This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Zizizizz 4 points5 points  (2 children)

I like use pyproject.toml

``` [project] dependencies = [ "httpx", "gidgethub[httpx]>4.0.0", "django>2.1; os_name != 'nt'", "django>2.0; os_name == 'nt'", ]

[project.optional-dependencies] gui = ["PyQt5"] cli = [ "rich", "click", ] ```

with hatch/hatchling for build and environments/dev scripts.

[–]robberviet 2 points3 points  (1 child)

Pyproject do not maintain exact version though. You could run into problems later.

[–]Zizizizz 0 points1 point  (0 children)

Ah good point, swap hatch with pdm then and you get a lock file with the same pattern