Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages: removes Python2 broken packages #141794

Closed
wants to merge 25 commits into from
Closed

pythonPackages: removes Python2 broken packages #141794

wants to merge 25 commits into from

Conversation

superherointj
Copy link
Contributor

@superherointj superherointj commented Oct 15, 2021

PR is ready for review.

--

Removes all broken Python 2 packages.
114 of 265. 43% of packages broken.

If something important breaks, we can always restore it. :-)

List of broken packages

appleseed
arrow
ase
bitbucket_api
bitbucket-cli
blivet
browsermob-proxy
cairocffi
cairosvg
cherrypi
cliapp
cmdtest
coilmq
construct
django_evolution
docker-py
dulwich
flask
flask_ldap_login
flit
flit-core
fontforge
gdcm
geant4
google-api-python-client
gdrivefs
hg-git
hgsvn
imagecodecs-lite
imbalanced-learn
ipykernel
ipython
jsonrpclib
jupyter_client
jupyter_console
koji
kicad
larch
Lasagne
ldaptor
libcloud
libgpiod
libvirt 
lirc
lpod
lsi
mapsplotlib
marionette-harness
marionette_driver
matplotlib
mercurial
meson
mlt
moinmoin
monosat
mozprofile
mozrunner
mozsvc
mwlib
mwlib-rl
nbformat
nevow
nixpart0
nixpart
notebook
nxt-python
openwrt-luci-rpc
pandas
#pillow <- Delayed removal
postorius
praw
privacyidea-ldap-proxy
pycangjie
pycarddav
pyexiv2
pykickstart
python-otr
pythonIRClib
pythonmagick
pyutil
qserve
remotecv
rivet
robotframework-ride
runsnakerun
rpm
rpkg
scikit-learn
scipy
seaborn
serversyncstorage
sequoia
sipsimple
smartdc
snug
sphinx
squaremap
subliminal
suds
tarman
thumbor
tokenizers
tokenize-rt
tokenserver
ttystatus
wptserve
werkzeug
wxPython
wxPython30 <- Removal delayed
vcrpy
xenomapper
yt
zeek
zbase32
zfec

@superherointj superherointj marked this pull request as draft October 15, 2021 19:41
@superherointj superherointj changed the title pythonPackages: remove Python2 broken packages [wip] pythonPackages: remove Python2 broken packages Oct 15, 2021
@superherointj superherointj changed the title [wip] pythonPackages: remove Python2 broken packages [wip] pythonPackages: removes Python2 broken packages Oct 15, 2021
@thiagokokada thiagokokada mentioned this pull request Oct 15, 2021
12 tasks
@SuperSandro2000
Copy link
Member

Please put all the commits that move packages to python3 into extra PRs.

@superherointj
Copy link
Contributor Author

superherointj commented Oct 19, 2021

Please put all the commits that move packages to python3 into extra PRs.

Hello @SuperSandro2000

I have only fixed package plover for Python3 and it's already a separate commit.
This PR is mostly about removing packages or marking as broken packages.
First commit (pythonPackages: remove python2 broken packages) is a compilation of the removal of all Python 2 broken packages. All other commits were packages that depended on any of these packages. And were also broken by extension.

@superherointj superherointj changed the title [wip] pythonPackages: removes Python2 broken packages pythonPackages: removes Python2 broken packages Oct 19, 2021
@superherointj superherointj marked this pull request as ready for review October 19, 2021 19:39
Copy link
Contributor

@doronbehar doronbehar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM to me overall, but it'd be nice to get a second 👍 from someone else.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/608

@superherointj
Copy link
Contributor Author

superherointj commented Oct 22, 2021

Please don't remove displaycal. It works fine and I need it to color calibrate my display.

@peti I have restored displaycal, wxPython_3, pillow.

This ideally should be solved on upstream. If this application is important to you, consider fixing it on upstream. (Forking, crowdsourcing, etc.)

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Oct 22, 2021

This need a mention in the release notes and aliases that explain why the packages have been removed.

@superherointj
Copy link
Contributor Author

superherointj commented Oct 22, 2021

This need a mention in the release notes and aliases that explain why the packages have been removed.

This what? Can you be more specific?
This PR is affecting broken packages mostly.
wxPython was renamed to wxPython_3 and wxPython became latest (as is expected) but all occurrences were accounted and fixed (used ripgrep for this).
Is this what you mean?

I'm not sure it is worth replacing a list of broken packages with aliases saying it is broken. It was already broken. The goal is to do clean-up.

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Oct 22, 2021

This what? Can you be more specific?

This pull request: it would be good to have a release note saying all broken Python 2 packages have been removed.

This PR is affecting broken packages mostly.
wxPython was renamed but all occurrences were accounted and fixed

Any package being removed or renamed needs an alias: https://nixos.org/manual/nixpkgs/stable/#steps-to-remove-a-package-from-nixpkgs

@superherointj
Copy link
Contributor Author

superherointj commented Oct 22, 2021

Any package being removed or renamed needs an alias: https://nixos.org/manual/nixpkgs/stable/#steps-to-remove-a-package-from-nixpkgs

I don't think it makes sense in this case because packages were already broken and this is clean-up. This PR is even removing some aliases. The goal is to lower the noise. Packages that have hope of being saved were marked as being broken. I'm not adding 114 aliases (for no good reason).

@superherointj
Copy link
Contributor Author

superherointj commented Oct 22, 2021

This pull request: it would be good to have a release note saying all broken Python 2 packages have been removed.

Will seek to it. As Highlights or Backward Incompatibilities or Other Notable Changes?

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Oct 22, 2021

I don't think it makes sense in this case because packages were already broken and this is clean-up.

Broken since when? If in the last couple of releases they were ok, a user upgrading to 21.11 will get an error like:

error: undefined variable 'torchar'...

which doesn't say if the package was removed, renamed or the reason why it's missing. Say she then reads the release notes and finds no mention of any of this, double check for typos and finally, after wading through the PRs, figures it was deleted here. It's definitely not a good experience, so that's why it's a good reason.

This PR is even removing some aliases

Yeah, you can guess I'm not a fan of doing this.

Copy link
Member

@davidak davidak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

displaycal should not be removed, since people depend on it for their professional work

it's the only tool available to calibrate the display (except gnome color management)

@superherointj
Copy link
Contributor Author

displaycal should not be removed, since people depend on it for their professional work

it's the only tool available to calibrate the display (except gnome color management)

It has been reversed already.

@superherointj superherointj mentioned this pull request Oct 22, 2021
12 tasks
@davidak davidak requested review from davidak and removed request for davidak October 22, 2021 19:36
@superherointj superherointj marked this pull request as draft October 26, 2021 17:04
@superherointj
Copy link
Contributor Author

superherointj commented Nov 1, 2021

I have changed my mind on this PR. There is opposition for it. And it needs further improvements that I'm unwilling. So I'm closing. I'm sorry people that contributed for it. I should have had a better judgement here.

21.11 Blockers automation moved this from In progress to Done Nov 1, 2021
@superherointj superherointj deleted the python2-remove-broken-packages branch November 1, 2021 18:11
@wegank wegank mentioned this pull request Jan 14, 2023
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

7 participants