Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fedora-python/portingdb
Database & tools to track Python 2 removal from Fedora
https://github.com/fedora-python/portingdb
fedora git-scraping python2-python3
Last synced: 2 days ago
JSON representation
Database & tools to track Python 2 removal from Fedora
- Host: GitHub
- URL: https://github.com/fedora-python/portingdb
- Owner: fedora-python
- License: mit
- Created: 2015-09-23T14:02:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-11-13T14:53:01.000Z (about 1 month ago)
- Last Synced: 2024-12-15T07:02:33.833Z (13 days ago)
- Topics: fedora, git-scraping, python2-python3
- Language: Python
- Homepage: https://fedora.portingdb.xyz
- Size: 34.7 MB
- Stars: 31
- Watchers: 12
- Forks: 39
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
A database of packages that still need Python 2 in Fedora, and tools to manage it.
This software is a mess. It was created for one purpose and was expected to not be needed soon.
Meanwhile, hacks are piling on.# Deployed report
A HTML report is located at:
https://fedora.portingdb.xyz/
Unless you want to refresh data there, or run additional reports, you can just look at that.
# Installation
This software is not released.
To install it, first set up a
[Python virtual environment](https://developer.fedoraproject.org/tech/languages/python/python-installation.html)
with Python 3.7+.
Then run directly from Git working directory:(venv) $ pip install --editable . # Mind the dot at the end!
# Usage
To start a HTML report server, start:
(venv) $ export PYTHONPATH=.
(venv) $ python -m portingdb serve# Check drops
There is a script that checks what python2 packages can be dropped from Fedora
during the [Mass Python 2 Package Removal](https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal).Change your Python virtual environment to include system side packages:
(venv) $ cat venv/pyvenv.cfg
...
include-system-site-packages = true
...Reactivate if needed:
(venv) $ deactivate
$ . venv/bin/activateAnd run it with:
(venv) $ python -m portingdb --datadir data/ check-drops
See the docstring of [portingdb/check_drops.py](./portingdb/check_drops.py)
for more info.# Freezing
A static website with the HTML repot can be build by:
(venv) $ export PYTHONPATH=.
(venv) $ python elsasite.py freezeYou can add `--serve` for he `freeze` command to immediately inspect the result.
# Contribute
- A guide for updating the data is [in `docs/`](./docs/update_portingdb.rst).
- Issue Tracker: https://github.com/fedora-python/portingdb/issues
- Source Code: https://github.com/fedora-python/portingdb# License
This code is under the MIT license. May it serve you well.