Re: flit

2017-11-15 Thread Nick Coghlan
On 16 November 2017 at 16:51, Elliott Sales de Andrade <
quantum.anal...@gmail.com> wrote:

> On 16 November 2017 at 01:31, Nick Coghlan  wrote:
>>
>> However, if flit is now adding its own shim implcitly, then the answer
>> would just be "Yes".
>>
>

> There's no need for a shim; basically use flit to build a wheel and then
> use the wheel installation macros instead.
>

Wait, we have wheel installation macros?

/me goes and checks
https://src.fedoraproject.org/rpms/python-rpm-macros/blob/master/f/macros.python

Huh, so we do. Somehow I managed to miss that :)

How would folks feel about adding a link to the dist-git macro file to the
macros section in https://fedoraproject.org/wiki/Packaging:Python#Macros ?

I'm not currently inclined to add the information directly to the wiki page
as:

- I don't like wikis in general as a docs management tool
- the wiki only shows one version, but the RPM with the default macros is
branched along with the rest of Fedora

We could potentially add something to https://fedora-python.readthedocs.io/
about Fedora's RPM packaging tools for Python projects, but that would be
significantly more work than just linking to dist-git.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
___
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org


Re: flit

2017-11-15 Thread Elliott Sales de Andrade
On 16 November 2017 at 01:31, Nick Coghlan  wrote:

> On 16 November 2017 at 12:30, Orion Poplawski  wrote:
>
>> So - is it possible to build rpms with flit?
>>
>
>
There are already some packages that are built using flit:

$ dnf repoquery --disablerepo=\* --enablerepo=fedora-source --arch=src
--whatrequires python3-flit
python-entrypoints-0:0.2.2-7.fc26.src
python-testpath-0:0.3.1-1.fc26.src

The latter is a slightly better template as it doesn't contain any
workarounds for old versions of flit.
Another sample is python-jupyter-kernel-test (not sure why it didn't show;
it should be in F26, too).


> I haven't checked recently, but I believe flit still omits `setup.py` from
> its sdists by default, and the Python RPM macros are still expecting to be
> able to call that directly.
>
> If that's still the case, then the answer would be "Yes, but only if you
> make sure the sdist still contains a suitable setup.py shim".
>
> However, if flit is now adding its own shim implcitly, then the answer
> would just be "Yes".
>
>
There's no need for a shim; basically use flit to build a wheel and then
use the wheel installation macros instead.


> Cheers,
> Nick.
>
> --
> Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
>
>
-- 
Elliott
___
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org


Re: flit

2017-11-15 Thread Nick Coghlan
On 16 November 2017 at 12:30, Orion Poplawski  wrote:

> So - is it possible to build rpms with flit?
>

I haven't checked recently, but I believe flit still omits `setup.py` from
its sdists by default, and the Python RPM macros are still expecting to be
able to call that directly.

If that's still the case, then the answer would be "Yes, but only if you
make sure the sdist still contains a suitable setup.py shim".

However, if flit is now adding its own shim implcitly, then the answer
would just be "Yes".

Cheers,
Nick.

-- 
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
___
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org


flit

2017-11-15 Thread Orion Poplawski

So - is it possible to build rpms with flit?

--
Orion Poplawski
Manager of NWRA Technical Systems  720-772-5637
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane   or...@nwra.com
Boulder, CO 80301 https://www.nwra.com/
___
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org