<div dir="ltr"><div><div><div>This last patch changes that. <br><br></div>If we are going to read versions from spec I would advise to remove the __version__ from the code python files since it won&#39;t reflect any real version or useful information.<br><br></div>Cheers,<br><br></div>Sergio Oliveira<br><div><div><div><div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 20, 2015 at 3:43 AM Miroslav Suchy &lt;<a href="mailto:msuchy@redhat.com">msuchy@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/19/2015 09:59 PM, Sergio Oliveira wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I&#39;ve the need of using copr-cli in other distros so I&#39;ve decided to<br>
&gt; upload it to PyPI. In order to do that I had to change the setup.py file<br>
&gt; in both copr-cli and copr-python projects.<br>
&gt;<br>
&gt; The problem is that the setup.py was importing the code it was supposed<br>
&gt; to install and breaking because the dependencies weren&#39;t installed yet.<br>
&gt; To fix that I&#39;ve added a function that parses the content of the file<br>
&gt; looking for it&#39;s version instead of importing it.<br>
&gt;<br>
&gt; Doing that the installer is able to build the dependencies tree and look<br>
&gt; for each dependency on the package index.<br>
&gt;<br>
&gt; Also the Alpha classifier used was wrong so I&#39;ve changed it from:<br>
&gt;<br>
&gt;     &quot;Development Status :: 1 - Alpha&quot;<br>
&gt;<br>
&gt; to<br>
&gt;<br>
&gt;     &quot;Development Status :: 3 - Alpha&quot;<br>
&gt;<br>
&gt; Last, I&#39;ve updated the versions to use the tagged versions. You will<br>
&gt; find my commits attached.<br>
<br>
Thank you for doing that.<br>
However for us the relevant version is in the spec file. Is it possible<br>
to alter the patch so it reads and parse the version from the spec file?<br>
<br>
Mirek<br>
<br>
<br>
_______________________________________________<br>
copr-devel mailing list<br>
<a href="mailto:copr-devel@lists.fedorahosted.org" target="_blank">copr-devel@lists.fedorahosted.org</a><br>
<a href="https://lists.fedorahosted.org/mailman/listinfo/copr-devel" rel="noreferrer" target="_blank">https://lists.fedorahosted.org/mailman/listinfo/copr-devel</a><br>
</blockquote></div></div></div></div></div></div>