From Fedora Project Wiki
(IRC -> Matrix)
 
(115 intermediate revisions by 36 users not shown)
Line 4: Line 4:
-->
-->


== Python Special Interest Group ==
{{admon/important | Help wanted! | You can help with this stuff! Join us on [https://chat.fedoraproject.org/#/room/#python:fedoraproject.org Fedora Python Matrix]! }}
A SIG for people who are interested in Python on Fedora. This includes
packaging and optimizing the various Python 2 and Python 3 [http://wiki.python.org/moin/implementation runtimes]
([http://wiki.python.org/moin/CPython CPython], [http://www.jython.org/ Jython]), packaging libraries and applications, setting and improving [[Packaging:Python|standards for packaging them as RPMs]] and maintaining Python packages for Fedora.


=== Contact Info ===
== Python Special Interest Group (SIG) ==


Mailing List: [[http://lists.fedoraproject.org/mailman/listinfo/python-devel python-devel]] <BR>
[https://www.python.org/ Python] is a high-level, interpreted programming language which emphasizes on code readability. [https://fedoralovespython.org Fedora loves Python] and this SIG is for people who would like to see this relationship flourish. We aim to address any and all issues and tasks related to Python in Fedora, including:
IRC: #fedora-python on irc.freenode.net <BR>


=== Members ===
* packaging and optimizing the various [[#Python_Runtimes|Python runtimes]],
* packaging Python libraries and applications,
* setting and improving [[Packaging:Python|standards for packaging them as RPMs]],
* maintaining Python packages for Fedora


[[User:Ivazquez| Ignacio Vazquez-Abrams]] <BR>
and much more...
[[TimLauridsen| Tim Lauridsen]] <BR>
[[PaulNasrat| Paul Nasrat]] <BR>
[[ToshioKuratomi| Toshio Kuratomi]] <BR>
[[TejasDinkar| Tejas Dinkar]] <BR>
[[AurelienBompard| Aurelien Bompard]] <BR>
[[JoseMatos| José Matos]] <BR>
[[MichelSalim| Michel Salim]] <BR>
[[AlexLancaster| Alex Lancaster]] <BR>
[[LukeMacken| Luke Macken]] <BR>
[[ChristosTrochalakis| Christos Trochalakis]] <BR>
[[FelixSchwarz| FelixSchwarz]] <BR>
[[DaveMalcolm| Dave Malcolm]]: interested in core Python runtimes and low-level implementation details <BR>
[[MartinBacovsky| Martin Bacovsky]] <BR>
[[User:Tomspur| Thomas Spura]] <BR>


=== Python packages awaiting review ===
== Communicate ==


* [https://bugzilla.redhat.com/show_bug.cgi?id=588941 pypy] - An alternate [http://pypy.org/ python interpreter written in a subset of python].  The interpreter has [http://morepypy.blogspot.com/2009/10/gc-improvements.html better memory] use than CPython and speed is closing in on Cpython.  The JIT'd version is faster than CPython in many [http://speed.pypy.org benchmarks].  It is growing the ability to [http://morepypy.blogspot.com/2010/04/using-cpython-extension-modules-with.html load CPython extension modules] in the near future (work presently done on a branch).
=== Mailing lists ===
* [https://bugzilla.redhat.com/show_bug.cgi?id=593069 pynie] - Python 3, on top of the [https://admin.fedoraproject.org/pkgdb/acls/name/parrot Parrot virtual machine]


=== Package requests ===
{| class="wikitable"
* [http://chandlerproject.org Chandler PIM]
! Address !! Function
* [http://www.hforge.org/itools/ itools] - A python library that includes several useful tools, such as an ODF anonymizer that can be used to sanitize confidential documents before attaching them tp bug reports
|-
* [http://code.google.com/p/python-multiprocessing/ python-multiprocessing] - multiprocessing backport useful for EL-5
| {{fplist|python-devel}} || General mailing list for all things Python related
* [http://pypi.python.org/pypi/repoze.profile repoze.profile] - WSGI profiling middleware
|-
* [http://code.google.com/p/tgscheduler/ tgscheduler] - TurboGears scheduler
|}


=== Links ===


[http://www.python.org/ Python website] <BR>
=== Matrix ===
[[Packaging:Python| Building Python packages]] <BR>
[[TurboGears2| TurboGears]] <BR>
[[PackagingDrafts/TGApps|  Packaging TurboGears Applications]] <BR>
[[Packaging:Python Eggs|  Packaging Python Eggs]] <BR>
[http://farmdev.com/talks/unicode/ Unicode in Python, Completely Demystified]


[[Category:SIGs]]
{| class="wikitable"
[[Category:Language-specific SIGs]]
! Address !! Function
[[Category:Python]]
|-
| [[https://chat.fedoraproject.org/#/room/#python:fedoraproject.org Fedora Python] || [https://fedoraproject.org/wiki/SIGs/Python Python SIG] official channel
|}
 
 
== Core Members ==
See [https://fedoraproject.org/wiki/SIGs/Python/Members_list SIGs/Python/Members_list] for a list of our current core members.
 
 
== Join Python SIG ==
We're always looking for new members to join us. Whether you're a new contributor or someone that's been around since the beginning, there are definitely ways you can help. Join Python SIG and:
 
* Learn how to package new Python software
* Work with teammates from the four corners of the world
* Broaden your scope of working in open source communities and gain experience interacting in different areas
* Build your portfolio by working on real-world projects
 
[[Image:fedora-loves-python.png|200px|middle]] '''[[SIGs/Python/JoinSIG | Join the Python SIG now]]'''
 
== Areas of contribution ==
 
=== Packaging and maintaining Python applications ===
 
If you're just getting started with packaging Python modules for Fedora, here are some hints to get you started:
 
* The [https://docs.fedoraproject.org/en-US/packaging-guidelines/ Fedora Packaging Guidelines] must be followed for any package.  The [https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ Python specific guidelines] are a good starting point.
* When packaging PyPI project you can generate the initial SPEC file using [https://src.fedoraproject.org/rpms/pyp2rpm pyp2rpm] tool.
* You can generate a spec template for your new python package like this: <pre>dnf install rpmdevtools && rpmdev-newspec -t python</pre> That will generate a spec file template that is a good starting point to making your package. (Beware, the template might be outdated.)
 
==== Python SIG FAS group ====
 
You can add [https://src.fedoraproject.org/group/python-packagers-sig python-packagers-sig] group to your package so the [https://fedoraproject.org/wiki/SIGs/Python/Members_list core members] of the python-packagers-sig get notified on each bug in your Python program. This way it is possible to maintain all Python packages with the group permissions, which will simplify general Python cleanup changes.
 
If there is interest and shown familiarity with our guidelines and processes (which usually manifests in maintaining at least 5 to 10 Python packages) you can apply for having access to a broader group of packages that is commonly maintained. If you choose to apply for this, please discuss it with a sponsor of the python-packagers-sig. (You can find a list of those [https://accounts.fedoraproject.org/group/python-packagers-sig/ in FAS].)
 
The current list of packages maintained by the python-packagers-sig can be found at the [https://src.fedoraproject.org/group/python-packagers-sig src.fedoraproject.org].
 
The [https://packager-dashboard.fedoraproject.org/dashboard?groups=python-packagers-sig packaging dashboard of the Python SIG FAS group] might serve as a place to start contributing.
 
=== Review Python packages ===
 
If you are one of the experienced Python packagers, you can help with the [https://bugzilla.redhat.com/buglist.cgi?query_format=advanced&short_desc=python&bug_status=NEW&bug_status=ASSIGNED&bug_status=MODIFIED&bug_status=ON_DEV&bug_status=ON_QA&bug_status=VERIFIED&bug_status=RELEASE_PENDING&bug_status=POST&short_desc_type=allwordssubstr&component=Package%20Review&product=Fedora list of Python packages awaiting review].
* Bugzilla query for packages which have not passed review with "python" in the name or summary.
 
=== Porting to Python 3 ===
 
Python 2 is dead upstream as of January 2020. Thankfully the switch from Python 2 to Python 3 in Fedora is nearly finished, see our [http://fedora.portingdb.xyz/ Fedora Porting Database].
 
If your project still doesn't work on Python 3, we recommend trying the [https://portingguide.readthedocs.io/ Conservative Python 3 Porting Guide].
 
=== Other ===
Interested for more? Check out our [https://github.com/fedora-python/ github repositories] for various projects related to Python and Fedora.
 
== Upstream Release Schedules ==
 
[https://www.python.org/dev/peps/pep-0373/ Python 2.7]
 
[https://www.python.org/dev/peps/pep-0429/ Python 3.4]
 
[https://www.python.org/dev/peps/pep-0478/ Python 3.5]
 
[https://www.python.org/dev/peps/pep-0494/ Python 3.6]
 
[https://www.python.org/dev/peps/pep-0537/ Python 3.7]


=== Upstream Release Schedules ===
[https://www.python.org/dev/peps/pep-0569/ Python 3.8]
[http://python.org/dev/peps/pep-0373/ Python 2.7]


=== Python Features ===
[https://www.python.org/dev/peps/pep-0596/ Python 3.9]
==== Under development (Fedora 15?) ====
* [[Features/DebugPythonStacks|debug versions of Python 2 and Python 3 in addition to the traditional optimized builds]]
* [[Features/Python_3.2|upgrade of the Python 3 stack to 3.2]]
* [[Features/PyPyStack|add PyPy to Fedora, possibly with a stack of extensions]]


==== Added in Fedora 14 ====
[https://www.python.org/dev/peps/pep-0619/ Python 3.10]
* [[Features/Python_2.7|upgrade of the Python 2 stack to 2.7]]


==== Added in Fedora 13 ====
== Python Fedora Changes ==
* [[Features/Python3F13|parallel-installable Python 3 stack]]
* [[Features/EasierPythonDebugging|gdb hooks to make it easier to debug Python and extension modules]]
* [[Features/SystemtapStaticProbes#Python_2|Systemtap probe points for tracing Python function calls]]


==== Added in Fedora 11 ====
See the [[SIGs/Python/features_history| History of Python Changes]]
* [[Features/Python_2.6|upgrade of the Python 2 stack to 2.6]]


==== Added in Fedora 10 ====
== Toolbox ==
* [[Features/PythonNSS|created and packaged bindings for the FIPS-validated NSS cryptographic library]]


=== Python Runtimes ===
=== Python Runtimes ===
'''Within Fedora:'''
 
* {{package|python}} - The standard "CPython" implementation of Python 2
==== Within Fedora: ====
* {{package|python3}} - As above, for Python 3
 
 
* {{package|python3}} RPM package - The standard CPython implementation of Python 3
** The component name changes based on the version, currently {{package|python3.9}}
* {{package|python2}} - The legacy CPython implementation of Python 2
* {{package|jython}} - Python 2 implementation on top of the Java virtual machine
* {{package|jython}} - Python 2 implementation on top of the Java virtual machine
* {{package|pypy}} and {{package|pypy3}} - An alternate [http://pypy.org/ Python interpreter (with a JIT-compiler) written in a subset of python, compiled to .c].  The interpreter has [http://morepypy.blogspot.com/2009/10/gc-improvements.html better memory] use than CPython and speed is closing in on CPython.  The JIT'd version is faster than CPython in many [http://speed.pypy.org benchmarks].  It is growing the ability to [http://morepypy.blogspot.com/2010/04/using-cpython-extension-modules-with.html load CPython extension modules].
* Alternative Python versions so you can test you code on all of them. Just <code>dnf install tox</code> on Fedora 25+ to get them all.
** {{package|python3.9}}
** {{package|python3.8}}
** {{package|python3.7}}
** {{package|python3.6}}
** {{package|python3.5}}
** {{package|python34}} (retired in F33+)
** {{package|python33}} (retired on F29+)
** {{package|python2.7}}
** {{package|python26}} (retired in F33+)
==== Within EPEL: ====
* {{package|python34}} - Python 3.4 stack for EPEL6 and EPEL7
* {{package|python36}} - Python 3.6 stack for EPEL7
=== Python Compilers ===
==== Within Fedora: ====
* {{package|pyjamas}} - Python-to-JavaScript compiler, implemented in Python
* {{package|pyjamas}} - Python-to-JavaScript compiler, implemented in Python
'''Awaiting review:'''
* {{package|shedskin}} -  Python to C++ compiler (for a subset of Python with "implicit types")
* [https://bugzilla.redhat.com/show_bug.cgi?id=588941 pypy] - An alternate [http://pypy.org/ python interpreter written in a subset of python]
 
* [https://bugzilla.redhat.com/show_bug.cgi?id=593069 pynie] - Python 3, on top of the [https://admin.fedoraproject.org/pkgdb/acls/name/parrot Parrot virtual machine]
== Important Links ==
'''Awaiting packaging'''
* Python in Fedora
* IronPython
** [[Packaging:Python| Python packaging Guidelines]]
* [http://code.google.com/p/python-on-a-chip/ Python-on-a-Chip (p14p)]
** [https://fedoralovespython.org/ Fedora Loves Python] site ([https://github.com/fedora-python/fedoralovespython.org source repo])
** [https://developer.fedoraproject.org/tech/languages/python/python-installation.html Python section in the Fedora Developer Portal] (remember to update this as recommendations and the available tooling change!
** [[SIGs/Python/PythonPatches| Python Patches]] – registry of patch numbers for Python interpreters in Fedora and EL
** [https://hackmd.io/9f64YNIZTCy0ZzKb5wKtqQ?view Fedora Python interpreters maintenance guide]
* General Python links
** [http://www.python.org/ Python website]
** [https://portingguide.readthedocs.io The Conservative Python 3 Porting Guide]
* Obsolete
** [http://farmdev.com/talks/unicode/ Unicode in Python, Completely Demystified] (somewhat outdated)
** [[Packaging:Python Eggs|  Packaging Python Eggs]] (outdated – needs update to <code>pip</code> & friends)
** [https://python-rpm-porting.readthedocs.io/ Python RPM Porting Guide]
 
[[Category:SIGs]]
[[Category:Language-specific SIGs]]
[[Category:Python]]
 


[[Category:Fedora special-interest groups|Python SIG]]
[[Category:Fedora special-interest groups|Python SIG]]

Latest revision as of 11:14, 20 February 2024


Important.png
Help wanted!
You can help with this stuff! Join us on Fedora Python Matrix!

Python Special Interest Group (SIG)

Python is a high-level, interpreted programming language which emphasizes on code readability. Fedora loves Python and this SIG is for people who would like to see this relationship flourish. We aim to address any and all issues and tasks related to Python in Fedora, including:

and much more...

Communicate

Mailing lists

Address Function
python-devel General mailing list for all things Python related


Matrix

Address Function
[Fedora Python Python SIG official channel


Core Members

See SIGs/Python/Members_list for a list of our current core members.


Join Python SIG

We're always looking for new members to join us. Whether you're a new contributor or someone that's been around since the beginning, there are definitely ways you can help. Join Python SIG and:

  • Learn how to package new Python software
  • Work with teammates from the four corners of the world
  • Broaden your scope of working in open source communities and gain experience interacting in different areas
  • Build your portfolio by working on real-world projects

Fedora-loves-python.png Join the Python SIG now

Areas of contribution

Packaging and maintaining Python applications

If you're just getting started with packaging Python modules for Fedora, here are some hints to get you started:

  • The Fedora Packaging Guidelines must be followed for any package. The Python specific guidelines are a good starting point.
  • When packaging PyPI project you can generate the initial SPEC file using pyp2rpm tool.
  • You can generate a spec template for your new python package like this:
    dnf install rpmdevtools && rpmdev-newspec -t python
    That will generate a spec file template that is a good starting point to making your package. (Beware, the template might be outdated.)

Python SIG FAS group

You can add python-packagers-sig group to your package so the core members of the python-packagers-sig get notified on each bug in your Python program. This way it is possible to maintain all Python packages with the group permissions, which will simplify general Python cleanup changes.

If there is interest and shown familiarity with our guidelines and processes (which usually manifests in maintaining at least 5 to 10 Python packages) you can apply for having access to a broader group of packages that is commonly maintained. If you choose to apply for this, please discuss it with a sponsor of the python-packagers-sig. (You can find a list of those in FAS.)

The current list of packages maintained by the python-packagers-sig can be found at the src.fedoraproject.org.

The packaging dashboard of the Python SIG FAS group might serve as a place to start contributing.

Review Python packages

If you are one of the experienced Python packagers, you can help with the list of Python packages awaiting review.

  • Bugzilla query for packages which have not passed review with "python" in the name or summary.

Porting to Python 3

Python 2 is dead upstream as of January 2020. Thankfully the switch from Python 2 to Python 3 in Fedora is nearly finished, see our Fedora Porting Database.

If your project still doesn't work on Python 3, we recommend trying the Conservative Python 3 Porting Guide.

Other

Interested for more? Check out our github repositories for various projects related to Python and Fedora.

Upstream Release Schedules

Python 2.7

Python 3.4

Python 3.5

Python 3.6

Python 3.7

Python 3.8

Python 3.9

Python 3.10

Python Fedora Changes

See the History of Python Changes

Toolbox

Python Runtimes

Within Fedora:

Within EPEL:

  • Package-x-generic-16.pngpython34 - Python 3.4 stack for EPEL6 and EPEL7
  • Package-x-generic-16.pngpython36 - Python 3.6 stack for EPEL7

Python Compilers

Within Fedora:

  • Package-x-generic-16.pngpyjamas - Python-to-JavaScript compiler, implemented in Python
  • Package-x-generic-16.pngshedskin - Python to C++ compiler (for a subset of Python with "implicit types")

Important Links