Codebase list mopidy-beets / upstream/4.0.1+git20210102.1.d5b1b91
Import upstream version 4.0.1+git20210102.1.d5b1b91 Debian Janitor 1 year, 6 months ago
11 changed file(s) with 272 addition(s) and 292 deletion(s). Raw diff Collapse all Expand all
+0
-57
.circleci/config.yml less more
0 version: 2.1
1
2 orbs:
3 codecov: codecov/codecov@1.0.5
4
5 workflows:
6 version: 2
7 test:
8 jobs:
9 - py39
10 - py38
11 - py37
12 - black
13 - check-manifest
14 - flake8
15
16 jobs:
17 py39: &test-template
18 docker:
19 - image: mopidy/ci-python:3.9
20 steps:
21 - checkout
22 - restore_cache:
23 name: Restoring tox cache
24 key: tox-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.cfg" }}
25 - run:
26 name: Run tests
27 command: |
28 tox -e $CIRCLE_JOB -- \
29 --junit-xml=test-results/pytest/results.xml \
30 --cov-report=xml
31 - save_cache:
32 name: Saving tox cache
33 key: tox-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.cfg" }}
34 paths:
35 - ./.tox
36 - ~/.cache/pip
37 - codecov/upload:
38 file: coverage.xml
39 - store_test_results:
40 path: test-results
41
42 py38:
43 <<: *test-template
44 docker:
45 - image: mopidy/ci-python:3.8
46
47 py37:
48 <<: *test-template
49 docker:
50 - image: mopidy/ci-python:3.7
51
52 black: *test-template
53
54 check-manifest: *test-template
55
56 flake8: *test-template
0 name: CI
1
2 on: [push, pull_request]
3
4 jobs:
5 main:
6 strategy:
7 fail-fast: false
8 matrix:
9 include:
10 - name: "Test: Python 3.7"
11 python: "3.7"
12 tox: py37
13 - name: "Test: Python 3.8"
14 python: "3.8"
15 tox: py38
16 - name: "Test: Python 3.9"
17 python: "3.9"
18 tox: py39
19 coverage: true
20 - name: "Lint: check-manifest"
21 python: "3.9"
22 tox: check-manifest
23 - name: "Lint: flake8"
24 python: "3.9"
25 tox: flake8
26
27 name: ${{ matrix.name }}
28 runs-on: ubuntu-20.04
29 container: ghcr.io/mopidy/ci:latest
30
31 steps:
32 - uses: actions/checkout@v2
33 - uses: actions/setup-python@v2
34 with:
35 python-version: ${{ matrix.python }}
36 - name: Fix home dir permissions to enable pip caching
37 run: chown -R root /github/home
38 - name: Cache pip
39 uses: actions/cache@v2
40 with:
41 path: ~/.cache/pip
42 key: ${{ runner.os }}-${{ matrix.python }}-${{ matrix.tox }}-pip-${{ hashFiles('setup.cfg') }}-${{ hashFiles('tox.ini') }}
43 restore-keys: |
44 ${{ runner.os }}-${{ matrix.python }}-${{ matrix.tox }}-pip-
45 - run: python -m pip install pygobject tox
46 - run: python -m tox -e ${{ matrix.tox }}
47 if: ${{ ! matrix.coverage }}
48 - run: python -m tox -e ${{ matrix.tox }} -- --cov-report=xml
49 if: ${{ matrix.coverage }}
50 - uses: codecov/codecov-action@v1
51 if: ${{ matrix.coverage }}
66 include pyproject.toml
77 include tox.ini
88
9 recursive-include .circleci *
109 recursive-include .github *
1110
1211 include mopidy_*/ext.conf
55 Author: Lars Kruse
66 Author-email: devel@sumpfralle.de
77 License: MIT
8 Description: ************
9 Mopidy-Beets
10 ************
11
12 .. image:: https://img.shields.io/pypi/v/Mopidy-Beets
13 :target: https://pypi.org/project/Mopidy-Beets/
14 :alt: Latest PyPI version
15
16 .. image:: https://img.shields.io/circleci/build/gh/mopidy/mopidy-beets
17 :target: https://circleci.com/gh/mopidy/mopidy-beets
18 :alt: CircleCI build status
19
20 .. image:: https://img.shields.io/codecov/c/gh/mopidy/mopidy-beets
21 :target: https://codecov.io/gh/mopidy/mopidy-beets
22 :alt: Test coverage
23
24 `Mopidy <https://mopidy.com/>`_ extension for browsing, searching and
25 playing music from `Beets <https://beets.io/>`_ via Beets' web extension.
26
27
28 Installation
29 ============
30
31 Install by running::
32
33 sudo python3 -m pip install Mopidy-Beets
34
35 See https://mopidy.com/ext/beets/ for alternative installation methods.
36
37
38 Configuration
39 =============
40
41 #. Setup the `Beets web plugin
42 <https://beets.readthedocs.org/en/latest/plugins/web.html>`_.
43
44 #. Tell Mopidy where to find the Beets web interface by adding the following to
45 your ``mopidy.conf``::
46
47 [beets]
48 hostname = 127.0.0.1
49 port = 8337
50
51 #. Restart Mopidy.
52
53 #. The Beets library is now accessible in the "browser" section of your Mopidy
54 client. Additionally searches in Mopidy return results from your Beets
55 library.
56
57 Proxy configuration for OGG files (optional)
58 --------------------------------------------
59
60 You may want to configure an http proxy server in front of your Beets plugin
61 (not mopidy). Otherwise you could have problems with playing OGG files and
62 other formats that require seeking (in technical terms: support for http
63 "Range" requests is required for these files).
64
65 The following Nginx configuration snippet is sufficient::
66
67 server {
68 listen 127.0.0.1:8338;
69 root /usr/share/beets/beetsplug/web;
70 server_name beets.local;
71 location / {
72 proxy_pass http://localhost:8337;
73 # this statement forces Nginx to emulate "Range" responses
74 proxy_force_ranges on;
75 }
76 }
77
78 Now you should change the mopidy configuration accordingly to point to the
79 Nginx port above instead of the Beets port. Afterwards mopidy will be able to
80 play file formats that require seeking.
81
82
83 Usage
84 =====
85
86 #. Run ``beet web`` to start the Beets web interface.
87
88 #. Start Mopidy and access your Beets library via any Mopidy client:
89
90 * Browse your collection by album
91
92 * Search for tracks or albums
93
94 * Let the music play!
95
96
97 Project resources
98 =================
99
100 - `Source code <https://github.com/mopidy/mopidy-beets>`_
101 - `Issue tracker <https://github.com/mopidy/mopidy-beets/issues>`_
102 - `Changelog <https://github.com/mopidy/mopidy-beets/releases>`_
103
104
105 Credits
106 =======
107
108 - Original author: `Janez Troha <https://github.com/dz0ny>`_
109 - Current maintainer: `Lars Kruse <devel@sumpfralle.de>`_
110 - `Contributors <https://github.com/mopidy/mopidy-beets/graphs/contributors>`_
111
112 Platform: UNKNOWN
1138 Classifier: Environment :: No Input/Output (Daemon)
1149 Classifier: Intended Audience :: End Users/Desktop
11510 Classifier: License :: OSI Approved :: MIT License
12015 Classifier: Programming Language :: Python :: 3.9
12116 Classifier: Topic :: Multimedia :: Sound/Audio :: Players
12217 Requires-Python: >=3.7
18 Provides-Extra: dev
12319 Provides-Extra: lint
124 Provides-Extra: release
12520 Provides-Extra: test
126 Provides-Extra: dev
21 License-File: LICENSE
22
23 ************
24 Mopidy-Beets
25 ************
26
27 .. image:: https://img.shields.io/pypi/v/Mopidy-Beets
28 :target: https://pypi.org/project/Mopidy-Beets/
29 :alt: Latest PyPI version
30
31 .. image:: https://img.shields.io/github/workflow/status/mopidy/mopidy-beets/CI
32 :target: https://github.com/mopidy/mopidy-beets/actions
33 :alt: CI build status
34
35 .. image:: https://img.shields.io/codecov/c/gh/mopidy/mopidy-beets
36 :target: https://codecov.io/gh/mopidy/mopidy-beets
37 :alt: Test coverage
38
39 `Mopidy <https://mopidy.com/>`_ extension for browsing, searching and
40 playing music from `Beets <https://beets.io/>`_ via Beets' web extension.
41
42
43 Installation
44 ============
45
46 Install by running::
47
48 sudo python3 -m pip install Mopidy-Beets
49
50 See https://mopidy.com/ext/beets/ for alternative installation methods.
51
52
53 Configuration
54 =============
55
56 #. Setup the `Beets web plugin
57 <https://beets.readthedocs.org/en/latest/plugins/web.html>`_.
58
59 #. Tell Mopidy where to find the Beets web interface by adding the following to
60 your ``mopidy.conf``::
61
62 [beets]
63 hostname = 127.0.0.1
64 port = 8337
65
66 #. Restart Mopidy.
67
68 #. The Beets library is now accessible in the "browser" section of your Mopidy
69 client. Additionally searches in Mopidy return results from your Beets
70 library.
71
72 Proxy configuration for OGG files (optional)
73 --------------------------------------------
74
75 You may want to configure an http proxy server in front of your Beets plugin
76 (not mopidy). Otherwise you could have problems with playing OGG files and
77 other formats that require seeking (in technical terms: support for http
78 "Range" requests is required for these files).
79
80 The following Nginx configuration snippet is sufficient::
81
82 server {
83 listen 127.0.0.1:8338;
84 root /usr/share/beets/beetsplug/web;
85 server_name beets.local;
86 location / {
87 proxy_pass http://localhost:8337;
88 # this statement forces Nginx to emulate "Range" responses
89 proxy_force_ranges on;
90 }
91 }
92
93 Now you should change the mopidy configuration accordingly to point to the
94 Nginx port above instead of the Beets port. Afterwards mopidy will be able to
95 play file formats that require seeking.
96
97
98 Usage
99 =====
100
101 #. Run ``beet web`` to start the Beets web interface.
102
103 #. Start Mopidy and access your Beets library via any Mopidy client:
104
105 * Browse your collection by album
106
107 * Search for tracks or albums
108
109 * Let the music play!
110
111
112 Project resources
113 =================
114
115 - `Source code <https://github.com/mopidy/mopidy-beets>`_
116 - `Issue tracker <https://github.com/mopidy/mopidy-beets/issues>`_
117 - `Changelog <https://github.com/mopidy/mopidy-beets/releases>`_
118
119
120 Credits
121 =======
122
123 - Original author: `Janez Troha <https://github.com/dz0ny>`_
124 - Current maintainer: `Lars Kruse <devel@sumpfralle.de>`_
125 - `Contributors <https://github.com/mopidy/mopidy-beets/graphs/contributors>`_
55 setup.cfg
66 setup.py
77 tox.ini
8 .circleci/config.yml
8 .github/workflows/ci.yml
99 .github/workflows/release.yml
1010 Mopidy_Beets.egg-info/PKG-INFO
1111 Mopidy_Beets.egg-info/SOURCES.txt
00 [mopidy.ext]
11 beets = mopidy_beets:BeetsExtension
2
66 black
77 check-manifest
88 flake8
9 flake8-black
910 flake8-bugbear
1011 flake8-import-order
1112 isort[pyproject]
12 build
13 twine
1413 pytest
1514 pytest-cov
1615
1817 black
1918 check-manifest
2019 flake8
20 flake8-black
2121 flake8-bugbear
2222 flake8-import-order
2323 isort[pyproject]
2424
25 [release]
26 build
27 twine
28
2925 [test]
3026 pytest
3127 pytest-cov
+106
-107
PKG-INFO less more
55 Author: Lars Kruse
66 Author-email: devel@sumpfralle.de
77 License: MIT
8 Description: ************
9 Mopidy-Beets
10 ************
11
12 .. image:: https://img.shields.io/pypi/v/Mopidy-Beets
13 :target: https://pypi.org/project/Mopidy-Beets/
14 :alt: Latest PyPI version
15
16 .. image:: https://img.shields.io/circleci/build/gh/mopidy/mopidy-beets
17 :target: https://circleci.com/gh/mopidy/mopidy-beets
18 :alt: CircleCI build status
19
20 .. image:: https://img.shields.io/codecov/c/gh/mopidy/mopidy-beets
21 :target: https://codecov.io/gh/mopidy/mopidy-beets
22 :alt: Test coverage
23
24 `Mopidy <https://mopidy.com/>`_ extension for browsing, searching and
25 playing music from `Beets <https://beets.io/>`_ via Beets' web extension.
26
27
28 Installation
29 ============
30
31 Install by running::
32
33 sudo python3 -m pip install Mopidy-Beets
34
35 See https://mopidy.com/ext/beets/ for alternative installation methods.
36
37
38 Configuration
39 =============
40
41 #. Setup the `Beets web plugin
42 <https://beets.readthedocs.org/en/latest/plugins/web.html>`_.
43
44 #. Tell Mopidy where to find the Beets web interface by adding the following to
45 your ``mopidy.conf``::
46
47 [beets]
48 hostname = 127.0.0.1
49 port = 8337
50
51 #. Restart Mopidy.
52
53 #. The Beets library is now accessible in the "browser" section of your Mopidy
54 client. Additionally searches in Mopidy return results from your Beets
55 library.
56
57 Proxy configuration for OGG files (optional)
58 --------------------------------------------
59
60 You may want to configure an http proxy server in front of your Beets plugin
61 (not mopidy). Otherwise you could have problems with playing OGG files and
62 other formats that require seeking (in technical terms: support for http
63 "Range" requests is required for these files).
64
65 The following Nginx configuration snippet is sufficient::
66
67 server {
68 listen 127.0.0.1:8338;
69 root /usr/share/beets/beetsplug/web;
70 server_name beets.local;
71 location / {
72 proxy_pass http://localhost:8337;
73 # this statement forces Nginx to emulate "Range" responses
74 proxy_force_ranges on;
75 }
76 }
77
78 Now you should change the mopidy configuration accordingly to point to the
79 Nginx port above instead of the Beets port. Afterwards mopidy will be able to
80 play file formats that require seeking.
81
82
83 Usage
84 =====
85
86 #. Run ``beet web`` to start the Beets web interface.
87
88 #. Start Mopidy and access your Beets library via any Mopidy client:
89
90 * Browse your collection by album
91
92 * Search for tracks or albums
93
94 * Let the music play!
95
96
97 Project resources
98 =================
99
100 - `Source code <https://github.com/mopidy/mopidy-beets>`_
101 - `Issue tracker <https://github.com/mopidy/mopidy-beets/issues>`_
102 - `Changelog <https://github.com/mopidy/mopidy-beets/releases>`_
103
104
105 Credits
106 =======
107
108 - Original author: `Janez Troha <https://github.com/dz0ny>`_
109 - Current maintainer: `Lars Kruse <devel@sumpfralle.de>`_
110 - `Contributors <https://github.com/mopidy/mopidy-beets/graphs/contributors>`_
111
112 Platform: UNKNOWN
1138 Classifier: Environment :: No Input/Output (Daemon)
1149 Classifier: Intended Audience :: End Users/Desktop
11510 Classifier: License :: OSI Approved :: MIT License
12015 Classifier: Programming Language :: Python :: 3.9
12116 Classifier: Topic :: Multimedia :: Sound/Audio :: Players
12217 Requires-Python: >=3.7
18 Provides-Extra: dev
12319 Provides-Extra: lint
124 Provides-Extra: release
12520 Provides-Extra: test
126 Provides-Extra: dev
21 License-File: LICENSE
22
23 ************
24 Mopidy-Beets
25 ************
26
27 .. image:: https://img.shields.io/pypi/v/Mopidy-Beets
28 :target: https://pypi.org/project/Mopidy-Beets/
29 :alt: Latest PyPI version
30
31 .. image:: https://img.shields.io/github/workflow/status/mopidy/mopidy-beets/CI
32 :target: https://github.com/mopidy/mopidy-beets/actions
33 :alt: CI build status
34
35 .. image:: https://img.shields.io/codecov/c/gh/mopidy/mopidy-beets
36 :target: https://codecov.io/gh/mopidy/mopidy-beets
37 :alt: Test coverage
38
39 `Mopidy <https://mopidy.com/>`_ extension for browsing, searching and
40 playing music from `Beets <https://beets.io/>`_ via Beets' web extension.
41
42
43 Installation
44 ============
45
46 Install by running::
47
48 sudo python3 -m pip install Mopidy-Beets
49
50 See https://mopidy.com/ext/beets/ for alternative installation methods.
51
52
53 Configuration
54 =============
55
56 #. Setup the `Beets web plugin
57 <https://beets.readthedocs.org/en/latest/plugins/web.html>`_.
58
59 #. Tell Mopidy where to find the Beets web interface by adding the following to
60 your ``mopidy.conf``::
61
62 [beets]
63 hostname = 127.0.0.1
64 port = 8337
65
66 #. Restart Mopidy.
67
68 #. The Beets library is now accessible in the "browser" section of your Mopidy
69 client. Additionally searches in Mopidy return results from your Beets
70 library.
71
72 Proxy configuration for OGG files (optional)
73 --------------------------------------------
74
75 You may want to configure an http proxy server in front of your Beets plugin
76 (not mopidy). Otherwise you could have problems with playing OGG files and
77 other formats that require seeking (in technical terms: support for http
78 "Range" requests is required for these files).
79
80 The following Nginx configuration snippet is sufficient::
81
82 server {
83 listen 127.0.0.1:8338;
84 root /usr/share/beets/beetsplug/web;
85 server_name beets.local;
86 location / {
87 proxy_pass http://localhost:8337;
88 # this statement forces Nginx to emulate "Range" responses
89 proxy_force_ranges on;
90 }
91 }
92
93 Now you should change the mopidy configuration accordingly to point to the
94 Nginx port above instead of the Beets port. Afterwards mopidy will be able to
95 play file formats that require seeking.
96
97
98 Usage
99 =====
100
101 #. Run ``beet web`` to start the Beets web interface.
102
103 #. Start Mopidy and access your Beets library via any Mopidy client:
104
105 * Browse your collection by album
106
107 * Search for tracks or albums
108
109 * Let the music play!
110
111
112 Project resources
113 =================
114
115 - `Source code <https://github.com/mopidy/mopidy-beets>`_
116 - `Issue tracker <https://github.com/mopidy/mopidy-beets/issues>`_
117 - `Changelog <https://github.com/mopidy/mopidy-beets/releases>`_
118
119
120 Credits
121 =======
122
123 - Original author: `Janez Troha <https://github.com/dz0ny>`_
124 - Current maintainer: `Lars Kruse <devel@sumpfralle.de>`_
125 - `Contributors <https://github.com/mopidy/mopidy-beets/graphs/contributors>`_
55 :target: https://pypi.org/project/Mopidy-Beets/
66 :alt: Latest PyPI version
77
8 .. image:: https://img.shields.io/circleci/build/gh/mopidy/mopidy-beets
9 :target: https://circleci.com/gh/mopidy/mopidy-beets
10 :alt: CircleCI build status
8 .. image:: https://img.shields.io/github/workflow/status/mopidy/mopidy-beets/CI
9 :target: https://github.com/mopidy/mopidy-beets/actions
10 :alt: CI build status
1111
1212 .. image:: https://img.shields.io/codecov/c/gh/mopidy/mopidy-beets
1313 :target: https://codecov.io/gh/mopidy/mopidy-beets
3434 black
3535 check-manifest
3636 flake8
37 flake8-black
3738 flake8-bugbear
3839 flake8-import-order
3940 isort[pyproject]
40 release =
41 build
42 twine
4341 test =
4442 pytest
4543 pytest-cov
4644 dev =
4745 %(lint)s
48 %(release)s
4946 %(test)s
5047
5148 [options.packages.find]
00 [tox]
1 envlist = py37, py38, py39, black, check-manifest, flake8
1 envlist = py37, py38, py39, check-manifest, flake8
22
33 [testenv]
44 sitepackages = true
99 --cov=mopidy_beets --cov-report=term-missing \
1010 {posargs}
1111
12 [testenv:black]
13 deps = .[lint]
14 commands = python -m black --check .
15
1612 [testenv:check-manifest]
1713 deps = .[lint]
1814 commands = python -m check_manifest