This is more of a poetry question than tap, but......
# singer-tap-development
f
This is more of a poetry question than tap, but... How do you make a pip package suitable for upload? We have our own CI pipeline that creates pip packages and uploads them to our private pip registry on Gitlab, using twine. It uses the canonical
python 3 setup.py sdist bdist bdist_egg
to produce the packages. However, since Meltano uses poetry I'd want to use however packages are created to make them most useful for others. Can someone point me to how packages should be created for taps/targets with poetry, or should I just stick with what works for us?
v
I run
poetry build
, then
poetry publish
poetry publish publish's my tap to PyPi. Super easy, I think under the hood it uses
python 3 setup.py sdist bdist bdist_egg
f
Thanks!
v
I think it's just
sdist
, and
bdist
no egg. Could probably be added 🤷
e
If you're using GitHub there's even a nice action you can leverage like here: https://github.com/MeltanoLabs/tap-dbt/blob/main/.github/workflows/release.yml#L34-L38
f
We use Gitlab, but I have a working CI that uses Poetry.