pypy3 renamed to pypy3.7 on Fedora 35+, also available in Fedora 33/34

2021-08-11 Thread Miro Hrončok

Hello PyPyistas,

we have renamed the pypy3 package to pypy3.7 (both the component and the 
"binary" package) on Fedora 35+. The package no longer installs to 
/usr/lib64/pypy3-7.x/ but rather to /usr/lib64/pypy3.7/.


*What is this good for?*

When PyPy 3 was updated from Python 3.N to 3.N+1, traditionally we have only 
updated it in Rawhide (and Branched), not to do a backward-incompatible update 
in stable Fedoras.
With this renaming, you can now¹ install pypy3.7 on all Fedoras, despite pypy3 
being 3.6 on Fedora 33 and 34.


¹ (The builds are still running, expect an update in Bodhi later today.)

Once PyPy 3.8 is released, we can introduce it to all Fedora versions.


*Warning to Rawhide/Fedora 35 users*

If you already used the pypy3 package with PyPy 3.7, the pypy3.7 package will 
obsolete it. However, the installation paths are different, so you will need to 
re-create your PyPy 3 virtual environments.



*Details* (feel free to ignore the rest of this email)

During a lifetime of one stable Fedora release, you will get:

- pypy3.N that provides pypy3 and has /usr/bin/pypy3
- pypy3.N+c introduced later in the lifetime

E.g. for Fedora 35:

- pypy3.7 that provides pypy3 and has /usr/bin/pypy3
- pypy3.8 (or newer) might be introduced in the future

For Fedora 33 and 34, there is a transition period:

- pypy3 provides pypy3.6 and has /usr/bin/pypy3
- pypy3.7 was just introduced
- pypy3.8 (or newer) might be introduced in the future

See for example on Fedora 33:

   $ rpm -qa | grep pypy3
   pypy3-libs-7.3.1-6.fc33.x86_64
   pypy3-7.3.1-6.fc33.x86_64
   pypy3-devel-7.3.1-6.fc33.x86_64
   pypy3.7-libs-7.3.4-4.fc33.x86_64
   pypy3.7-7.3.4-4.fc33.x86_64
   pypy3.7-devel-7.3.4-4.fc33.x86_64

   $ pypy3.6 --version
   Python 3.6.9 (831ff17f8cd1, May 26 2021, 11:41:48)
   [PyPy 7.3.1 with GCC 10.3.1 20210422 (Red Hat 10.3.1-1)]

   $ pypy3.7 --version
   Python 3.7.10 (8dd9fc18a6f0, Aug 11 2021, 06:30:36)
   [PyPy 7.3.4 with GCC 10.3.1 20210422 (Red Hat 10.3.1-1)]

   $ pypy3 --version
   Python 3.6.9 (831ff17f8cd1, May 26 2021, 11:41:48)
   [PyPy 7.3.1 with GCC 10.3.1 20210422 (Red Hat 10.3.1-1)]

Note that we *do not* plan to maintain old PyPy versions indefinitely, we plan 
to retire them from Rawhide/Branched as soon as new versions arrive and only 
keep them alive until stable Fedoras goes EOL.


--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
___
python-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Using reverse week deps for Python interpreters and tox (Supplements instead of Recommends)?

2021-08-11 Thread Miro Hrončok

Hello Pythonistas.

Currently, the tox package has:

  # Recommend "all the Pythons"
  Recommends: python2.7
  Recommends: python3.6
  Recommends: python3.7
  Recommends: python3.8
  Recommends: python3.9
  Recommends: python3.10
  Recommends: pypy2-devel
  Recommends: pypy3-devel
  Recommends: python2-devel
  Recommends: python3-devel

Every time we add or remove a Python interpreter, we need to change the list:

E.g. 
https://src.fedoraproject.org/rpms/python-tox/c/7220117b812d3b5b009b3b1170ee5242b03efcb2



What if we added this to all interpreters that work with our tox instead?

  Supplements: tox

That way:

 - When we introduce a new interpreter,
   tox starts to pull it by default right away.

 - When different Fedoras (or even EPELs) have different interpreter sets,
   we don't need to divert the tox spec.

OTOH:

 - When we add a new interpreter that Supplements tox, we would still need to 
adapt tox's CI config to include it. Maybe we could adapt the CI tests for tox 
to automatically test with all interpreters that supplement it.


WDYT?

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
___
python-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure