actor-templates icon indicating copy to clipboard operation
actor-templates copied to clipboard

Python Actors: Add option for using Poetry setup

Open vdusek opened this issue 2 years ago • 0 comments

Description

  • Currently, the apify create process only provides a Pip setup by default.
  • This enhancement aims to offer users the flexibility to choose between Pip and Poetry setups during the creation process.

Proposed Changes

  • Update the Dockerfile.
  • Remove requirements.txt and add pyproject.toml (and optionally poetry.toml) instead of it.
  • Take a look at the Beautiful Soup Scraper for inspiration.

Open questions

  • Figure out how to not make duplicates of the current Python code in the templates.

Motivation

  • User request on Discord.

Current situation

  • If users want to use Poetry for their Actor setup, they have to do the update manually. They can take a look at the Beautiful Soup Scraper for inspiration where Poetry is integrated.

vdusek avatar Dec 04 '23 14:12 vdusek