Skip to content
Snippets Groups Projects
Unverified Commit 0dacec59 authored by fin444's avatar fin444 Committed by GitHub
Browse files

python 3.12 support (#334)

parent 9eb3fbbf
No related branches found
No related tags found
No related merge requests found
import os
from distutils.util import strtobool
def strtobool(val):
val = val.lower()
if val in ("y", "yes", "t", "true", "on", "1"):
return 1
elif val in ("n", "no", "f", "false", "off", "0"):
return 0
else:
raise ValueError(f"invalid truth value {val!r}")
def get_args_from_env():
......
......@@ -4,19 +4,6 @@ from setuptools import setup
long_description = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()
def install_data_files_hack():
# This is a clever hack to circumvent distutil's data_files
# policy "install once, find never". Definitely a TODO!
# -- https://groups.google.com/group/comp.lang.python/msg/2105ee4d9e8042cb
from distutils.command.install import INSTALL_SCHEMES
for scheme in INSTALL_SCHEMES.values():
scheme["data"] = scheme["purelib"]
install_data_files_hack()
requires = [
"flask",
"Werkzeug>=0.15.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment