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 [bot] 3defcf16ec Submodule updates. 2023-10-23 00:05:17 +02:00
scripts Update repository to new specs 2023-01-14 18:44:48 +01:00
stats Fix URL 2023-01-19 15:51:11 +01:00
submodules Submodule updates. 2023-10-23 00:05:17 +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. 2023-01-16 00:11:42 +01:00
.pre-commit-config.yaml Update repository to new specs 2023-01-14 18:44:48 +01:00
LICENSE.txt Added submodules. Added git add script. Added license. 2021-10-12 17:57:30 +02:00
Makefile Update repository to new specs 2023-01-14 18:44:48 +01:00
README.md Fix URL 2023-01-19 15:51:11 +01:00
configuration.yaml Fix configuration 2023-01-15 17:24:51 +01:00
requirements-dev.txt Update repository to new specs 2023-01-14 18:44:48 +01:00
requirements-freeze.txt Update repository to new specs 2023-01-14 18:44:48 +01:00
requirements.txt Update repository to new specs 2023-01-14 18:44:48 +01:00
setup.cfg Update repository to new specs 2023-01-14 18:44:48 +01:00
setup.py Update repository to new specs 2023-01-14 18:44:48 +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 script.

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