Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Quid
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
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
Schlüsselstellen
Quid
Commits
ac8f93c5
Commit
ac8f93c5
authored
3 years ago
by
Frederik Arnold
Browse files
Options
Downloads
Plain Diff
Merge branch 'release/v.1.3.3'
parents
e35d39d2
f5ce6498
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#37376
passed
3 years ago
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+20
-20
20 additions, 20 deletions
.gitlab-ci.yml
setup.cfg
+1
-1
1 addition, 1 deletion
setup.cfg
zenodo.py
+7
-0
7 additions, 0 deletions
zenodo.py
with
28 additions
and
21 deletions
.gitlab-ci.yml
+
20
−
20
View file @
ac8f93c5
...
...
@@ -45,28 +45,28 @@ badge:
only
:
-
tags
#
upload:
#
stage: upload
#
script:
#
- pip install twine
#upload:
# stage: upload
# script:
# - pip install twine
# - cat $PYPIRC > /tmp/.pypirc
#
- python -m pip install --upgrade build
#
- python -m build
#
- python -m twine upload --repository pypi dist/* --config-file /tmp/.pypirc
#
only:
#
- tags
# - python -m pip install --upgrade build
# - python -m build
# - python -m twine upload --repository pypi dist/* --config-file /tmp/.pypirc
# only:
# - tags
release_job
:
stage
:
release
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
script
:
-
echo $CI_COMMIT_TAG
release
:
tag_name
:
$CI_COMMIT_TAG
name
:
'
Lotte
$CI_COMMIT_TAG'
description
:
'
Release
$CI_COMMIT_TAG'
only
:
-
tags
#
release_job:
#
stage: release
#
image: registry.gitlab.com/gitlab-org/release-cli:latest
#
script:
#
- echo $CI_COMMIT_TAG
#
release:
#
tag_name: $CI_COMMIT_TAG
#
name: 'Lotte $CI_COMMIT_TAG'
#
description: 'Release $CI_COMMIT_TAG'
#
only:
#
- tags
zenodo_upload
:
stage
:
zenodo
...
...
This diff is collapsed.
Click to expand it.
setup.cfg
+
1
−
1
View file @
ac8f93c5
[metadata]
# replace
with your username:
name
= Lotte
version
= 1.3.
2
version
= 1.3.
3
author
= Frederik Arnold
author_email
= frederik.arnold@hu-berlin.de
description
= Lotte is a tool for quotation detection in texts and can deal with common properties of quotations, for example, ellipses or inaccurate quotations.
...
...
This diff is collapsed.
Click to expand it.
zenodo.py
+
7
−
0
View file @
ac8f93c5
...
...
@@ -41,6 +41,12 @@ def __upload_file(draft_url, access_token, filename, file_path):
response
.
raise_for_status
()
def
__publish
(
draft_url
,
access_token
):
request_url
=
f
'
{
draft_url
}
/actions/publish
'
response
=
requests
.
post
(
request_url
,
params
=
{
'
access_token
'
:
access_token
})
response
.
raise_for_status
()
def
main
():
argument_parser
=
ArgumentParser
()
...
...
@@ -83,6 +89,7 @@ def main():
filename
=
f
'
{
title
}
-v.
{
version
}
.zip
'
__upload_file
(
draft_url
,
access_token
,
filename
,
file_path
)
# __publish(draft_url, access_token)
if
__name__
==
'
__main__
'
:
...
...
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