Git repository pointers and configurations to build Python packages from source
This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Franco Masotti 2b53ab9b4a
- Updated hooks.
- Minor fixes.
2022-06-26 17:55:46 +02:00
scripts - Updated hooks. 2022-06-26 17:55:46 +02:00
stats - Updated hooks. 2022-06-26 17:55:46 +02:00
submodules Submodule updates. 2022-06-20 00:13:28 +02:00
.allowed_licenses.yml Added Pipfile, makefile, pre-commit file and other files. 2021-10-16 22:24:33 +02:00
.gitignore Added submodules. 2022-01-04 16:15:34 +01:00
.gitmodules Submodule updates. 2022-06-13 00:13:39 +02:00
.pre-commit-config.yaml - Updated hooks. 2022-06-26 17:55:46 +02:00
LICENSE.txt Added submodules. Added git add script. Added license. 2021-10-12 17:57:30 +02:00
Makefile Added submodules. Fixed makefile target. 2022-01-09 19:08:05 +01:00
Pipfile Fixed installation. 2022-01-06 18:05:53 +01:00
README.md Removed old instructions from readme. Fixed copyright headers. 2022-01-06 18:19:46 +01:00
configuration.yaml Fixes. 2022-01-30 16:05:59 +01:00

README.md

Python packages source

Git repository pointers and configurations to build Python packages from source.

Table of contents

Description

This is a meta-repository which contains pointers (git submodules) used to build Python 3 packages as an alternative to PyPI.

Git submodules point to mirrors on this server rather than upstream repositories. Using mirrors enables to work offline: the source of most package dependencies I use are hosted on GitHub.

graph

These numbers include all repositories hosted on mirrors-python. I don't use all these packages but I mirrored them just in case.

You can imagine what happens when GitHub is down...

Build script

Most packages present on pypi.franco.net.eu.org have been built using the build_python_packages.py

Submodules

  1. clone this repository normally (without recrursive submodules)

    git clone https://software.franco.net.eu.org/frnmst/python-packages-source.git
    
  2. to add submodules from external repositories run

    make submodules-add SUBMODULES="{submodule_URL_0} ${submodule_URL_1} ... ${submodule_URL_n}"
    
  3. to add all submodules from a Gitea organization through Gitea's API run

    make submodules-add-gitea
    

    https://software.franco.net.eu.org/mirrors-python is hardcoded in the script as variables

  4. to update all submodules in the index run

    make submodules-update
    

Important

Comments

Instructions

python-cffi
cryptography
graphviz
babel
lxml

Problematic repositories

  • kiwi
  • lxml
  • matplotlib
  • numpy

Client configuration

PIP

Add this to ~/.config/pip/pip.conf

[global]
timeout = 60
index-url = https://pypi.franco.net.eu.org/simple

Pipenv

shell

pipenv install --pypi-mirror https://pipy.franco.net.eu.org/simple

Pipfile

Use this as source in the Pipfile:

[[source]]
name = "pypi"
url = "https://pypi.franco.net.eu.org/simple/"
verify_ssl = true

Environment variable

This is my preferred method. Add the following to your shell configuration or profile:

export PIPENV_PYPI_MIRROR=https://pypi.franco.net.eu.org/simple

License

Copyright (C) 2021-2022 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)

python-packages-source is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

python-packages-source is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with python-packages-source. If not, see http://www.gnu.org/licenses/.

Changelog and trusted source

You can check the authenticity of new releases using my public key.

Changelogs, instructions, sources and keys can be found at blog.franco.net.eu.org/software.

Crypto donations

  • Bitcoin: bc1qnkflazapw3hjupawj0lm39dh9xt88s7zal5mwu
  • Monero: 84KHWDTd9hbPyGwikk33Qp5GW7o7zRwPb8kJ6u93zs4sNMpDSnM5ZTWVnUp2cudRYNT6rNqctnMQ9NbUewbj7MzCBUcrQEY
  • Dogecoin: DMB5h2GhHiTNW7EcmDnqkYpKs6Da2wK3zP
  • Vertcoin: vtc1qd8n3jvkd2vwrr6cpejkd9wavp4ld6xfu9hkhh0