Skip to content

Replace requirements.txt with explicit python-packages in snapcraft.yaml#55

Merged
clobrano merged 1 commit intomainfrom
claude/fix-snapcraft-yaml-Rscqu
Feb 8, 2026
Merged

Replace requirements.txt with explicit python-packages in snapcraft.yaml#55
clobrano merged 1 commit intomainfrom
claude/fix-snapcraft-yaml-Rscqu

Conversation

@clobrano
Copy link
Copy Markdown
Owner

@clobrano clobrano commented Feb 8, 2026

Summary

Updated the snapcraft configuration to explicitly list Python package dependencies instead of referencing an external requirements.txt file.

Changes

  • Replaced requirements: [requirements.txt] with python-packages: configuration
  • Explicitly declared all required Python packages:
    • docopt
    • PyYaml
    • terminaltables
    • parsedatetime
    • raffaello

Details

This change improves the snap build process by making dependencies explicit and self-contained within the snapcraft.yaml file. This approach:

  • Eliminates the need for an external requirements.txt file during snap builds
  • Makes dependencies immediately visible in the snap configuration
  • Reduces potential build failures due to missing or inaccessible requirement files
  • Aligns with snapcraft best practices for simple dependency lists

https://claude.ai/code/session_01FTmAiuxKpXsAwjMhpT3GQf

…ges'

The 'requirements' field is not permitted in the Python plugin for
snapcraft with base core24. Use 'python-packages' instead, listing
the runtime dependencies from pyproject.toml (excludes test-only
packages like pytest and pytest-cov from requirements.txt).

https://claude.ai/code/session_01FTmAiuxKpXsAwjMhpT3GQf
@clobrano clobrano merged commit 1cd6a73 into main Feb 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants