-
Notifications
You must be signed in to change notification settings - Fork 39
/
README
75 lines (44 loc) · 1.92 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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/activate
And 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 freeze
You 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.