Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • go go
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • SRCT
  • gogo
  • Issues
  • #40

Closed
Open
Created Jul 01, 2016 by David Haynes@dhaynes3🙆Owner0 of 13 tasks completed0/13 tasks

Python 3 conversion

Summary

As in, port the entire project to python 3. The "six" package is a thing, may need to look into that.

Resources

  • https://docs.djangoproject.com/en/1.10/topics/python3/

From @dbond2 -

  • __future__ imports for print()
  • __future__ imports for absolute_import
  • __future__ imports for unicode_literals
  • __future__ imports for division (not widely applicable, like the other ones)

--

  • unicode() --> str()
  • drop __unicode__() from models for only __str__()

--

  • I do not think that bytestring issues are a problem, usually either by file processing or HttpRequest/HttpResponse objects, or by their specific use as a type
  • exceptions must use as(fairly sure already being done)
  • defining iterator, boolean evaluation, and division methods on objects would need to be changed, but I don't think they're applicable

--

  • install python3-dev
  • requirements and virtualenvironments will need to change
  • look at and upgrade the third-party packages alongside this issue
  • README will need to change accordingly
Assignee
Assign to
Time tracking