Metadata-Version: 2.4
Name: pyc_wheel
Version: 2.0.12
Summary: Compile all py files in a wheel to pyc files.
Author-email: Adam Karpierz <adam@karpierz.net>, Grant Patten <grant@gpatten.com>
Maintainer-email: Adam Karpierz <adam@karpierz.net>
License-Expression: MIT
Project-URL: Homepage, https://pypi.org/project/pyc-wheel/
Project-URL: Documentation, https://karpierz.github.io/pyc_wheel/
Project-URL: History, https://karpierz.github.io/pyc_wheel/CHANGES.html
Project-URL: Download, https://pypi.org/project/pyc-wheel/
Project-URL: Repository, https://github.com/karpierz/pyc_wheel
Project-URL: Tracker, https://github.com/karpierz/pyc_wheel/issues
Project-URL: Sponsoring, https://www.paypal.com/donate/?hosted_button_id=FX8L7CJUGLW7S
Keywords: pyc_wheel,pycwheel,wheel,pyc,compile
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: Polish
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Python: <4.0.0,>=3.10.0
Description-Content-Type: text/x-rst; charset=UTF-8
License-File: LICENSE
Requires-Dist: setuptools>=80.9.0
Requires-Dist: typing-extensions>=4.15.0
Requires-Dist: pkg-about>=2.0.0
Dynamic: license-file

pyc_wheel
=========

Compile all py files in a wheel to pyc files.

Overview
========

|package_bold| is a strict fork of Grant Patten's pycwheel_ package
with a fixes allowing to work with Python3 or higher and with a code
reformatting and some improvements.

`PyPI record`_.

`Documentation`_.

Usage
-----

Processing the wheel in place:

.. code-block:: bash

    $ python3 -m pyc_wheel your_wheel-1.0.0-py3-none-any.whl
    # Output: your_wheel-1.0.0-py3-none-any.whl

or renaming for the python version:

.. code-block:: bash

    $ python3.13 -m pyc_wheel --rename your_wheel-1.0.0-py3-none-any.whl
    # Output: your_wheel-1.0.0-cp313-none-any.whl

or with backup:

.. code-block:: bash

    $ python3.13 -m pyc_wheel --rename --with-backup your_wheel-1.0.0-py3-none-any.whl
    # Output: your_wheel-1.0.0-cp313-none-any.whl
    #         your_wheel-1.0.0-py3-none-any.whl.bak

or with quiet:

.. code-block:: bash

    $ python3 -m pyc_wheel --quiet your_wheel-1.0.0-py3-none-any.whl
    # Output: your_wheel-1.0.0-py3-none-any.whl

or skipping compilation for a file subset:

.. code-block:: bash

    $ python3 -m pyc_wheel --exclude "some/regex" your_wheel-1.0.0-py3-none-any.whl

To check all available processing options:

.. code-block:: bash

    $ python3 -m pyc_wheel --help

Installation
============

Prerequisites:

+ Python 3.10 or higher

  * https://www.python.org/

+ pip and setuptools

  * https://pypi.org/project/pip/
  * https://pypi.org/project/setuptools/

To install run:

  .. parsed-literal::

    python -m pip install --upgrade |package|

Development
===========

Prerequisites:

+ Development is strictly based on *tox*. To install it run::

    python -m pip install --upgrade tox

Visit `Development page`_.

Installation from sources:

clone the sources:

  .. parsed-literal::

    git clone |respository| |package|

and run:

  .. parsed-literal::

    python -m pip install ./|package|

or on development mode:

  .. parsed-literal::

    python -m pip install --editable ./|package|

License
=======

  | |copyright|
  | Copyright (c) 2016 Grant Patten
  | Licensed under the MIT License
  | https://opensource.org/license/mit
  | Please refer to the accompanying LICENSE file.

Authors
=======

* Grant Patten <grant@gpatten.com>
* Adam Karpierz <adam@karpierz.net>

Sponsoring
==========

| If you would like to sponsor the development of this project, your contribution
  is greatly appreciated.
| As I am now retired, any support helps me dedicate more time to maintaining and
  improving this work.

`Donate`_

.. |package| replace:: pyc_wheel
.. |package_bold| replace:: **pyc_wheel**
.. |copyright| replace:: Copyright (c) 2019-2026 Adam Karpierz
.. |respository| replace:: https://github.com/karpierz/pyc_wheel
.. _Development page: https://github.com/karpierz/pyc_wheel
.. _PyPI record: https://pypi.org/project/pyc-wheel/
.. _Documentation: https://karpierz.github.io/pyc_wheel/
.. _Donate: https://www.paypal.com/donate/?hosted_button_id=FX8L7CJUGLW7S
.. _pycwheel: https://pypi.org/project/pycwheel/
