Skip to content

pypi2aur is a command-line tool that helps you convert Python packages from PyPI into Arch Linux AUR PKGBUILD templates.

License

Notifications You must be signed in to change notification settings

antrax2024/pypi2aur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 pypi2aur

pypi2aur is a command-line tool that helps you convert Python packages from PyPI into Arch Linux AUR PKGBUILD templates. It streamlines the process of packaging Python projects for the Arch User Repository, automating metadata extraction and template generation.

PyPI - Version AUR Version Python Version from PEP 621 TOML GitHub last commit GitHub License

Demo

pypy2aur.mp4

⚙️ Requirements

  • Python 3.13+
  • uv for project management
  • requests for HTTP requests
  • click for CLI

📦 Installation

with PIP

pip install pypi2aur

with UV

uv pip install pypi2aur

with AUR (Arch Linux repository)

yay -S pypi2aur

🚀 Usage

After installing the dependencies and activating your virtual environment, you can use the pypi2aur CLI to generate and manage PKGBUILD files for Python packages from PyPI.

🔨 Commands

  • create [PKG]

    Generates a new PKGBUILD file for the specified PyPI package.

    Usage:

    pypi2aur create <package-name>
    • <package-name>: The name of the PyPI package to generate the PKGBUILD for.
  • update

    Updates the existing PKGBUILD file in the current directory to match the latest version of the package on PyPI. The package name is read from the pkgname field in the PKGBUILD file.

    Usage:

    pypi2aur update
  • showdeps [PKG]

    Displays the dependencies of the specified PyPI package as listed on PyPI.

    Usage:

    pypi2aur showdeps <package-name>
    • <package-name>: The name of the PyPI package to inspect.

📋 Example

  • Create a PKGBUILD for the 'requests' package
pypi2aur create requests
  • Update the PKGBUILD to the latest version
pypi2aur update
  • Show dependencies for the 'requests' package
pypi2aur showdeps requests

🤝 Contributing

Contributions are welcome! Please open issues or pull requests. Follow the code style and naming conventions described above.

📜 License

MIT License. See LICENSE for details.

About

pypi2aur is a command-line tool that helps you convert Python packages from PyPI into Arch Linux AUR PKGBUILD templates.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages