soco 0.32.1__tar.gz → 0.32.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. {soco-0.32.1/soco.egg-info → soco-0.32.2}/PKG-INFO +3 -3
  2. {soco-0.32.1 → soco-0.32.2}/dev_tools/release.py +10 -32
  3. {soco-0.32.1 → soco-0.32.2}/pyproject.toml +2 -6
  4. soco-0.32.2/setup.py +11 -0
  5. {soco-0.32.1 → soco-0.32.2}/soco/__init__.py +1 -1
  6. {soco-0.32.1 → soco-0.32.2}/soco/core.py +66 -9
  7. {soco-0.32.1 → soco-0.32.2/soco.egg-info}/PKG-INFO +3 -3
  8. {soco-0.32.1 → soco-0.32.2}/tests/test_core.py +75 -1
  9. {soco-0.32.1 → soco-0.32.2}/tests/test_release_script.py +24 -35
  10. soco-0.32.1/setup.py +0 -27
  11. {soco-0.32.1 → soco-0.32.2}/AUTHORS.rst +0 -0
  12. {soco-0.32.1 → soco-0.32.2}/LICENSE.rst +0 -0
  13. {soco-0.32.1 → soco-0.32.2}/MANIFEST.in +0 -0
  14. {soco-0.32.1 → soco-0.32.2}/README.rst +0 -0
  15. {soco-0.32.1 → soco-0.32.2}/dev_tools/analyse_ws.ini +0 -0
  16. {soco-0.32.1 → soco-0.32.2}/dev_tools/analyse_ws.py +0 -0
  17. {soco-0.32.1 → soco-0.32.2}/dev_tools/pychecker.bat +0 -0
  18. {soco-0.32.1 → soco-0.32.2}/dev_tools/pychecker.sh +0 -0
  19. {soco-0.32.1 → soco-0.32.2}/dev_tools/sonosdump.py +0 -0
  20. {soco-0.32.1 → soco-0.32.2}/doc/Makefile +0 -0
  21. {soco-0.32.1 → soco-0.32.2}/doc/_static/imageMapResizer.min.js +0 -0
  22. {soco-0.32.1 → soco-0.32.2}/doc/_templates/page.html +0 -0
  23. {soco-0.32.1 → soco-0.32.2}/doc/advanced/data-structures-mod.rst +0 -0
  24. {soco-0.32.1 → soco-0.32.2}/doc/advanced/events.rst +0 -0
  25. {soco-0.32.1 → soco-0.32.2}/doc/advanced/events_asyncio.rst +0 -0
  26. {soco-0.32.1 → soco-0.32.2}/doc/advanced/events_twisted.rst +0 -0
  27. {soco-0.32.1 → soco-0.32.2}/doc/advanced/index.rst +0 -0
  28. {soco-0.32.1 → soco-0.32.2}/doc/advanced/services.rst +0 -0
  29. {soco-0.32.1 → soco-0.32.2}/doc/advanced/topology.rst +0 -0
  30. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.alarms.rst +0 -0
  31. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.cache.rst +0 -0
  32. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.config.rst +0 -0
  33. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.core.rst +0 -0
  34. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.data_structures.rst +0 -0
  35. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.discovery.rst +0 -0
  36. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.events.rst +0 -0
  37. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.exceptions.rst +0 -0
  38. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.favorites.rst +0 -0
  39. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.groups.rst +0 -0
  40. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.ms_data_structures.rst +0 -0
  41. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.music_library.rst +0 -0
  42. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.music_services.accounts.rst +0 -0
  43. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.music_services.music_service.rst +0 -0
  44. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.music_services.rst +0 -0
  45. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.music_services.token_store.rst +0 -0
  46. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.plugins.example.rst +0 -0
  47. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.plugins.plex.rst +0 -0
  48. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.plugins.rst +0 -0
  49. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.plugins.sharelink.rst +0 -0
  50. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.plugins.spotify.rst +0 -0
  51. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.plugins.wimp.rst +0 -0
  52. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.rst +0 -0
  53. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.services.rst +0 -0
  54. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.snapshot.rst +0 -0
  55. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.soap.rst +0 -0
  56. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.utils.rst +0 -0
  57. {soco-0.32.1 → soco-0.32.2}/doc/api/soco.xml.rst +0 -0
  58. {soco-0.32.1 → soco-0.32.2}/doc/authors.rst +0 -0
  59. {soco-0.32.1 → soco-0.32.2}/doc/conf.py +0 -0
  60. {soco-0.32.1 → soco-0.32.2}/doc/development/index.rst +0 -0
  61. {soco-0.32.1 → soco-0.32.2}/doc/development/release-howto.rst +0 -0
  62. {soco-0.32.1 → soco-0.32.2}/doc/development/unittests.rst +0 -0
  63. {soco-0.32.1 → soco-0.32.2}/doc/examples.rst +0 -0
  64. {soco-0.32.1 → soco-0.32.2}/doc/faq.rst +0 -0
  65. {soco-0.32.1 → soco-0.32.2}/doc/getting_started.rst +0 -0
  66. {soco-0.32.1 → soco-0.32.2}/doc/graphics/data_structures.png +0 -0
  67. {soco-0.32.1 → soco-0.32.2}/doc/graphics/data_structures.svg +0 -0
  68. {soco-0.32.1 → soco-0.32.2}/doc/index.rst +0 -0
  69. {soco-0.32.1 → soco-0.32.2}/doc/make.bat +0 -0
  70. {soco-0.32.1 → soco-0.32.2}/doc/plugins.rst +0 -0
  71. {soco-0.32.1 → soco-0.32.2}/doc/release_notes.rst +0 -0
  72. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.10.rst +0 -0
  73. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.11.1.rst +0 -0
  74. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.11.rst +0 -0
  75. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.12.rst +0 -0
  76. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.13.rst +0 -0
  77. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.14.rst +0 -0
  78. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.15.rst +0 -0
  79. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.16.rst +0 -0
  80. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.17.rst +0 -0
  81. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.18.rst +0 -0
  82. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.19.rst +0 -0
  83. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.20.rst +0 -0
  84. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.21.rst +0 -0
  85. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.22.rst +0 -0
  86. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.23.rst +0 -0
  87. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.24.rst +0 -0
  88. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.25.rst +0 -0
  89. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.26.rst +0 -0
  90. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.27.rst +0 -0
  91. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.28.rst +0 -0
  92. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.29.rst +0 -0
  93. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.30.rst +0 -0
  94. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.31.0.rst +0 -0
  95. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.32.0.rst +0 -0
  96. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.6.rst +0 -0
  97. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.7.rst +0 -0
  98. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.8.rst +0 -0
  99. {soco-0.32.1 → soco-0.32.2}/doc/releases/0.9.rst +0 -0
  100. {soco-0.32.1 → soco-0.32.2}/doc/releases/index.rst +0 -0
  101. {soco-0.32.1 → soco-0.32.2}/doc/requirements.txt +0 -0
  102. {soco-0.32.1 → soco-0.32.2}/doc/tutorial.rst +0 -0
  103. {soco-0.32.1 → soco-0.32.2}/examples/commandline/README.rst +0 -0
  104. {soco-0.32.1 → soco-0.32.2}/examples/commandline/discover.py +0 -0
  105. {soco-0.32.1 → soco-0.32.2}/examples/commandline/screenshot.png +0 -0
  106. {soco-0.32.1 → soco-0.32.2}/examples/commandline/tunein.py +0 -0
  107. {soco-0.32.1 → soco-0.32.2}/examples/events_asyncio_verify_listener_fix.py +0 -0
  108. {soco-0.32.1 → soco-0.32.2}/examples/play_local_files/play_local_files.py +0 -0
  109. {soco-0.32.1 → soco-0.32.2}/examples/plugins/socoplugins.py +0 -0
  110. {soco-0.32.1 → soco-0.32.2}/examples/snapshot/basic_snap.py +0 -0
  111. {soco-0.32.1 → soco-0.32.2}/examples/snapshot/multi_zone_snap.py +0 -0
  112. {soco-0.32.1 → soco-0.32.2}/examples/webapp/.gitignore +0 -0
  113. {soco-0.32.1 → soco-0.32.2}/examples/webapp/README.md +0 -0
  114. {soco-0.32.1 → soco-0.32.2}/examples/webapp/index.py +0 -0
  115. {soco-0.32.1 → soco-0.32.2}/examples/webapp/requirements.txt +0 -0
  116. {soco-0.32.1 → soco-0.32.2}/examples/webapp/screenshot.png +0 -0
  117. {soco-0.32.1 → soco-0.32.2}/examples/webapp/settings.py.example +0 -0
  118. {soco-0.32.1 → soco-0.32.2}/examples/webapp/static/css/bootstrap.min.css +0 -0
  119. {soco-0.32.1 → soco-0.32.2}/examples/webapp/static/css/main.css +0 -0
  120. {soco-0.32.1 → soco-0.32.2}/examples/webapp/static/img/blank.jpg +0 -0
  121. {soco-0.32.1 → soco-0.32.2}/examples/webapp/static/img/glyphicons-halflings-white.png +0 -0
  122. {soco-0.32.1 → soco-0.32.2}/examples/webapp/static/img/glyphicons-halflings.png +0 -0
  123. {soco-0.32.1 → soco-0.32.2}/examples/webapp/static/js/bootstrap.min.js +0 -0
  124. {soco-0.32.1 → soco-0.32.2}/examples/webapp/static/js/jquery.min.js +0 -0
  125. {soco-0.32.1 → soco-0.32.2}/examples/webapp/templates/index.html +0 -0
  126. {soco-0.32.1 → soco-0.32.2}/makefile +0 -0
  127. {soco-0.32.1 → soco-0.32.2}/pylintrc +0 -0
  128. {soco-0.32.1 → soco-0.32.2}/requirements-dev.txt +0 -0
  129. {soco-0.32.1 → soco-0.32.2}/requirements.txt +0 -0
  130. {soco-0.32.1 → soco-0.32.2}/setup.cfg +0 -0
  131. {soco-0.32.1 → soco-0.32.2}/soco/alarms.py +0 -0
  132. {soco-0.32.1 → soco-0.32.2}/soco/cache.py +0 -0
  133. {soco-0.32.1 → soco-0.32.2}/soco/config.py +0 -0
  134. {soco-0.32.1 → soco-0.32.2}/soco/data_structure_quirks.py +0 -0
  135. {soco-0.32.1 → soco-0.32.2}/soco/data_structures.py +0 -0
  136. {soco-0.32.1 → soco-0.32.2}/soco/data_structures_entry.py +0 -0
  137. {soco-0.32.1 → soco-0.32.2}/soco/discovery.py +0 -0
  138. {soco-0.32.1 → soco-0.32.2}/soco/events.py +0 -0
  139. {soco-0.32.1 → soco-0.32.2}/soco/events_asyncio.py +0 -0
  140. {soco-0.32.1 → soco-0.32.2}/soco/events_base.py +0 -0
  141. {soco-0.32.1 → soco-0.32.2}/soco/events_twisted.py +0 -0
  142. {soco-0.32.1 → soco-0.32.2}/soco/exceptions.py +0 -0
  143. {soco-0.32.1 → soco-0.32.2}/soco/favorites.py +0 -0
  144. {soco-0.32.1 → soco-0.32.2}/soco/groups.py +0 -0
  145. {soco-0.32.1 → soco-0.32.2}/soco/ms_data_structures.py +0 -0
  146. {soco-0.32.1 → soco-0.32.2}/soco/music_library.py +0 -0
  147. {soco-0.32.1 → soco-0.32.2}/soco/music_services/__init__.py +0 -0
  148. {soco-0.32.1 → soco-0.32.2}/soco/music_services/accounts.py +0 -0
  149. {soco-0.32.1 → soco-0.32.2}/soco/music_services/data_structures.py +0 -0
  150. {soco-0.32.1 → soco-0.32.2}/soco/music_services/music_service.py +0 -0
  151. {soco-0.32.1 → soco-0.32.2}/soco/music_services/token_store.py +0 -0
  152. {soco-0.32.1 → soco-0.32.2}/soco/plugins/__init__.py +0 -0
  153. {soco-0.32.1 → soco-0.32.2}/soco/plugins/example.py +0 -0
  154. {soco-0.32.1 → soco-0.32.2}/soco/plugins/plex.py +0 -0
  155. {soco-0.32.1 → soco-0.32.2}/soco/plugins/sharelink.py +0 -0
  156. {soco-0.32.1 → soco-0.32.2}/soco/plugins/spotify.py +0 -0
  157. {soco-0.32.1 → soco-0.32.2}/soco/plugins/wimp.py +0 -0
  158. {soco-0.32.1 → soco-0.32.2}/soco/services.py +0 -0
  159. {soco-0.32.1 → soco-0.32.2}/soco/snapshot.py +0 -0
  160. {soco-0.32.1 → soco-0.32.2}/soco/soap.py +0 -0
  161. {soco-0.32.1 → soco-0.32.2}/soco/utils.py +0 -0
  162. {soco-0.32.1 → soco-0.32.2}/soco/xml.py +0 -0
  163. {soco-0.32.1 → soco-0.32.2}/soco/zonegroupstate.py +0 -0
  164. {soco-0.32.1 → soco-0.32.2}/soco.egg-info/SOURCES.txt +0 -0
  165. {soco-0.32.1 → soco-0.32.2}/soco.egg-info/dependency_links.txt +0 -0
  166. {soco-0.32.1 → soco-0.32.2}/soco.egg-info/requires.txt +0 -0
  167. {soco-0.32.1 → soco-0.32.2}/soco.egg-info/top_level.txt +0 -0
  168. {soco-0.32.1 → soco-0.32.2}/tests/conftest.py +0 -0
  169. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/album.json +0 -0
  170. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/album.xml +0 -0
  171. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/album_compilation.xml +0 -0
  172. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/album_favorite.xml +0 -0
  173. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/album_list.xml +0 -0
  174. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/artist.json +0 -0
  175. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/artist.xml +0 -0
  176. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/audio_broadcast.json +0 -0
  177. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/audio_broadcast.xml +0 -0
  178. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/composer.json +0 -0
  179. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/composer.xml +0 -0
  180. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/genre.json +0 -0
  181. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/genre.xml +0 -0
  182. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/playlist.json +0 -0
  183. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/playlist.xml +0 -0
  184. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/playlist_favorite.xml +0 -0
  185. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/radio_show.json +0 -0
  186. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/radio_show.xml +0 -0
  187. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/recent_show.xml +0 -0
  188. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/same_artist.xml +0 -0
  189. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/share.json +0 -0
  190. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/share.xml +0 -0
  191. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/source_linein.xml +0 -0
  192. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/track.json +0 -0
  193. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/track.xml +0 -0
  194. {soco-0.32.1 → soco-0.32.2}/tests/data/data_structures_entry_integration/tracklist.xml +0 -0
  195. {soco-0.32.1 → soco-0.32.2}/tests/data/media_metadata_payloads/bbc.json +0 -0
  196. {soco-0.32.1 → soco-0.32.2}/tests/data/media_metadata_payloads/cifs.json +0 -0
  197. {soco-0.32.1 → soco-0.32.2}/tests/data/media_metadata_payloads/pandora.json +0 -0
  198. {soco-0.32.1 → soco-0.32.2}/tests/data/media_metadata_payloads/sonos_radio.json +0 -0
  199. {soco-0.32.1 → soco-0.32.2}/tests/data/media_metadata_payloads/tunein.json +0 -0
  200. {soco-0.32.1 → soco-0.32.2}/tests/data/media_metadata_payloads/tunein_2.json +0 -0
  201. {soco-0.32.1 → soco-0.32.2}/tests/official_and_extended_didl_classes.txt +0 -0
  202. {soco-0.32.1 → soco-0.32.2}/tests/soco_unittest.py +0 -0
  203. {soco-0.32.1 → soco-0.32.2}/tests/test_alarms.py +0 -0
  204. {soco-0.32.1 → soco-0.32.2}/tests/test_cache.py +0 -0
  205. {soco-0.32.1 → soco-0.32.2}/tests/test_data_structures_entry_integration.py +0 -0
  206. {soco-0.32.1 → soco-0.32.2}/tests/test_discovery.py +0 -0
  207. {soco-0.32.1 → soco-0.32.2}/tests/test_events.py +0 -0
  208. {soco-0.32.1 → soco-0.32.2}/tests/test_events_asyncio.py +0 -0
  209. {soco-0.32.1 → soco-0.32.2}/tests/test_favorites.py +0 -0
  210. {soco-0.32.1 → soco-0.32.2}/tests/test_integration.py +0 -0
  211. {soco-0.32.1 → soco-0.32.2}/tests/test_metadata_parsing.py +0 -0
  212. {soco-0.32.1 → soco-0.32.2}/tests/test_ms_data_structures.py +0 -0
  213. {soco-0.32.1 → soco-0.32.2}/tests/test_music_library.py +0 -0
  214. {soco-0.32.1 → soco-0.32.2}/tests/test_music_service_data_structures.py +0 -0
  215. {soco-0.32.1 → soco-0.32.2}/tests/test_musicservices.py +0 -0
  216. {soco-0.32.1 → soco-0.32.2}/tests/test_new_datastructures.py +0 -0
  217. {soco-0.32.1 → soco-0.32.2}/tests/test_services.py +0 -0
  218. {soco-0.32.1 → soco-0.32.2}/tests/test_sharelink.py +0 -0
  219. {soco-0.32.1 → soco-0.32.2}/tests/test_singleton.py +0 -0
  220. {soco-0.32.1 → soco-0.32.2}/tests/test_snapshot.py +0 -0
  221. {soco-0.32.1 → soco-0.32.2}/tests/test_soap.py +0 -0
  222. {soco-0.32.1 → soco-0.32.2}/tests/test_utils.py +0 -0
  223. {soco-0.32.1 → soco-0.32.2}/tests/test_xml.py +0 -0
  224. {soco-0.32.1 → soco-0.32.2}/tests/test_zonegroupstate.py +0 -0
