Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
funkwhale
mopidy
Commits
e1726995
Commit
e1726995
authored
Aug 20, 2020
by
Agate
💬
Browse files
Merge branch 'issue-12' into 'master'
Create Pipeline for packaging See merge request
!8
parents
29490324
e329030f
Pipeline
#11894
passed with stages
in 3 minutes and 52 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e1726995
stages
:
-
test
-
build
-
publish
test
:
stage
:
test
...
...
@@ -12,3 +14,39 @@ test:
-
pytest
tags
:
-
docker
build
:
stage
:
build
image
:
python:3
before_script
:
-
apt-get update
-
apt-get install libgirepository1.0-dev -y
-
pip install .[build]
script
:
-
python3 setup.py sdist bdist_wheel
tags
:
-
docker
artifacts
:
paths
:
-
dist/*
expire_in
:
1 week
only
:
-
tags@funkwhale/mopidy
-
master@funkwhale/mopidy
publish
:
stage
:
publish
image
:
python:3
before_script
:
-
apt-get update
-
apt-get install libgirepository1.0-dev -y
-
pip install .[publish]
script
:
-
twine upload dist/*
tags
:
-
docker
dependencies
:
-
build
only
:
-
tags@funkwhale/mopidy
-
master@funkwhale/mopidy
setup.cfg
View file @
e1726995
[metadata]
name = mopidy_funkwhale
description = "A backend extension for mopidy to stream music from a Funkwhale server"
version = 0.1.0
author = Eliot Berriot
author = The Funkwhale Collective
author_email = contact+funkwhale@eliotberriot.com
url = https://dev.funkwhale.audio/funkwhale/mopidy
long_description = file: README.rst
...
...
@@ -40,6 +39,13 @@ dev =
ipython
ipdb
build =
setuptools
wheel
publish =
twine
[options.packages.find]
exclude =
tests
...
...
setup.py
View file @
e1726995
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import
codecs
import
os
from
setuptools
import
setup
setup
()
def
read
(
rel_path
):
here
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
with
codecs
.
open
(
os
.
path
.
join
(
here
,
rel_path
),
'r'
)
as
fp
:
return
fp
.
read
()
def
get_version
():
tag
=
os
.
getenv
(
'CI_COMMIT_TAG'
,
None
)
if
tag
:
return
tag
for
line
in
read
(
"mopidy_funkwhale/__init__.py"
).
splitlines
():
if
line
.
startswith
(
'__version__'
):
delim
=
'"'
if
'"'
in
line
else
"'"
version
=
line
.
split
(
delim
)[
1
]
iid
=
os
.
getenv
(
'CI_PIPELINE_IID'
,
0
)
return
"{}.dev{}"
.
format
(
version
,
iid
)
raise
RuntimeError
(
"Unable to find version string."
)
setup
(
version
=
get_version
(),
)
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment