Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weastur/python-debian
Latest Python for Debian GNU/Linux
https://github.com/weastur/python-debian
build-tools debian debian-packages devops python python3
Last synced: about 16 hours ago
JSON representation
Latest Python for Debian GNU/Linux
- Host: GitHub
- URL: https://github.com/weastur/python-debian
- Owner: weastur
- License: mit
- Created: 2022-03-16T17:12:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-20T07:52:36.000Z (5 months ago)
- Last Synced: 2024-06-21T06:33:35.697Z (5 months ago)
- Topics: build-tools, debian, debian-packages, devops, python, python3
- Language: Dockerfile
- Homepage:
- Size: 62.5 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Latest Python for Debian GNU/Linux
[![Build](https://github.com/weastur/python-debian/actions/workflows/build.yml/badge.svg)](https://github.com/weastur/python-debian/actions/workflows/build.yml)
[![gitlint](https://github.com/weastur/python-debian/actions/workflows/gitlint.yml/badge.svg)](https://github.com/weastur/python-debian/actions/workflows/gitlint.yml)
[![Lint Dockerfile](https://github.com/weastur/python-debian/actions/workflows/hadolint.yml/badge.svg)](https://github.com/weastur/python-debian/actions/workflows/hadolint.yml)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/weastur/python-debian/main.svg)](https://results.pre-commit.ci/latest/github/weastur/python-debian/main)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)Build scripts to get deb-packaged latest Python which co-exists with system Python.
## HowTo
Install docker and make. Then run
```shell
make
```To issue build for a particular version
```shell
make python3.12-bookworm
make python3.12-bullseye
```Look at the `build/` directory
## Internals
The build process runs inside docker, *without* using cache. It was tested on Linux and macOS.
The source code for building packages will be downloaded from the [deadsnakes](https://github.com/deadsnakes) project.
After the build, the simple smoke test takes place, installing all packages and running Python script.## Contributing
You need Linux or macOS host with Docker installed.
You can start from `Makefile` to inspect the build process.Also, you can use [pre-commit](https://pre-commit.com) to run some checks
locally before commit.```bash
pre-commit install
```## FAQ
### Which versions of Debian are supported?
All currently maintaied versions: 10 (buster), 11 (bullseye), 12 (bookworm)
### Which versions of Python are supported?
Only latest version – Python 3.12
### Why do not build all supported Python?
There is not much sense in that. If you need all Python versions for development, look at the
[pyenv](https://github.com/pyenv/pyenv) project or [docker images](https://hub.docker.com/_/python).
In other cases, you can safely run old python code in the newest interpreter.## License
MIT, see [LICENSE](./LICENSE).