@@ -1,13 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soco
3
- Version: 0.32.1
3
+ Version: 0.32.2
4
4
  Summary: SoCo (Sonos Controller) is a simple library to control Sonos speakers.
5
5
  Author-email: The SoCo-Team <python-soco@googlegroups.com>
6
- License: MIT License
6
+ License-Expression: MIT
7
7
  Project-URL: Homepage, https://github.com/SoCo/SoCo
8
8
  Classifier: Development Status :: 4 - Beta
9
9
  Classifier: Intended Audience :: Developers
10
- Classifier: License :: OSI Approved :: MIT License
11
10
  Classifier: Operating System :: OS Independent
12
11
  Classifier: Programming Language :: Python :: 3.6
13
12
  Classifier: Programming Language :: Python :: 3.7
@@ -56,6 +55,7 @@ Requires-Dist: twine; extra == "testing"
56
55
  Requires-Dist: build; extra == "testing"
57
56
  Requires-Dist: importlib-metadata<5; python_version == "3.7" and extra == "testing"
58
57
  Dynamic: license-file
58
+ Dynamic: license-expression
59
59
 
60
60
  SoCo
61
61
  ====
@@ -33,7 +33,6 @@ import urllib.request
33
33
  INIT_FILE = "soco/__init__.py"
34
34
  INDEX_FILE = "doc/releases/index.rst"
35
35
  RELEASES_DIR = "doc/releases"
36
- WORKFLOW_FILE = ".github/workflows/soco-check-jobs.yaml"
37
36
  PYPI_URL = "https://pypi.org/pypi/soco/{}/json"
38
37
  GITHUB_REPO = "SoCo/SoCo"
39
38
  ORIGIN_RE = re.compile(r"github\.com[:/]SoCo/SoCo(\.git)?/?$")
@@ -69,12 +68,6 @@ def fixes_branch(version):
69
68
  return f"v{major}.{minor}.fixes"
70
69
 
71
70
 
72
- def previous_fixes_branch(version):
73
- """Return the fixes branch of the previous minor version."""
74
- major, minor, _ = parse_version(version)
75
- return f"v{major}.{minor - 1}.fixes"
76
-
77
-
78
71
  def next_dev_version(version):
79
72
  """Return the development version that follows a main release."""
80
73
  major, minor, _ = parse_version(version)
@@ -120,8 +113,10 @@ def validate_fix(version, tags):
120
113
  )
121
114
 
122
115
 
123
- VERSION_LINE_RE = re.compile(r'^__version__ = "([^"]*)"$', re.MULTILINE)
124
- INDEX_ENTRY_RE = re.compile(r"^ (\d\S*)$", re.MULTILINE)
116
+ # Files are read with their line endings kept, which are CRLF in a Windows
117
+ # checkout, so a line may end in \r.
118
+ VERSION_LINE_RE = re.compile(r'^__version__ = "([^"]*)"(?=\r?$)', re.MULTILINE)
119
+ INDEX_ENTRY_RE = re.compile(r"^ (\d\S*)\r?$", re.MULTILINE)
125
120
 
