Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cli
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
cli
Commits
309aa8bb
Commit
309aa8bb
authored
4 years ago
by
Georg Krause
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-9' into 'master'
Clean up and pin dependencies See merge request
!16
parents
38592156
345c45f4
Branches
Branches containing commit
No related tags found
1 merge request
!16
Clean up and pin dependencies
Pipeline
#14793
passed
4 years ago
Stage: test
Stage: build
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+4
-8
4 additions, 8 deletions
.gitlab-ci.yml
README.md
+3
-3
3 additions, 3 deletions
README.md
cli.spec
+1
-1
1 addition, 1 deletion
cli.spec
requirements-dev.txt
+0
-20
0 additions, 20 deletions
requirements-dev.txt
setup.cfg
+27
-21
27 additions, 21 deletions
setup.cfg
with
35 additions
and
53 deletions
.gitlab-ci.yml
+
4
−
8
View file @
309aa8bb
...
...
@@ -13,7 +13,7 @@ test:
stage
:
test
image
:
python:3.6
before_script
:
-
pip install .[
dev
]
-
pip install .[
test
]
script
:
-
pytest
tags
:
...
...
@@ -23,7 +23,7 @@ build-linux:
stage
:
build
image
:
python:3.8
before_script
:
-
pip install .[
dev
]
-
pip install .[
build
]
-
pip install --upgrade setuptools
script
:
-
pyinstaller --clean -y cli.spec --distpath .
...
...
@@ -45,18 +45,14 @@ build-windows:
# so we cannot use the regular docker executor
stage
:
build
image
:
docker:stable
tags
:
-
docker-build
variables
:
# CI_DEBUG_TRACE: "true"
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/'"
after_script
:
-
docker run --rm -v "$(pwd):/src/" python:3.8 bash -c "rm -rf /src/build && py3clean /src/"
artifacts
:
name
:
"
l
in
ux
_${CI_COMMIT_REF_NAME}"
name
:
"
w
in
dows
_${CI_COMMIT_REF_NAME}"
paths
:
-
funkwhale.exe
only
:
...
...
This diff is collapsed.
Click to expand it.
README.md
+
3
−
3
View file @
309aa8bb
...
...
@@ -50,7 +50,7 @@ funkwhale tracks download -d ~/Music -t "{artist}/{album} ({year})/{title}.{exte
# Download all tracks matching a search, in ogg format
funkwhale tracks
ls
jekk
--ids
--limit
0 | xargs funkwhale tracks download
-f
ogg
-d
~/Music
# Download all favorite
d
tracks
# Download all favorite tracks
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
...
...
@@ -77,9 +77,9 @@ This cli requires python 3.6 or greater:
# Build the binary
You can build the binar
ie
for you platform using the following commands:
You can build the binar
y
for you platform using the following commands:
pip install .[
dev
]
pip install .[
build
]
pyinstaller cli.spec
This will output a binary in
`./dist/funkwhale`
.
This diff is collapsed.
Click to expand it.
cli.spec
+
1
−
1
View file @
309aa8bb
...
...
@@ -5,7 +5,7 @@ block_cipher = None
a
=
Analysis
(
[
"
funkwhale_cli/__main__.py
"
],
pathex
=
[
"
/home/eliotberriot/projects/funkwhale/cli
"
],
pathex
=
[],
binaries
=
[],
datas
=
[],
hiddenimports
=
[],
...
...
This diff is collapsed.
Click to expand it.
requirements-dev.txt
deleted
100644 → 0
+
0
−
20
View file @
38592156
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
This diff is collapsed.
Click to expand it.
setup.cfg
+
27
−
21
View file @
309aa8bb
[metadata]
name
=
funkwhale-cli
description
=
"
XXX
"
description
=
"
A command line interface to interact with Funkwhale servers
"
version
=
0.1.dev0
author
=
Eliot Berriot
author_email
=
contact@
eliotberriot.com
author
=
The Funkwhale Collective
author_email
=
contact@
funkwhale.audio
url
=
https://dev.funkwhale.audio/funkwhale/cli
long_description
=
file: README.md
license
=
AGPL3
...
...
@@ -12,6 +12,7 @@ classifiers =
Development
Status
::
3
-
Alpha
License
::
OSI
Approved
::
AGPL
Natural
Language
::
English
Programming
Language
::
Python
::
3
Programming
Language
::
Python
::
3.6
[options]
...
...
@@ -19,18 +20,18 @@ zip_safe = True
include_package_data
=
True
packages
=
find:
install_requires
=
aiofiles
aiohttp
appdirs
aiofiles
~=0.7.0
aiohttp
~=3.7.4
appdirs
~=1.4.4
click~=7.1.2
click-log
keyring
marshmallow
=
=2.19.2
python-dotenv
semver
tabulate
tqdm
pathvalidate
click-log
~=0.3.2
keyring
~=23.0.1
marshmallow
~
=2.19.2
python-dotenv
~=0.18.0
semver
~=2.13.0
tabulate
~=0.8.9
tqdm
~=4.61.1
pathvalidate
~=2.4.1
[options.entry_points]
console_scripts
=
...
...
@@ -38,13 +39,18 @@ console_scripts =
[options.extras_require]
dev
=
aioresponses
asynctest
ipdb
pytest
pytest-mock
pytest-env
pyinstaller
ipdb~=0.13.9
test
=
pytest~=6.2.4
pytest-mock~=3.6.1
pytest-env~=0.6.2
aioresponses~=0.7.2
asynctest~=0.13.0
build
=
pyinstaller~=4.3
[options.packages.find]
...
...
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