Skip to content

Python Actors: Add option for using Poetry setup #247

@vdusek

Description

@vdusek

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions