Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
Showing with 21 additions and 43 deletions.
  1. +2 −0  .gitignore
  2. +0 −13 INSTALL
  3. +13 −0 INSTALL.rst
  4. +6 −9 README.rst
  5. +0 −21 docs/index.txt
View
2  .gitignore
@@ -1,3 +1,5 @@
*.pyc
*egg*/
*~
+/build/
+/dist/
View
13 INSTALL
@@ -1,13 +0,0 @@
-=======
-Install
-=======
-
-From the command line run ::
-
- python setup.py install
-
-or ::
-
- easy_install pyrpm
-
-You will need administration priveliges to run this commands.
View
13 INSTALL.rst
@@ -0,0 +1,13 @@
+=======
+Install
+=======
+
+From the command line run ::
+
+ python setup.py install
+
+or ::
+
+ easy_install pyrpm-02strich
+
+You will need administration privileges to run this commands.
View
15 README.rst
@@ -2,25 +2,22 @@
PyRPM
=====
-:author: Mário Morgado
+:authors: Stefan Richter, Mário Morgado
:license: BSD
-PyRPM is a pure python module to extract information from a RPM package.
+PyRPM is a pure python module to extract information from a RPM package and to create YUM metadata. Supports generation/editing YUM repositories.
Usage
-----
>>> from pyrpm.rpm import RPM
- >>> frpm pyrpm import rpmdefs
>>> rpm = RPM(file('package-1.0-r1.i586.rpm')
>>> rpm.binary # this means that the package is a rpm and not a src.rpm
True
- >>> rpm.name()
+ >>> rpm.header.name
'package'
- >>> rpm.package()
- 'package-1.0'
- >>> rpm[rpmdefs.RPMTAG_DESCRIPTION]
- 'package description'
- >>> rpm[rpmdefs.RPMTAG_ARCH]
+ >>> rpm.header.architecture
'i586'
+ >>> rpm.header.description
+ 'package description'
View
21 docs/index.txt
@@ -1,21 +0,0 @@
-=====
-PyRPM
-=====
-
-:Author: Mario Morgado
-
-.. .. contents::
-
-Introduction
-============
-
-PyRPM is a pure python, simple to use, module to read information from a RPM file.::
-
- >>> from pyrpm.rpm import RPM
- >>> rpm = RPM(file('pyrpm-0.2-noarch.rpm'))
- >>> rpm.filename()
- 'pyrpm-0.2-noarch.rpm'
- >>> rpm.name()
- 'pyrpm'
-
-

No commit comments for this range

Something went wrong with that request. Please try again.