Opened 13 months ago

Last modified 4 months ago

#31829 new defect

In 0.4.3, drop support for Python 2

Reported by: nickm Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: technical-debt, 043-deferred, 044-deferred
Cc: Actual Points:
Parent ID: Points: 1
Reviewer: Sponsor:

Description

Tor doesn't need Python to build, but several of our tests require Python to run.

Python 2 will reach end of life on Jan 1 2020 (see https://pythonclock.org/). Let's help it out by:

  • Making our configure script only detect python 3 as a usable python.
  • Removing gross python2 workarounds from our scripts.

Child Tickets

TicketStatusOwnerSummaryComponent
#32608closednickmMake configure script only accept python3Core Tor/Tor

Change History (6)

comment:1 Changed 13 months ago by teor

We should also consider dropping support for python 2 in chutney.

And making python 3 work for the fallback scripts. (And then dropping support for python 2.)

comment:2 Changed 11 months ago by hji

Hi! I've started working on this ticket. The first few PRs are on Github; https://github.com/torproject/tor/pull/1548

comment:3 Changed 11 months ago by nickm

Looks like a good start -- this might overlap somewhat with my work in a branch called python3_all at https://github.com/nmathewson/tor/tree/python3_all , where I tried to port all our scripts, even the ones not regularly invoked, to python3.

The issue I ran into with this branch was the lack of testing on a lot of those scripts. Adding some kind of tests would be really helpful to us in terms of being confident that the ports are correct

Also I'd be happy to take PRs to one script at a time -- it seems in retrospect that trying to port everything at once was a bit much.

comment:4 Changed 9 months ago by nickm

Keywords: 043-deferred added

All 0.4.3.x tickets without 043-must, 043-should, or 043-can are about to be deferred.

comment:5 Changed 9 months ago by nickm

Milestone: Tor: 0.4.3.x-finalTor: 0.4.4.x-final

comment:6 Changed 4 months ago by nickm

Keywords: 044-deferred added
Milestone: Tor: 0.4.4.x-finalTor: unspecified

Bulk-remove tickets from 0.4.4. Add the 044-deferred label to them.

Note: See TracTickets for help on using tickets.