Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
klaus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jonashaag
klaus
Commits
0dacec59
Unverified
Commit
0dacec59
authored
7 months ago
by
fin444
Committed by
GitHub
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
python 3.12 support (#334)
parent
9eb3fbbf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
klaus/contrib/app_args.py
+10
-1
10 additions, 1 deletion
klaus/contrib/app_args.py
setup.py
+0
-13
0 additions, 13 deletions
setup.py
with
10 additions
and
14 deletions
klaus/contrib/app_args.py
+
10
−
1
View file @
0dacec59
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
():
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
0
−
13
View file @
0dacec59
...
...
@@ -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
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment