diff options
Diffstat (limited to 'dev-python/thriftpy2/files/thriftpy2-0.5.3-tomllib.patch')
| -rw-r--r-- | dev-python/thriftpy2/files/thriftpy2-0.5.3-tomllib.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/dev-python/thriftpy2/files/thriftpy2-0.5.3-tomllib.patch b/dev-python/thriftpy2/files/thriftpy2-0.5.3-tomllib.patch deleted file mode 100644 index d778ba9319e4..000000000000 --- a/dev-python/thriftpy2/files/thriftpy2-0.5.3-tomllib.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff --git a/setup.py b/setup.py -index e4741c6..3294b1a 100644 ---- a/setup.py -+++ b/setup.py -@@ -3,16 +3,20 @@ - - import sys - import platform --import toml -+if sys.version_info < (3, 11): -+ import tomli as tomllib -+else: -+ import tomllib - - from os.path import join, dirname - from setuptools import setup, find_packages, Extension - - --meta = toml.load(join(dirname(__file__), 'pyproject.toml') ) --install_requires = meta["project"]["dependencies"] --dev_requires = meta["project"]["optional-dependencies"]["dev"] --tornado_requires = meta["project"]["optional-dependencies"]["tornado"] -+with open(join(dirname(__file__), 'pyproject.toml'), "rb") as f: -+ meta = tomllib.load(f) -+ install_requires = meta["project"]["dependencies"] -+ dev_requires = meta["project"]["optional-dependencies"]["dev"] -+ tornado_requires = meta["project"]["optional-dependencies"]["tornado"] - - try: - from tornado import version as tornado_version |
