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.
pypy2aur.mp4
pip install pypi2aur
uv pip install pypi2aur
yay -S pypi2aur
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.
-
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.
- 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
Contributions are welcome! Please open issues or pull requests. Follow the code style and naming conventions described above.
MIT License. See LICENSE for details.