Skip to content

Commit

Permalink
Re-add backports.strenum
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin committed Oct 6, 2023
1 parent 49411ec commit 8709979
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 53 deletions.
52 changes: 0 additions & 52 deletions archinfo/_strenum.py

This file was deleted.

6 changes: 5 additions & 1 deletion archinfo/types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import sys
from typing import NewType

from ._strenum import StrEnum
if sys.version_info < (3, 11):
from backports.strenum import StrEnum
else:
from enum import StrEnum


class RegisterOffset(int):
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ classifiers =

[options]
packages = find:
install_requires =
backports.strenum>=1.2.8;python_version<'3.11'
python_requires = >=3.8

[options.extras_require]
Expand Down

0 comments on commit 8709979

Please sign in to comment.