126
121
 
127
122
  def read_version(init_text):
@@ -152,7 +147,9 @@ def add_release_to_index(index_text, name):
152
147
  first = INDEX_ENTRY_RE.search(index_text)
153
148
  if first is None:
154
149
  raise ReleaseError(f"No release entries found in {INDEX_FILE}")
155
- return index_text[: first.start()] + f" {name}\n" + index_text[first.start() :]
150
+ newline = "\r\n" if "\r\n" in index_text else "\n"
151
+ entry = f" {name}{newline}"
152
+ return index_text[: first.start()] + entry + index_text[first.start() :]
156
153
 
157
154
 
158
155
  def missing_index_entries(index_text, filenames):
@@ -162,20 +159,6 @@ def missing_index_entries(index_text, filenames):
162
159
  ]
163
160
 
164
161
 
165
- def replace_fixes_branch(workflow_text, old, new):
166
- """Return WORKFLOW_FILE text with the old fixes branch replaced.
167
-
168
- If the new branch is already there, the text is returned unchanged, so
169
- the edit can be repeated when a release is resumed.
170
- """
171
- old_quoted, new_quoted = f"'{old}'", f"'{new}'"
172
- if old_quoted in workflow_text:
173
- return workflow_text.replace(old_quoted, new_quoted)
174
- if new_quoted in workflow_text:
175
- return workflow_text
176
- raise ReleaseError(f"{WORKFLOW_FILE} mentions neither {old} nor {new}")
177
-
178
-
179
162
  def release_notes_template(version, released_on):
180
163
  """Return the release notes for a main release released on a date.
181
164
 
@@ -590,7 +573,6 @@ def main_release_steps(repo, version, today=None):
590
573
  major, minor, _ = parse_version(version)
591
574
  tag = f"v{version}"
592
575
  next_dev = next_dev_version(version)
593
- old_branch = previous_fixes_branch(version)
594
576
  new_branch = fixes_branch(version)
595
577
  notes_file = f"{RELEASES_DIR}/{version}.rst"
596
578
  push_args = ("git", "push", "origin", "master")
@@ -645,16 +627,12 @@ def main_release_steps(repo, version, today=None):
645
627
  )
646
628
 
647
629
  def start_next():
648
- workflow = repo.read(WORKFLOW_FILE)
649
- repo.write(
650
- WORKFLOW_FILE, replace_fixes_branch(workflow, old_branch, new_branch)
651
- )
652
630
  repo.write(INIT_FILE, set_version(repo.read(INIT_FILE), next_dev))
653
- repo.shell.run("git", "add", WORKFLOW_FILE, INIT_FILE)
631
+ repo.shell.run("git", "add", INIT_FILE)
654
632
  repo.shell.run("git", "commit", "-m", f"Start {major}.{minor + 1} development")
655
633
 
656
634
  start = Step(
657
- f"Set version {next_dev}, test {new_branch} in CI, and commit",
635
+ f"Set version {next_dev} and commit",
658
636
  AUTO,
659
637
  lambda: repo.committed_version("HEAD") == next_dev,
660
638
  run=start_next,
@@ -726,7 +704,7 @@ def preflight(repo, branch, check_index):
726
704
  origin = repo.origin_url()
727
705
  if not ORIGIN_RE.search(origin):
728
706
  problems.append(f"origin is {origin}, not {GITHUB_REPO} on GitHub")
729
- own_files = {INIT_FILE, INDEX_FILE, WORKFLOW_FILE}
707
+ own_files = {INIT_FILE, INDEX_FILE}
730
708
  other = [name for name in repo.changed_tracked_files() if name not in own_files]
731
709
  if other:
732
710
  problems.append("Uncommitted changes to tracked files: " + ", ".join(other))
@@ -1,6 +1,6 @@
1
1
  [build-system]
2
2
  requires = [
3
- "setuptools >= 83.0.0; python_version >= '3.10'",
3
+ "setuptools >= 84.1.0; python_version >= '3.10'",
4
4
  "setuptools >= 78.1.1; python_version == '3.9'",
5
5
  "setuptools >= 75.3.4; python_version == '3.8'",
6
6
  "setuptools >= 68.0.0; python_version == '3.7'",
@@ -15,7 +15,6 @@
15
15
  classifiers = [
16
16
  "Development Status :: 4 - Beta",
17
17
  "Intended Audience :: Developers",
18
- "License :: OSI Approved :: MIT License",
19
18
  "Operating System :: OS Independent",
20
19
  "Programming Language :: Python :: 3.6",
21
20
  "Programming Language :: Python :: 3.7",
@@ -36,15 +35,12 @@
36
35
  "Topic :: Software Development :: Libraries :: Python Modules"
37
36
  ]
38
37
  requires-python = ">=3.6"
39
- dynamic = ["version", "dependencies"]
38
+ dynamic = ["version", "dependencies", "license"]
40
39
 
41
40
  [[project.authors]]
42
41
  name = "The SoCo-Team"
43
42
  email = "python-soco@googlegroups.com"
44
43
 
45
- [project.license]
46
- text = "MIT License"
47
-
48
44
  [project.urls]
49
45
  Homepage = "https://github.com/SoCo/SoCo"
50
46
 
soco-0.32.2/setup.py ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env python
2
+
3
+ import setuptools
4
+ from setuptools import setup
5
+
6
+ # The license is set here rather than in pyproject.toml because the SPDX
7
+ # license expression needs setuptools >= 77, which needs Python >= 3.9.
8
+ if int(setuptools.__version__.split(".")[0]) >= 77:
9
+ setup(license_expression="MIT")
10
+ else:
11
+ setup(license="MIT")
@@ -17,7 +17,7 @@ from .exceptions import SoCoException, UnknownSoCoException
17
17
  __author__ = "The SoCo-Team <python-soco@googlegroups.com>"
18
18
  # Please increment the version number and add the suffix "-dev" after
19
19
  # a release, to make it possible to identify in-development code
20
- __version__ = "0.32.1"
20
+ __version__ = "0.32.2"
21
21
  __website__ = "https://github.com/SoCo/SoCo"
22
22
  __license__ = "MIT License"
23
23
 
@@ -21,6 +21,7 @@ from requests.exceptions import ConnectTimeout, ReadTimeout
21
21
 
22
22
  from . import config
23
23
  from .data_structures import (
24
+ DidlMusicTrack,
24
25
  DidlObject,
25
26
  DidlPlaylistContainer,
26
27
  DidlResource,
@@ -83,9 +84,21 @@ AUDIO_INPUT_FORMATS = {
83
84
  118489148: "Dolby TrueHD 7.1",
84
85
  }
85
86
 
87
+
86
88
  _LOG = logging.getLogger(__name__)
87
89
 
88
90
 
91
+ def _create_uri_didl_item(uri, title, mime_type):
92
+ """Create a DIDL item for an HTTP media URI."""
93
+ resource = DidlResource(uri=uri, protocol_info=f"http-get:*:{mime_type}:*")
94
+ return DidlMusicTrack(
95
+ title=title,
96
+ parent_id="0",
97
+ item_id="1",
98
+ resources=[resource],
99
+ )
100
+
101
+
89
102
  class _ArgsSingleton(type):
90
103
  """A metaclass which permits only a single instance of each derived class
91
104
  sharing the same `_class_group` class attribute to exist for any given set
@@ -812,7 +825,14 @@ class SoCo(_SocoSingletonBase):
812
825
 
813
826
  @only_on_master
814
827
  def play_uri(
815
- self, uri="", meta="", title="", start=True, force_radio=False, **kwargs
828
+ self,
829
+ uri="",
830
+ meta="",
831
+ title="",
832
+ start=True,
833
+ force_radio=False,
834
+ mime_type=None,
835
+ **kwargs,
816
836
  ):
817
837
  """Play a URI.
818
838
 
@@ -828,9 +848,19 @@ class SoCo(_SocoSingletonBase):
828
848
  meta (str): The metadata to show in the player, DIDL format.
829
849
  title (str): The title to show in the player (if no meta).
830
850
  start (bool): If the URI that has been set should start playing.
831
- force_radio (bool): forces a uri to play as a radio stream.
851
+ force_radio (bool): Forces a URI to play as a radio stream. Cannot
852
+ be used together with ``mime_type``.
853
+ mime_type (str): The MIME type of the media. If provided without
854
+ explicit metadata, track-style DIDL metadata with the
855
+ corresponding protocol info is generated. Cannot be used
856
+ together with ``force_radio=True``. Explicit metadata takes
857
+ precedence.
832
858
  kwargs: additional arguments such as timeout.
833
859
 
860
+ Raises:
861
+ ValueError: If ``mime_type`` and ``force_radio=True`` are both
862
+ provided.
863
+
834
864
  On a Sonos controller music is shown with one of the following display
835
865
  formats and controls:
836
866
 
@@ -869,7 +899,12 @@ class SoCo(_SocoSingletonBase):
869
899
  not forced to to Radio format.
870
900
 
871
901
  """
872
- if meta == "" and title != "":
902
+ if mime_type and force_radio:
903
+ raise ValueError("mime_type cannot be used with force_radio=True")
904
+
905
+ if meta == "" and mime_type:
906
+ meta = to_didl_string(_create_uri_didl_item(uri, title, mime_type))
907
+ elif meta == "" and title != "":
873
908
  meta_template = (
874
909
  '<DIDL-Lite xmlns:dc="http://purl.org/dc/elements'
875
910
  '/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" '
@@ -2391,15 +2426,37 @@ class SoCo(_SocoSingletonBase):
2391
2426
  return self.music_library.get_music_library_information(*args, **kwargs)
2392
2427
 
2393
2428
  @only_on_master
2394
- def add_uri_to_queue(self, uri, position=0, as_next=False, **kwargs):
2429
+ def add_uri_to_queue(
2430
+ self,
2431
+ uri,
2432
+ position=0,
2433
+ as_next=False,
2434
+ title="",
2435
+ mime_type=None,
2436
+ **kwargs,
2437
+ ):
2395
2438
  """Add the URI to the queue.
2396
2439
 
2397
- For arguments and return value see `add_to_queue`.
2440
+ Args:
2441
+ uri (str): URI of the media to add.
2442
+ position (int): The index (1-based) at which the URI should be
2443
+ added. Default is 0 (add URI at the end of the queue).
2444
+ as_next (bool): Whether this URI should be played as the next
2445
+ track in shuffle mode.
2446
+ title (str): The title to show in the player.
2447
+ mime_type (str): The MIME type of the media. If provided, the
2448
+ corresponding HTTP protocol info is included in the DIDL
2449
+ metadata.
2450
+ kwargs: additional arguments such as timeout.
2451
+
2452
+ Returns:
2453
+ int: The index of the new item in the queue.
2398
2454
  """
2399
- # FIXME: The res.protocol_info should probably represent the mime type
2400
- # etc of the uri. But this seems OK.
2401
- res = [DidlResource(uri=uri, protocol_info="x-rincon-playlist:*:*:*")]
2402
- item = DidlObject(resources=res, title="", parent_id="", item_id="")
2455
+ if mime_type:
2456
+ item = _create_uri_didl_item(uri, title, mime_type)
2457
+ else:
2458
+ res = [DidlResource(uri=uri, protocol_info="x-rincon-playlist:*:*:*")]
2459
+ item = DidlObject(resources=res, title=title, parent_id="", item_id="")
2403
2460
  return self.add_to_queue(item, position, as_next, **kwargs)
2404
2461
 
2405
2462
  @only_on_master
@@ -1,13 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soco
3
- Version: 0.32.1
3
+ Version: 0.32.2
4
4
  Summary: SoCo (Sonos Controller) is a simple library to control Sonos speakers.
5
5
  Author-email: The SoCo-Team <python-soco@googlegroups.com>
6
- License: MIT License
6
+ License-Expression: MIT
7
7
  Project-URL: Homepage, https://github.com/SoCo/SoCo
8
8
  Classifier: Development Status :: 4 - Beta
9
9
  Classifier: Intended Audience :: Developers
10
- Classifier: License :: OSI Approved :: MIT License
11
10
  Classifier: Operating System :: OS Independent
12
11
  Classifier: Programming Language :: Python :: 3.6
13
12
  Classifier: Programming Language :: Python :: 3.7
@@ -56,6 +55,7 @@ Requires-Dist: twine; extra == "testing"
56
55
  Requires-Dist: build; extra == "testing"
57
56
  Requires-Dist: importlib-metadata<5; python_version == "3.7" and extra == "testing"
58
57
  Dynamic: license-file
58
+ Dynamic: license-expression
59
59
 
60
60
  SoCo
61
61
  ====
@@ -5,7 +5,8 @@ import requests_mock
5
5
  from conftest import IP_ADDR
6
6
  from soco import SoCo
7
7
  from soco.core import ARC_ULTRA_PRODUCT_NAME, BEAM_ULTRA_PRODUCT_NAME
8
- from soco.data_structures import to_didl_string
8
+ from soco.data_structures import DidlMusicTrack, to_didl_string
9
+ from soco.data_structures_entry import from_didl_string
9
10
  from soco.exceptions import (
10
11
  SoCoSlaveException,
11
12
  SoCoUPnPException,
@@ -769,6 +770,79 @@ class TestAVTransport:
769
770
  ]
770
771
  )
771
772
 
773
+ def test_soco_play_uri_with_mime_type(self, moco):
774
+ uri = "https://example.com/audio/stream"
775
+
776
+ moco.play_uri(uri, title="Example track", mime_type="audio/mpeg")
777
+
778
+ arguments = moco.avTransport.SetAVTransportURI.call_args.args[0]
779
+ metadata = dict(arguments)["CurrentURIMetaData"]
780
+ item = from_didl_string(metadata)[0]
781
+ assert isinstance(item, DidlMusicTrack)
782
+ assert item.title == "Example track"
783
+ assert item.resources[0].uri == uri
784
+ assert item.resources[0].protocol_info == "http-get:*:audio/mpeg:*"
785
+
786
+ def test_soco_play_uri_explicit_metadata_takes_precedence(self, moco):
787
+ metadata = "<DIDL-Lite />"
788
+
789
+ moco.play_uri(
790
+ "https://example.com/audio/stream",
791
+ meta=metadata,
792
+ mime_type="audio/mpeg",
793
+ )
794
+
795
+ arguments = moco.avTransport.SetAVTransportURI.call_args.args[0]
796
+ assert dict(arguments)["CurrentURIMetaData"] == metadata
797
+
798
+ def test_soco_play_uri_rejects_mime_type_with_force_radio(self, moco):
799
+ with pytest.raises(
800
+ ValueError, match="mime_type cannot be used with force_radio=True"
801
+ ):
802
+ moco.play_uri(
803
+ "https://example.com/audio/stream",
804
+ mime_type="audio/mpeg",
805
+ force_radio=True,
806
+ )
807
+
808
+ moco.avTransport.SetAVTransportURI.assert_not_called()
809
+
810
+ def test_soco_play_uri_ignores_empty_mime_type(self, moco):
811
+ uri = "https://example.com/audio/stream"
812
+
813
+ moco.play_uri(uri, mime_type="")
814
+
815
+ arguments = moco.avTransport.SetAVTransportURI.call_args.args[0]
816
+ assert dict(arguments)["CurrentURIMetaData"] == ""
817
+
818
+ def test_soco_add_uri_to_queue_with_mime_type(self, moco):
819
+ uri = "https://example.com/audio/stream"
820
+ moco.avTransport.AddURIToQueue.return_value = {"FirstTrackNumberEnqueued": "1"}
821
+
822
+ position = moco.add_uri_to_queue(
823
+ uri, title="Example track", mime_type="audio/mpeg"
824
+ )
825
+
826
+ arguments = moco.avTransport.AddURIToQueue.call_args.args[0]
827
+ assert dict(arguments)["EnqueuedURI"] == uri
828
+ item = from_didl_string(dict(arguments)["EnqueuedURIMetaData"])[0]
829
+ assert isinstance(item, DidlMusicTrack)
830
+ assert item.title == "Example track"
831
+ assert item.resources[0].uri == uri
832
+ assert item.resources[0].protocol_info == "http-get:*:audio/mpeg:*"
833
+ assert position == 1
834
+
835
+ def test_soco_add_uri_to_queue_with_title_and_empty_mime_type(self, moco):
836
+ uri = "https://example.com/audio/stream"
837
+ moco.avTransport.AddURIToQueue.return_value = {"FirstTrackNumberEnqueued": "1"}
838
+
839
+ moco.add_uri_to_queue(uri, title="Example track", mime_type="")
840
+
841
+ arguments = moco.avTransport.AddURIToQueue.call_args.args[0]
842
+ item = from_didl_string(dict(arguments)["EnqueuedURIMetaData"])[0]
843
+ assert item.title == "Example track"
844
+ assert item.resources[0].protocol_info == "x-rincon-playlist:*:*:*"
845
+
772
846
  def test_soco_pause(self, moco):
773
847
  moco.pause()
