Question about Python applications / web applications

2016-09-12 Thread Germano Massullo
Hi, I have a question about Python applications and web applications.
I remember (but I am not 100% sure) that I have been told that if the
application / web application runs on Fedora, the packager will just
have to make the Python3 version and call it python-foo. No Python 2
version has to be built.

On the opposite site, for EPEL <= 7, Python 2 is the only choice.

Am I right or not?

Have a nice day
___
python-devel mailing list
python-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org


Re: Question about Python applications / web applications

2016-09-12 Thread Igor Gnatenko
On Mon, Sep 12, 2016 at 3:06 PM, Germano Massullo
 wrote:
> Hi, I have a question about Python applications and web applications.
> I remember (but I am not 100% sure) that I have been told that if the
> application / web application runs on Fedora, the packager will just
> have to make the Python3 version and call it python-foo. No Python 2
> version has to be built.
>
> On the opposite site, for EPEL <= 7, Python 2 is the only choice.
>
> Am I right or not?
It depends on application/we-application.

If it's not supposed to "import foo", then it's fine to build only one version.
>
> Have a nice day
> ___
> python-devel mailing list
> python-devel@lists.fedoraproject.org
> https://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org



-- 
-Igor Gnatenko
___
python-devel mailing list
python-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org


Re: Question about Python applications / web applications

2016-09-12 Thread Germano Massullo
2016-09-12 15:37 GMT+02:00 Igor Gnatenko :
> It depends on application/we-application.
> If it's not supposed to "import foo", then it's fine to build only one 
> version.

Does the following review request fall into that case?
python-django-netjsongraph - Reusable django app for collecting and
visualizing network topology
https://bugzilla.redhat.com/show_bug.cgi?id=1369213
___
python-devel mailing list
python-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org


Re: Question about Python applications / web applications

2016-09-12 Thread Miro Hrončok

On 12.9.2016 16:32, Germano Massullo wrote:

2016-09-12 15:37 GMT+02:00 Igor Gnatenko :

It depends on application/we-application.
If it's not supposed to "import foo", then it's fine to build only one version.


Does the following review request fall into that case?
python-django-netjsongraph - Reusable django app for collecting and
visualizing network topology
https://bugzilla.redhat.com/show_bug.cgi?id=1369213


This package shall (on Fedora) produce two subpackages: 
python2-django-netjsongraph and python3-django-netjsongraph.


See an example spec here: 
http://python-rpm-porting.readthedocs.io/en/latest/modules.html#ported-rpm-spec-file



___
python-devel mailing list
python-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org



--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
___
python-devel mailing list
python-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org


Re: Question about Python applications / web applications

2016-09-12 Thread Igor Gnatenko
On Mon, Sep 12, 2016 at 4:32 PM, Germano Massullo
 wrote:
> 2016-09-12 15:37 GMT+02:00 Igor Gnatenko :
>> It depends on application/we-application.
>> If it's not supposed to "import foo", then it's fine to build only one 
>> version.
>
> Does the following review request fall into that case?
> python-django-netjsongraph - Reusable django app for collecting and
> visualizing network topology
> https://bugzilla.redhat.com/show_bug.cgi?id=1369213
Well, you package it -> you tell us if it fall into that case ;)

If you don't know what you package probably it's better to not package it?
> ___
> python-devel mailing list
> python-devel@lists.fedoraproject.org
> https://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org



-- 
-Igor Gnatenko
___
python-devel mailing list
python-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org


Re: Question about Python applications / web applications

2016-09-12 Thread Germano Massullo
2016-09-12 16:44 GMT+02:00 Igor Gnatenko :
> Well, you package it -> you tell us if it fall into that case ;)
>
> If you don't know what you package probably it's better to not package it?

I knew what to do but I asked since during package review the reviewer
pointed out that there should be both py2 and py3, including you in
message
https://bugzilla.redhat.com/show_bug.cgi?id=1369213#c6
___
python-devel mailing list
python-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org