Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
36
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rdm-software
SaQC
Commits
70b348ed
Commit
70b348ed
authored
1 year ago
by
Bert Palm
🎇
Browse files
Options
Downloads
Patches
Plain Diff
fixed distutil deprecation warning with setup.py
parent
72fc3910
No related branches found
No related tags found
1 merge request
!714
fix_distutils_deprecation
Pipeline
#182796
passed with stages
in 11 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+4
-6
4 additions, 6 deletions
setup.py
with
4 additions
and
6 deletions
setup.py
+
4
−
6
View file @
70b348ed
# SPDX-FileCopyrightText: 2021 Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
#
# SPDX-License-Identifier: GPL-3.0-or-later
from
distutils.util
import
convert_path
import
os
from
setuptools
import
find_packages
,
setup
# read the version string from saqc without importing it. See the
# link for a more detailed description of the problem and the solution
# https://stackoverflow.com/questions/2058802/how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package
vdict
=
{}
version_fpath
=
convert_path
(
"
saqc/version.py
"
)
with
open
(
version_fpath
)
as
f
:
with
open
(
os
.
path
.
join
(
"
saqc
"
,
"
version.py
"
))
as
f
:
vdict
=
{}
exec
(
f
.
read
(),
vdict
)
version
=
vdict
[
"
__version__
"
]
version
=
vdict
[
"
__version__
"
]
with
open
(
"
README.md
"
,
"
r
"
)
as
fh
:
long_description
=
fh
.
read
()
...
...
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