774
848
  moco.avTransport.Pause.assert_called_once_with(
@@ -36,7 +36,6 @@ class TestVersions:
36
36
  def test_derived_names(self):
37
37
  assert release.normalise_version("v0.32.0") == "0.32.0"
38
38
  assert release.fixes_branch("0.32.0") == "v0.32.fixes"
39
- assert release.previous_fixes_branch("0.32.0") == "v0.31.fixes"
40
39
  assert release.next_dev_version("0.32.0") == "0.33.0-dev"
41
40
 
42
41
  @pytest.mark.parametrize("current", ["0.32.0-dev", "0.32.0", "0.33.0-dev"])
@@ -68,10 +67,6 @@ def real_file(name):
68
67
  return (REPO_ROOT / name).read_text(encoding="utf-8")
69
68
 
70
69
 
71
- def current_fixes_branch(workflow_text):
72
- return re.search(r"'(v\d+\.\d+\.fixes)'", workflow_text).group(1)
73
-
74
-
75
70
  INDEX = ".. toctree::\n :maxdepth: 1\n\n 0.31.0\n 0.30\n"
76
71
 
77
72
 
@@ -106,25 +101,30 @@ class TestFileEdits:
106
101
  with pytest.raises(ReleaseError, match="No release entries"):
107
102
  release.add_release_to_index(".. toctree::\n", "0.32.0")
108
103
 
104
+ def test_set_version_keeps_crlf(self):
105
+ # Files in a Windows checkout have CRLF line endings
106
+ text = '"""SoCo."""\r\n__version__ = "0.32.0"\r\n'
107
+ assert release.read_version(text) == "0.32.0"
108
+ updated = release.set_version(text, "0.33.0-dev")
109
+ assert updated == '"""SoCo."""\r\n__version__ = "0.33.0-dev"\r\n'
110
+
111
+ def test_add_release_to_index_keeps_crlf(self):
112
+ text = INDEX.replace("\n", "\r\n")
113
+ updated = release.add_release_to_index(text, "0.32.0")
114
+ assert release.index_entries(updated) == ["0.32.0", "0.31.0", "0.30"]
115
+ assert updated == text.replace(" 0.31.0", " 0.32.0\r\n 0.31.0")
116
+
109
117
  def test_missing_index_entries(self):
110
118
  assert release.missing_index_entries(INDEX, ["0.31.0.rst", "index.rst"]) == [
111
119
  "0.30"
112
120
  ]
113
121
 
114
- def test_replace_fixes_branch_on_real_workflow(self):
115
- text = real_file(release.WORKFLOW_FILE)
116
- old = current_fixes_branch(text)
117
- updated = release.replace_fixes_branch(text, old, "v9.9.fixes")
118
- assert f"'{old}'" not in updated
119
- assert updated.count("'v9.9.fixes'") == 2
120
-
121
- def test_replace_fixes_branch_is_idempotent(self):
122
- text = "branches:\n - 'v0.32.fixes'\n"
123
- assert release.replace_fixes_branch(text, "v0.31.fixes", "v0.32.fixes") == text
124
-
125
- def test_replace_fixes_branch_with_neither_branch(self):
126
- with pytest.raises(ReleaseError, match="neither"):
127
- release.replace_fixes_branch("branches: []\n", "v0.31.fixes", "v0.32.fixes")
122
+ def test_ci_runs_on_every_fixes_branch(self):
123
+ # New fixes branches are cut from a release tag, so CI must not name
124
+ # a particular one.
125
+ workflow = real_file(".github/workflows/soco-check-jobs.yaml")
126
+ assert workflow.count("- 'v*.fixes'") == 2
127
+ assert not re.search(r"v\d+\.\d+\.fixes", workflow)
128
128
 
129
129
  def test_release_notes_template_matches_0_32_0_notes(self):
130
130
  text = release.release_notes_template("0.32.0", "2026-10-15")
@@ -549,10 +549,9 @@ class SimRepo(release.Repo):
549
549
 
550
550
 
551
551
  def copy_repo_files(root):
552
- for name in (release.INIT_FILE, release.WORKFLOW_FILE):
553
- dest = root / name
554
- dest.parent.mkdir(parents=True, exist_ok=True)
555
- shutil.copy(REPO_ROOT / name, dest)
552
+ dest = root / release.INIT_FILE
553
+ dest.parent.mkdir(parents=True, exist_ok=True)
554
+ shutil.copy(REPO_ROOT / release.INIT_FILE, dest)
556
555
  shutil.copytree(REPO_ROOT / release.RELEASES_DIR, root / release.RELEASES_DIR)
557
556
 
558
557
 
@@ -562,14 +561,9 @@ def set_file_version(root, version):
562
561
 
563
562
 
564
563
  def make_main_sim(root, version="5.7.0-dev"):
565
- """A master checkout at 5.7.0-dev whose CI tests v5.6.fixes."""
564
+ """A master checkout at 5.7.0-dev."""
566
565
  copy_repo_files(root)
567
566
  set_file_version(root, version)
568
- workflow = root / release.WORKFLOW_FILE
569
- text = workflow.read_text(encoding="utf-8")
570
- workflow.write_text(
571
- release.replace_fixes_branch(text, current_fixes_branch(text), "v5.6.fixes")
572
- )
573
567
  return SimRepo(root, "master")
574
568
 
575
569
 
@@ -628,9 +622,6 @@ class TestMainFlow:
628
622
  )
629
623
  assert not [r for r in repo.shell.runs if r[:2] == ("gh", "api")]
630
624
  assert "v5.7.fixes" in repo.remote_branches
631
- workflow = repo.read(release.WORKFLOW_FILE)
632
- assert workflow.count("'v5.7.fixes'") == 2
633
- assert "'v5.6.fixes'" not in workflow
634
625
  assert release.index_entries(repo.read(release.INDEX_FILE))[0] == "5.7.0"
635
626
  assert (
636
627
  "git",
@@ -728,8 +719,6 @@ class TestMainFlow:
728
719
 
729
720
  def test_resume_after_unpushed_dev_bump(self, tmp_path):
730
721
  repo = make_main_sim(tmp_path, version="5.8.0-dev")
731
- workflow = tmp_path / release.WORKFLOW_FILE
732
- workflow.write_text(workflow.read_text().replace("v5.6.fixes", "v5.7.fixes"))
733
722
  write_notes(tmp_path)
734
723
  repo.committed["origin/master"] = "5.7.0"
735
724
  repo.remote_tags.add("v5.7.0")
@@ -794,7 +783,7 @@ class TestPreflight:
794
783
 
795
784
  def test_own_files_allowed(self, tmp_path):
796
785
  repo = make_fix_sim(tmp_path)
797
- repo.changed = [release.INIT_FILE, release.INDEX_FILE, release.WORKFLOW_FILE]
786
+ repo.changed = [release.INIT_FILE, release.INDEX_FILE]
798
787
  assert release.preflight(repo, "v9.1.fixes", check_index=False) == []
799
788
 
800
789
  def test_other_changes_flagged(self, tmp_path):
soco-0.32.1/setup.py DELETED
@@ -1,27 +0,0 @@
1
- #!/usr/bin/env python
2
-
3
- import sys
4
-
5
- from setuptools import setup
6
- from setuptools.command.test import test as TestCommand
7
-
8
-
9
- class PyTest(TestCommand):
10
- # Code from here: https://pytest.org/latest/goodpractises.html
11
-
12
- def finalize_options(self):
13
- TestCommand.finalize_options(self)
14
- # We don't run integration tests which need an actual Sonos device
15
- self.test_args = ["-m", "not integration"]
16
- self.test_suite = True
17
-
18
- def run_tests(self):
19
- # Import here, because outside the eggs aren't loaded
20
- import pytest
21
-
22
- errno = pytest.main(self.test_args)
23
- sys.exit(errno)
24
-
25
-
26
- # Retain for compatibility with legacy builds or build tool versions.
27
- setup()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes