general open question about setting up a new repo:...
# general
h
general open question about setting up a new repo: what is the recommended/easiest way to set up a new python repo and manage dependencies? for personal projects, i’ve been using a combo of
poetry new
and
pants init
with a bunch of added linter configurations added in, but it feels like there’s a bit of redundancy with a
default.lock
file and a
poetry.lock
file. i use poetry because it’s a little more opinionated when setting up a repo using
poetry new
, but mostly because it’s a lot easier to add and manage python dependencies using
poetry add
and
poetry remove
. does pants have a similar system to manage packages? is that something that’s in scope of what pants aims to be? 99% of the time, i just want to “add the latest version of this package that’s compatible with my existing dependencies”. something along the lines of
pants add [python?] [default_resolve | resolve] requests
c
Pants is slowly gaining these features.. see this ticket, and referenced issues/PRs of that: https://github.com/pantsbuild/pants/issues/12880
🎉 1
pex
just got vital features to support this only hours ago: https://github.com/pantsbuild/pex/pull/2335#pullrequestreview-1835482023
👀 1