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
2b674254
Commit
2b674254
authored
1 year ago
by
Bert Palm
🎇
Browse files
Options
Downloads
Patches
Plain Diff
changed versioneer style
parent
3dee58c3
No related branches found
No related tags found
1 merge request
!716
Rolling release
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
setup.py
+11
-5
11 additions, 5 deletions
setup.py
with
12 additions
and
6 deletions
pyproject.toml
+
1
−
1
View file @
2b674254
...
...
@@ -12,7 +12,7 @@ markers = "slow: marks tests as slow (deselect with '-m \"not slow\"')"
[tool.versioneer]
VCS
=
"git"
style
=
"pep440"
style
=
"pep440
-post
"
versionfile_source
=
"saqc/_version.py"
versionfile_build
=
"saqc/_version.py"
tag_prefix
=
"v"
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
11
−
5
View file @
2b674254
...
...
@@ -14,14 +14,20 @@ with open("README.md", "r") as fh:
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
"
]:
raise
ValueError
(
"
Environment variable PYPI_PKG_NAME must not be an empty string
.
"
f
"
The repository you build is dirty. Please commit changes first
{
versions
=
}
.
"
)
version
=
versioneer
.
get_version
()
if
"
dirty
"
in
version
:
version
=
versions
[
"
version
"
]
if
"
post
"
in
version
and
name
==
"
saqc
"
:
raise
ValueError
(
f
"
The repository you build is dirty. Please commit changes first.
{
version
=
}
"
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.
{
versions
=
}
"
)
setup
(
...
...
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