Poetry and Pyramid

247 views
Skip to first unread message

MJF

unread,
Dec 11, 2020, 8:13:58 PM12/11/20
to pylons-discuss
I have been away from using Pyramid (well, from starting a new project in Pyramid) for a handful of years. Since then, I've grown to like using Poetry[1] in my Python development work.

I see that there was some discussion[2] a couple years ago about this; I don't see a resolution, though it seems that mmerickel also likes poetry :-) [3]

I'd like to continue to use Poetry in my work, and I'd like to use Pyramid too; it seems that they use wholly different ways of dealing with scripts/entrypoints, etc.

There are no hits for "poetry" on this mailing list; my online searches for pyramid and poetry are coming up dry too. Does anyone have any resources for how to make these tools work together?


Nejc Zupan

unread,
Dec 12, 2020, 3:08:39 AM12/12/20
to pylons-...@googlegroups.com
I used Poetry for the “Pyramid RealWorld.io example app”: https://github.com/niteoweb/pyramid-realworld-example-app/

--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/fd66e280-036e-434e-a777-78d9b8b37782n%40googlegroups.com.

Michael Merickel

unread,
Dec 13, 2020, 6:13:50 PM12/13/20
to pylons-...@googlegroups.com
I cooked up a pyproject.toml that almost works like the setuptools version for the Pyramid scaffold. There is one minor difference in which files are included in the sdist versus wheel, but it's an open bug in poetry to fix.

You simply use this file in your project, then do things like `poetry install` and `poetry run pserve development.ini`.


- Michael

Matt Feifarek

unread,
Dec 13, 2020, 6:18:06 PM12/13/20
to pylons-discuss
Amazing! Thank you!

I was going to sit down this evening and try and thread this together. You probably saved me hours of work!

:-)

You received this message because you are subscribed to a topic in the Google Groups "pylons-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pylons-discuss/5qOYkTBSSRA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pylons-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/ED50998D-5172-4F12-9674-B7E8028D76BE%40gmail.com.


--
Matt Feifarek
(he/him/his)
+1.608.403.5432 phone / SMS / Signal / WhatsApp

Steve Piercy

unread,
Dec 13, 2020, 8:17:59 PM12/13/20
to pylons-...@googlegroups.com
This would be a good Pyramid Community Cookbook recipe.

https://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/

--steve


On 12/13/20 3:13 PM, Michael Merickel wrote:
> I cooked up a pyproject.toml that almost works like the setuptools version for the Pyramid scaffold. There is one minor difference in which files are included in the sdist versus wheel, but it's an open bug in poetry to fix.
>
> You simply use this file in your project, then do things like `poetry install` and `poetry run pserve development.ini`.
>
> https://gist.github.com/mmerickel/33bc8edc633da132a8f92dbcb03ec1da <https://gist.github.com/mmerickel/33bc8edc633da132a8f92dbcb03ec1da>
>
> - Michael
>
>> On Dec 11, 2020, at 19:13, MJF <matt.f...@gmail.com <mailto:matt.f...@gmail.com>> wrote:
>>
>> I have been away from using Pyramid (well, from starting a new project in Pyramid) for a handful of years. Since then, I've grown to like using Poetry[1] in my Python development work.
>>
>> I see that there was some discussion[2] a couple years ago about this; I don't see a resolution, though it seems that mmerickel also likes poetry :-) [3]
>>
>> I'd like to continue to use Poetry in my work, and I'd like to use Pyramid too; it seems that they use wholly different ways of dealing with scripts/entrypoints, etc.
>>
>> There are no hits for "poetry" on this mailing list; my online searches for pyramid and poetry are coming up dry too. Does anyone have any resources for how to make these tools work together?
>>
>> 1: https://python-poetry.org/ <https://python-poetry.org/>
>> 2: https://github.com/Pylons/pyramid/issues/3270 <https://github.com/Pylons/pyramid/issues/3270>
>> 3: https://github.com/Pylons/pyramid/issues/3270#issuecomment-385475580 <https://github.com/Pylons/pyramid/issues/3270#issuecomment-385475580>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com <mailto:pylons-discus...@googlegroups.com>.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/fd66e280-036e-434e-a777-78d9b8b37782n%40googlegroups.com <https://groups.google.com/d/msgid/pylons-discuss/fd66e280-036e-434e-a777-78d9b8b37782n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com <mailto:pylons-discus...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/ED50998D-5172-4F12-9674-B7E8028D76BE%40gmail.com <https://groups.google.com/d/msgid/pylons-discuss/ED50998D-5172-4F12-9674-B7E8028D76BE%40gmail.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages