Skip to main content

this is an unofficial pypi distribution of the flatpak_pip_generator script

Project description

Flatpak PIP Generator

this is an unofficial pypi distribution of the flatpak_pip_generator script

upstream - https://github.com/flatpak/flatpak-builder-tools/tree/master/pip

Tool to automatically generate flatpak-builder manifest json from a pip package-name.

This requires requirements-parser which can be installed on your host with pip3 install --user requirements-parser.

Usage

flatpak-pip-generator --runtime='org.freedesktop.Sdk//22.08' foo which generates python3-foo.json and can be included in a manifest like:

"modules": [
  "python3-foo.json",
  {
    "name": "other-modules"
  }
]

You can also list multiple packages in single command:

flatpak-pip-generator --runtime='org.freedesktop.Sdk//22.08' foo\>=1.0.0,\<2.0.0 bar

If your project contains a requirements.txt file with all the project dependencies, you can use

flatpak-pip-generator --runtime='org.freedesktop.Sdk//22.08' --requirements-file='/the/path/to/requirements.txt' --output pypi-dependencies

You can use that in your manifest like

"modules": [
  "pypi-dependencies.json",
  {
    "name": "other-modules"
  }
]

Options

  • --python2: Build with Python 2. Note that you will have to build the Python 2 shared-module as it is not in any runtime.
  • --build-isolation: Enable build isolation with pip (recommended but not always work).
  • --cleanup=(scripts|all): Add cleanup to the manifest. This is used when the packages installed are only used at build time.
  • --build-only: Alias to --cleanup=all.
  • --requirements-file=, -r: Reads the list of packages from requirements.txt file.
  • --ignore-pkg=: Ignore a specific package name in a requirements-file, otherwise ignored.
  • --checker-data: This adds x-checker-data to modules so you will be notified when new releases happen. See flatpak-external-data-checker for more details.
  • --runtime=: Runs pip inside of a specific Flatpak runtime instead of on your host. Highly recommended for reproducability and portability. Examples would be org.freedesktop.Sdk//22.08 or org.gnome.Sdk/aarch64/43.
  • --ignore-errors=: Allow the generation of empty or otherwise broken files when downloading packages fails.
  • --ignore-installed=: Comma-separated list of package names for which pip should ignore already installed packages. Useful when the package is installed in the SDK but not in the runtime.
  • --output=: Sets an output file.
  • --yaml: Outputs a YAML file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flatpak_pip_generator-25.0.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flatpak_pip_generator-25.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file flatpak_pip_generator-25.0.0.tar.gz.

File metadata

  • Download URL: flatpak_pip_generator-25.0.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for flatpak_pip_generator-25.0.0.tar.gz
Algorithm Hash digest
SHA256 eb8d49e98f50ccd4279a3e8fa11f2475c2234cc8c7030e19522a6451f86b873c
MD5 a9383772f806b8ff998981dfc378cb10
BLAKE2b-256 db0b012c5fadccab3955b90b5e1bc59a0f80c83c3974d4d3807f5d5aa79381c1

See more details on using hashes here.

File details

Details for the file flatpak_pip_generator-25.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flatpak_pip_generator-25.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ef45b2c6568a8efacffda33574273642c3b2ecd22c154d870a2d84514ecc962
MD5 fe3b291e32a0f6670df69330e915e3f6
BLAKE2b-256 2957993c168f9bbc6f2d5136e7f4bd8cd81413447034db8194e46d6b289196e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page