Chad Smith
1 min readDec 12, 2018

> So what’s the missing part if I want to use Poetry+pyproject.toml for packaging and get rid of setup.py today?

Your project’s source won’t work with pip. For example when running pip install -e .or installing from a GitHub url. But you probably don’t want to do that anyway if you’re switching to Poetry as it replaces pip. If you are concerned with others using your project being forced to use Poetry that is something to think about though. And if you want to switch back from Poetry you will have to write a setup.py file and/or requirements.txt, Pipfile, etc.

Using Poetry you can publish to PyPI just fine because Poetry builds wheels and sdists that are compatible with pip; it generates a setup.py file when running poetry buildthat is compatible with pip. Pretty cool! And of course you can always run poetry install to have poetry install your lock file to reproduce your exactly dependency tree.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Chad Smith
Chad Smith

Written by Chad Smith

Software engineer and open source developer https://github.com/cs01

No responses yet

Write a response