wbond / packagecontrol.io

The Package Control website
https://packagecontrol.io
Other
111 stars 46 forks source link

Use up-to-date python libraries #155

Open deathaxe opened 1 year ago

deathaxe commented 1 year ago

This PR proposes to update to python 3.9 and more up-to-date libraries.

Motiviation

It was impossible to setup a dev environment on a fairly up-to-date system (debian on wsl) which runs python 3.9 due to several compilation errors in lxml, psycopg2, ... , which are no longer provided as wheels.

Notes

  1. dogpile.core conflicts with dogpile.cache and is therefore removed.
  2. psycopg2 doesn't install on debian, hence using psycopg2-binary.
  3. Some tiny compatibility issues are fixed in code.

    a) config.py PyYAML requires a loader to be specified or safe_load() to be used to prevent security vulnerabilities.

    b) readme_renderer.py

    • creole.rest2html was renamed tocreole.rest_tools`
    • SmartyPants class has been replaced by smartypants() function somewhere in 2015
    • HTML_SKIP_STYLE flag is no longer supported.
    • Markdown objects can directly be called. .render() no longer needed/supported.