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
Merge requests
!714
fix_distutils_deprecation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix_distutils_deprecation
fix_distutils_deprecation
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Bert Palm
requested to merge
fix_distutils_deprecation
into
develop
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
fixed distutil deprecation warning with setup.py
👍
0
👎
0
Merge request reports
Viewing commit
70b348ed
Show latest version
1 file
+
4
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
70b348ed
fixed distutil deprecation warning with setup.py
· 70b348ed
Bert Palm
authored
1 year ago
setup.py
+
4
−
6
Options
# 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
()
Loading