Description
py2pack FOR LINUX
py2pack is a Python script that allows to generate RPM spec or DEB dsc files from Python modules. It enables users to list Python modules or search for them on the Python Package Index (PyPI). Conveniently, it can fetch tarballs and changelogs, making it a versatile tool for packaging Python modules.
py2pack requires the 'argparse' Python module to be installed, which is also part of the Python-2.7 Standard Library. It utilizes the Jinja2 templating engine for efficient processing.
Key Features:
- Generates RPM spec or DEB dsc files from Python modules
- Allows listing and searching for Python modules on PyPI
- Fetches tarballs and changelogs for packaging
- Uses Jinja2 templating engine for efficient processing
How It Works:
If you need to package a module like 'zope.interface' but are unsure of its exact name, py2pack simplifies the process:
py2pack search zope.interface searching for module zope.interface... found zope.interface-3.6.1
$ py2pack fetch zope.interface downloading package zope.interface-3.6.1... from http://pypi.python.org/packages/source/z/zope.interface/zope.interface-3.6.1.tar.gz
Once you have the source tarball, you can generate a package recipe tailored to your distribution. For RPM-based systems like openSUSE:
py2pack generate zope.interface -t opensuse.spec -f python-zope.interface.spec
The generated spec file along with the source tarball is all you need to create the RPM (or DEB) file. The final steps may vary based on your distribution. For openSUSE users leveraging the openSUSE Build Service:
osc mkpac python-zope.interface $ cd python-zope.interface $ py2pack fetch zope.interface $ py2pack generate zope.interface -t opensuse.spec -f python-zope.interface.spec $ osc build ...
For Help:
If you need further assistance on using py2pack, simply issue the following command:
py2pack help
User Reviews for py2pack FOR LINUX 7
-
py2pack FOR LINUX simplifies packaging Python modules into RPM spec or DEB dsc files with ease. Efficient tool for software developers.
-
py2pack is a game changer for Python packaging! It simplifies the entire process and saves so much time.
-
I love how easy py2pack makes it to generate RPM and DEB files. It's a must-have tool for any developer!
-
Absolutely fantastic app! It streamlines module packaging and the search feature works flawlessly.
-
This app is incredibly useful. I can quickly fetch modules and create packages without hassle. Highly recommend!
-
py2pack has transformed my workflow! The ability to generate package recipes effortlessly is invaluable.
-
Five stars for py2pack! It’s user-friendly, efficient, and covers everything I need for Python packaging.