[Python-announce] PyEmpaq 0.4 released

2023-07-23 Thread Facundo Batista
I'm happy to announce the release of PyEmpaq 0.4.

PyEmpaq is a simple but powerful Python packer to run any project with
any virtualenv dependencies anywhwere.

With PyEmpaq you can convert any Python project into a single `.pyz`
file with all the project's content packed inside.

That single file is everything that needs to be distributed. When the
final user executes it, the original project will be expanded, its
dependencies installed in a virtualenv, and then executed. Note that
no special permissions or privileges are required, as everything
happens in the user environment.

Both the packaging and the execution are fully multiplatorm. This
means that you can pack a project in Linux, Windows, MacOS or
whatever, and it will run ok in Linux, Windows, MacOS or whatever. The
only requirement is Python to be already installed.


What's new in this version?

- Remove the installation if ephemeral behaviour is indicated
([related issue](https://github.com/facundobatista/pyempaq/issues/63))

- Allow to change the location where the files get unpacked ([related
issue](https://github.com/facundobatista/pyempaq/issues/62))

- Dump a file with unpacking related metadata in the project's
directory ([related
issue](https://github.com/facundobatista/pyempaq/issues/61))

- Refactored the project's install directory name to include the
Python version and more specifics ([related
issue](https://github.com/facundobatista/pyempaq/issues/58))

- Alert at pack time if any indicated requirement file is excluded
from the included files.

- Log (and transmit when ending the unpacker itself) the return code
of the executed project ([related
issue](https://github.com/facundobatista/pyempaq/issues/64))

- Migrated to the `platformdirs` library to detect the user's data
directory. ([related
issue](https://github.com/facundobatista/pyempaq/issues/60))


For more details please [check the
documentation](https://pyempaq.readthedocs.io/en/latest/) (which
includes demos and examples). The project [exists in
Github](https://github.com/facundobatista/pyempaq/).

Enjoy,

-- 
.Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org.ar/
Twitter: @facundobatista
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


Re: Meta Class Maybe?

2023-07-23 Thread Dieter Maurer via Python-list
Chris Nyland wrote at 2023-7-22 19:12 -0400:
>So I am stuck on a problem. I have a class which I want to use to create
>another class without having to go through the boiler plate of subclassing.

Do you know about `__init_subclass__`?
It is called whenever a class is subclassed and can be used to
check/update the newly created class.
-- 
https://mail.python.org/mailman/listinfo/python-list