Skip to content
Snippets Groups Projects
Commit 4faf79b2 authored by EorlBruder's avatar EorlBruder
Browse files

Added publish-pipeline

Fixes #20
parent 309aa8bb
Branches
Tags
1 merge request!18Added publish-pipeline
stages: stages:
- test - test
- build - build
- publish
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
...@@ -61,3 +62,37 @@ build-windows: ...@@ -61,3 +62,37 @@ build-windows:
tags: tags:
- docker-build - docker-build
build-pypi:
stage: build
image: python:3
before_script:
- apt-get update
- pip install .[build-pypi]
script:
- python3 setup.py sdist bdist_wheel
tags:
- docker
artifacts:
paths:
- dist/*
expire_in: 1 week
only:
- tags@funkwhale/cli
publish:
stage: publish
image: python:3
before_script:
- apt-get update
- pip install .[publish]
script:
- twine upload dist/*
tags:
- docker
dependencies:
- build-linux
- build-windows
only:
- tags@funkwhale/cli
...@@ -2,7 +2,13 @@ A command line interface to interact with Funkwhale servers. ...@@ -2,7 +2,13 @@ A command line interface to interact with Funkwhale servers.
# Installation # Installation
We provide some prebuilt binaries for Windows and Linux. This package can be installed via pip:
```
pip install funkwhale-cli
```
We also provide some prebuilt binaries for Windows and Linux.
On Linux: On Linux:
......
[metadata] [metadata]
name = funkwhale-cli name = funkwhale-cli
description = "A command line interface to interact with Funkwhale servers" description = "A command line interface to interact with Funkwhale servers"
version = 0.1.dev0 version = 0.1.2.dev0
author = The Funkwhale Collective author = The Funkwhale Collective
author_email = contact@funkwhale.audio author_email = contact@funkwhale.audio
url = https://dev.funkwhale.audio/funkwhale/cli url = https://dev.funkwhale.audio/funkwhale/cli
long_description = file: README.md long_description = file: README.md
long_description_content_type = text/markdown
license = AGPL3 license = AGPL3
keywords = cli keywords = cli
classifiers = classifiers =
Development Status :: 3 - Alpha Development Status :: 3 - Alpha
License :: OSI Approved :: AGPL Intended Audience :: End Users/Desktop
License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Natural Language :: English Natural Language :: English
Operating System :: MacOS :: MacOS X
Operating System :: POSIX
Operating System :: POSIX :: BSD
Operating System :: POSIX :: Linux
Operating System :: Microsoft :: Windows
Programming Language :: Python
Programming Language :: Python :: 3 Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
[options] [options]
zip_safe = True zip_safe = True
include_package_data = True include_package_data = True
packages = find: packages = find:
python_requires = >=3.6
install_requires = install_requires =
aiofiles~=0.7.0 aiofiles~=0.7.0
aiohttp~=3.7.4 aiohttp~=3.7.4
...@@ -51,7 +64,12 @@ test = ...@@ -51,7 +64,12 @@ test =
build = build =
pyinstaller~=4.3 pyinstaller~=4.3
build-pypi =
setuptools~=56.0.0
wheel~=0.36.2
publish =
twine~=3.4.1
[options.packages.find] [options.packages.find]
exclude = exclude =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment