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

Support for Python 3.9 #142

Closed
dycw opened this issue Mar 8, 2023 · 4 comments
Closed

Support for Python 3.9 #142

dycw opened this issue Mar 8, 2023 · 4 comments

Comments

@dycw
Copy link

dycw commented Mar 8, 2023

Hi @srstevenson ,

I was wondering why support for older versions of Python were dropped in this last major release?

@srstevenson
Copy link
Owner

This is to support assignment expressions, generic syntax for the built-in collections, and writing union types as Foo | Bar instead of Union[Foo, Bar] (the latter is what requires 3.10 specifically). As this package was renamed from xdg to xdg-base-dirs, you won't unintentionally pick up any backward incompatible changes even if you have no upper version bound on xdg. If you still need Python 3.9 support, you can continue to use the xdg package rather than xdg-base-dirs with no loss of features--the final 6.0.0 release of xdg supports down to Python 3.7.

@dycw
Copy link
Author

dycw commented Mar 9, 2023

Understood, thanks! Was just curious more than anything.

@stdedos
Copy link

stdedos commented Mar 24, 2023

Hello there! What is the suggestion for:

  1. A package supporting < 3.9, and
  2. It is a pip package (i.e., cannot depend on
    $ apt-cache policy python3-xdg 
     python3-xdg:
       Installed: 0.26-1ubuntu1
       Candidate: 0.26-1ubuntu1
       Version table:
      *** 0.26-1ubuntu1 500

?

@srstevenson
Copy link
Owner

@stdedos The last release of the xdg package on PyPI (6.0.0) supports Python >=3.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants