Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Sublime Music
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
117
Issues
117
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
2
Merge Requests
2
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sublime Music
Sublime Music
Commits
abf37207
Verified
Commit
abf37207
authored
Oct 13, 2020
by
Sumner Evans
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
development works in NixOS
parent
aa20eaad
Pipeline
#202241765
passed with stages
in 9 minutes and 57 seconds
Changes
8
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
153 additions
and
126 deletions
+153
-126
.envrc
.envrc
+12
-2
.gitignore
.gitignore
+1
-0
.vim/coc-settings.json
.vim/coc-settings.json
+0
-1
poetry.lock
poetry.lock
+103
-118
shell.nix
shell.nix
+35
-0
sublime_music/__main__.py
sublime_music/__main__.py
+1
-1
sublime_music/adapters/subsonic/adapter.py
sublime_music/adapters/subsonic/adapter.py
+0
-3
sublime_music/players/chromecast.py
sublime_music/players/chromecast.py
+1
-1
No files found.
.envrc
View file @
abf37207
# Run poetry install and activate the virtualenv
poetry install -E chromecast -E keyring -E server
use nix
# Run poetry install if there's not a virtualenv already.
if [[ ! -d .venv ]]; then
echo "No virtualenv found, installing dependencies using Poetry..."
poetry install -E chromecast -E keyring -E server
fi
# Activate the virtualenv
source .venv/bin/activate
watch_file pyproject.toml
watch_file poetry.lock
watch_file setup.py
watch_file shell.nix
unset PS1
.gitignore
View file @
abf37207
.direnv
flatpak/flatpak_build_dir/
flatpak/sublime-music.flatpak
flatpak/repo
...
...
.vim/coc-settings.json
View file @
abf37207
{
"python.jediEnabled"
:
false
,
"python.analysis.openFilesOnly"
:
false
,
"python.linting.pylintEnabled"
:
false
,
"python.linting.flake8Enabled"
:
true
,
...
...
poetry.lock
View file @
abf37207
This diff is collapsed.
Click to expand it.
shell.nix
0 → 100644
View file @
abf37207
{
pkgs
?
import
<
nixpkgs
>
{}
}:
with
pkgs
;
pkgs
.
mkShell
{
nativeBuildInputs
=
[
gobject-introspection
python3Packages
.
setuptools
wrapGAppsHook
];
buildInputs
=
[
flatpak
flatpak-builder
gcc
git
glib
gobjectIntrospection
gtk3
libnotify
pango
pkgconfig
];
propagatedBuildInputs
=
with
pkgs
;
[
cairo
mpv
poetry
python38
rnix-lsp
];
shellHook
=
''
export LD_LIBRARY_PATH=
${
pkgs
.
mpv
}
/lib
export XDG_DATA_DIRS="$GSETTINGS_SCHEMA_PATH:
${
pkgs
.
arc-theme
}
/share:
${
pkgs
.
arc-icon-theme
}
/share"
export SOURCE_DATE_EPOCH=315532800
''
;
}
sublime_music/__main__.py
View file @
abf37207
...
...
@@ -39,7 +39,7 @@ def main():
min_log_level
=
getattr
(
logging
,
args
.
loglevel
.
upper
(),
None
)
if
not
isinstance
(
min_log_level
,
int
):
logging
.
error
(
f
"Invalid log level:
{
args
.
loglevel
.
upper
()
}
."
)
print
(
f
"Invalid log level:
{
args
.
loglevel
.
upper
()
}
."
)
# noqa: T001
min_log_level
=
logging
.
WARNING
logging
.
basicConfig
(
...
...
sublime_music/adapters/subsonic/adapter.py
View file @
abf37207
...
...
@@ -52,9 +52,6 @@ try:
except
Exception
:
# I really don't care what kind of exception it is, all that matters is the
# import failed for some reason.
logging
.
warning
(
"Unable to import NM from GLib. Detection of SSID will be disabled."
)
networkmanager_imported
=
False
REQUEST_DELAY
:
Optional
[
Tuple
[
float
,
float
]]
=
None
...
...
sublime_music/players/chromecast.py
View file @
abf37207
...
...
@@ -116,7 +116,7 @@ class ChromecastPlayer(Player):
return
if
self
.
stop_get_chromecasts
is
not
None
:
self
.
stop_get_chromecasts
()
self
.
stop_get_chromecasts
.
cancel
()
for
id_
,
chromecast
in
self
.
_chromecasts
.
items
():
self
.
player_device_change_callback
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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