Skip to content
Snippets Groups Projects
Commit 309aa8bb authored by Georg Krause's avatar Georg Krause
Browse files

Merge branch 'fix-9' into 'master'

Clean up and pin dependencies

See merge request !16
parents 38592156 345c45f4
No related branches found
No related tags found
1 merge request!16Clean up and pin dependencies
Checking pipeline status
...@@ -13,7 +13,7 @@ test: ...@@ -13,7 +13,7 @@ test:
stage: test stage: test
image: python:3.6 image: python:3.6
before_script: before_script:
- pip install .[dev] - pip install .[test]
script: script:
- pytest - pytest
tags: tags:
...@@ -23,7 +23,7 @@ build-linux: ...@@ -23,7 +23,7 @@ build-linux:
stage: build stage: build
image: python:3.8 image: python:3.8
before_script: before_script:
- pip install .[dev] - pip install .[build]
- pip install --upgrade setuptools - pip install --upgrade setuptools
script: script:
- pyinstaller --clean -y cli.spec --distpath . - pyinstaller --clean -y cli.spec --distpath .
...@@ -45,18 +45,14 @@ build-windows: ...@@ -45,18 +45,14 @@ build-windows:
# so we cannot use the regular docker executor # so we cannot use the regular docker executor
stage: build stage: build
image: docker:stable image: docker:stable
tags:
- docker-build
variables:
# CI_DEBUG_TRACE: "true"
script: script:
- docker run --rm -v "$(pwd):/src/" cdrx/pyinstaller-windows:python3 "pip install -r requirements-dev.txt && pyinstaller --clean -y cli.spec --distpath ." - docker run --rm -v "$(pwd):/src/" cdrx/pyinstaller-windows:python3 "pip install .[build] && pyinstaller --clean -y cli.spec --distpath ."
- docker run --rm -v "$(pwd):/src/" cdrx/pyinstaller-windows:python3 "echo 'Testing the generated CLI works…' && (wine ./funkwhale.exe --help | grep uploads) && echo 'funkwhale CLI working \o/'" - docker run --rm -v "$(pwd):/src/" cdrx/pyinstaller-windows:python3 "echo 'Testing the generated CLI works…' && (wine ./funkwhale.exe --help | grep uploads) && echo 'funkwhale CLI working \o/'"
after_script: after_script:
- docker run --rm -v "$(pwd):/src/" python:3.8 bash -c "rm -rf /src/build && py3clean /src/" - docker run --rm -v "$(pwd):/src/" python:3.8 bash -c "rm -rf /src/build && py3clean /src/"
artifacts: artifacts:
name: "linux_${CI_COMMIT_REF_NAME}" name: "windows_${CI_COMMIT_REF_NAME}"
paths: paths:
- funkwhale.exe - funkwhale.exe
only: only:
......
...@@ -50,7 +50,7 @@ funkwhale tracks download -d ~/Music -t "{artist}/{album} ({year})/{title}.{exte ...@@ -50,7 +50,7 @@ funkwhale tracks download -d ~/Music -t "{artist}/{album} ({year})/{title}.{exte
# Download all tracks matching a search, in ogg format # Download all tracks matching a search, in ogg format
funkwhale tracks ls jekk --ids --limit 0 | xargs funkwhale tracks download -f ogg -d ~/Music funkwhale tracks ls jekk --ids --limit 0 | xargs funkwhale tracks download -f ogg -d ~/Music
# Download all favorited tracks # Download all favorite tracks
funkwhale tracks ls --filter "favorites=true" --ids --limit 0 | xargs funkwhale tracks download -d ~/Music funkwhale tracks ls --filter "favorites=true" --ids --limit 0 | xargs funkwhale tracks download -d ~/Music
# Download a track and pipe the output directly to VLC # Download a track and pipe the output directly to VLC
...@@ -77,9 +77,9 @@ This cli requires python 3.6 or greater: ...@@ -77,9 +77,9 @@ This cli requires python 3.6 or greater:
# Build the binary # Build the binary
You can build the binarie for you platform using the following commands: You can build the binary for you platform using the following commands:
pip install .[dev] pip install .[build]
pyinstaller cli.spec pyinstaller cli.spec
This will output a binary in `./dist/funkwhale`. This will output a binary in `./dist/funkwhale`.
...@@ -5,7 +5,7 @@ block_cipher = None ...@@ -5,7 +5,7 @@ block_cipher = None
a = Analysis( a = Analysis(
["funkwhale_cli/__main__.py"], ["funkwhale_cli/__main__.py"],
pathex=["/home/eliotberriot/projects/funkwhale/cli"], pathex=[],
binaries=[], binaries=[],
datas=[], datas=[],
hiddenimports=[], hiddenimports=[],
......
aiofiles
aiohttp
appdirs
click~=7.1.2
click-log
keyring
marshmallow
python-dotenv
semver
tabulate
tqdm
pathvalidate
aioresponses
asynctest
ipdb
pytest
pytest-mock
pytest-env
pyinstaller
setuptools>49
[metadata] [metadata]
name = funkwhale-cli name = funkwhale-cli
description = "XXX" description = "A command line interface to interact with Funkwhale servers"
version = 0.1.dev0 version = 0.1.dev0
author = Eliot Berriot author = The Funkwhale Collective
author_email = contact@eliotberriot.com 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
license = AGPL3 license = AGPL3
...@@ -12,6 +12,7 @@ classifiers = ...@@ -12,6 +12,7 @@ classifiers =
Development Status :: 3 - Alpha Development Status :: 3 - Alpha
License :: OSI Approved :: AGPL License :: OSI Approved :: AGPL
Natural Language :: English Natural Language :: English
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.6
[options] [options]
...@@ -19,18 +20,18 @@ zip_safe = True ...@@ -19,18 +20,18 @@ zip_safe = True
include_package_data = True include_package_data = True
packages = find: packages = find:
install_requires = install_requires =
aiofiles aiofiles~=0.7.0
aiohttp aiohttp~=3.7.4
appdirs appdirs~=1.4.4
click~=7.1.2 click~=7.1.2
click-log click-log~=0.3.2
keyring keyring~=23.0.1
marshmallow==2.19.2 marshmallow~=2.19.2
python-dotenv python-dotenv~=0.18.0
semver semver~=2.13.0
tabulate tabulate~=0.8.9
tqdm tqdm~=4.61.1
pathvalidate pathvalidate~=2.4.1
[options.entry_points] [options.entry_points]
console_scripts = console_scripts =
...@@ -38,13 +39,18 @@ console_scripts = ...@@ -38,13 +39,18 @@ console_scripts =
[options.extras_require] [options.extras_require]
dev = dev =
aioresponses ipdb~=0.13.9
asynctest
ipdb test =
pytest pytest~=6.2.4
pytest-mock pytest-mock~=3.6.1
pytest-env pytest-env~=0.6.2
pyinstaller aioresponses~=0.7.2
asynctest~=0.13.0
build =
pyinstaller~=4.3
[options.packages.find] [options.packages.find]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment