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
e85c2cf4
Commit
e85c2cf4
authored
1 year ago
by
Bert Palm
🎇
Browse files
Options
Downloads
Patches
Plain Diff
changed styple to pep440-pre, added checks in setup.py
parent
2b674254
No related branches found
No related tags found
1 merge request
!716
Rolling release
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
saqc/__init__.py
+4
-0
4 additions, 0 deletions
saqc/__init__.py
saqc/_version.py
+1
-1
1 addition, 1 deletion
saqc/_version.py
setup.py
+15
-9
15 additions, 9 deletions
setup.py
with
21 additions
and
11 deletions
pyproject.toml
+
1
−
1
View file @
e85c2cf4
...
...
@@ -12,7 +12,7 @@ markers = "slow: marks tests as slow (deselect with '-m \"not slow\"')"
[tool.versioneer]
VCS
=
"git"
style
=
"pep440-p
ost
"
style
=
"pep440-p
re
"
versionfile_source
=
"saqc/_version.py"
versionfile_build
=
"saqc/_version.py"
tag_prefix
=
"v"
...
...
This diff is collapsed.
Click to expand it.
saqc/__init__.py
+
4
−
0
View file @
e85c2cf4
...
...
@@ -12,3 +12,7 @@ from saqc.core import Flags, DictOfSeries, SaQC
from
saqc.core.translation
import
DmpScheme
,
FloatScheme
,
PositionalScheme
,
SimpleScheme
from
saqc.parsing.reader
import
fromConfig
from
saqc.version
import
__version__
from
.
import
_version
__version__
=
_version
.
get_versions
()[
"
version
"
]
This diff is collapsed.
Click to expand it.
saqc/_version.py
+
1
−
1
View file @
e85c2cf4
...
...
@@ -52,7 +52,7 @@ def get_config() -> VersioneerConfig:
# _version.py
cfg
=
VersioneerConfig
()
cfg
.
VCS
=
"
git
"
cfg
.
style
=
"
pep440
"
cfg
.
style
=
"
pep440
-pre
"
cfg
.
tag_prefix
=
"
v
"
cfg
.
parentdir_prefix
=
"
saqc-
"
cfg
.
versionfile_source
=
"
saqc/_version.py
"
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
15
−
9
View file @
e85c2cf4
...
...
@@ -16,24 +16,30 @@ name = os.environ.get("PYPI_PKG_NAME", "saqc")
if
not
name
:
raise
ValueError
(
"
Environment variable PYPI_PKG_NAME must not be an empty string.
"
)
versions
=
versioneer
.
get_versions
()
print
(
f
"
Building saqc:
{
versions
}
"
)
if
versions
[
"
dirty
"
]:
v
=
versioneer
.
get_versions
()
print
(
f
"
saqc version:
{
v
}
"
)
if
v
[
"
error
"
]:
raise
RuntimeError
(
v
[
"
error
"
])
if
v
[
"
dirty
"
]:
raise
ValueError
(
f
"
The repository you build is dirty. Please commit changes first
{
v
ersions
=
}
.
"
f
"
The repository you build is dirty. Please commit changes first
{
v
}
.
"
)
version
=
versions
[
"
version
"
]
if
"
post
"
in
version
and
name
==
"
saqc
"
:
if
"
dev
"
in
v
[
"
version
"
]
and
name
==
"
saqc
"
:
raise
ValueError
(
f
"
An saqc release must have version in the format X.Y.Z,
"
f
"
which requires a git tag on the same commit. Please set
"
f
"
a tag, then build again.
{
v
ersions
=
}
"
f
"
a tag, then build again.
{
v
}
"
)
setup
(
name
=
name
,
version
=
version
,
cmdclass
=
versioneer
.
get_cmdclass
(),
version
=
version
eer
.
get_version
(),
# keep this line as it is
cmdclass
=
versioneer
.
get_cmdclass
(),
# keep this line as it is
author
=
"
Bert Palm, David Schaefer, Florian Gransee, Peter Luenenschloss
"
,
author_email
=
"
david.schaefer@ufz.de
"
,
description
=
"
A timeseries data quality control and processing tool/framework
"
,
...
...
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