Python package for copr-cli and copr

Sergio Oliveira seocam at gmail.com
Thu Oct 22 11:30:06 UTC 2015


This last patch changes that.

If we are going to read versions from spec I would advise to remove the
__version__ from the code python files since it won't reflect any real
version or useful information.

Cheers,

Sergio Oliveira

On Tue, Oct 20, 2015 at 3:43 AM Miroslav Suchy <msuchy at redhat.com> wrote:

> On 10/19/2015 09:59 PM, Sergio Oliveira wrote:
> > Hello,
> >
> > I've the need of using copr-cli in other distros so I've decided to
> > upload it to PyPI. In order to do that I had to change the setup.py file
> > in both copr-cli and copr-python projects.
> >
> > The problem is that the setup.py was importing the code it was supposed
> > to install and breaking because the dependencies weren't installed yet.
> > To fix that I've added a function that parses the content of the file
> > looking for it's version instead of importing it.
> >
> > Doing that the installer is able to build the dependencies tree and look
> > for each dependency on the package index.
> >
> > Also the Alpha classifier used was wrong so I've changed it from:
> >
> >     "Development Status :: 1 - Alpha"
> >
> > to
> >
> >     "Development Status :: 3 - Alpha"
> >
> > Last, I've updated the versions to use the tagged versions. You will
> > find my commits attached.
>
> Thank you for doing that.
> However for us the relevant version is in the spec file. Is it possible
> to alter the patch so it reads and parse the version from the spec file?
>
> Mirek
>
>
> _______________________________________________
> copr-devel mailing list
> copr-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/copr-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/copr-devel/attachments/20151022/3deae582/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Added-version-parse-from-specs-instead-of-__init__.patch
Type: application/octet-stream
Size: 1929 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/copr-devel/attachments/20151022/3deae582/attachment.obj>


More information about the copr-devel mailing list