Skip to content

Commit

Permalink
Increase version to 1.3.0. Run all regression tests. I think I'll pus…
Browse files Browse the repository at this point in the history
…h this to pypi within the next 24 hours... if I can remember how to do that 5 years after the fact...
  • Loading branch information
TaylorSMarks committed Jul 23, 2021
1 parent b407fbd commit 60527b3
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 176 deletions.
60 changes: 30 additions & 30 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ jobs:
python: 3.9
before_install:
- sudo apt-get install gstreamer1.0-tools gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav
#- name: "Python 3.6 on Ubuntu 18 (Bionic)"
# dist: bionic
# python: 3.6
# before_install:
# - sudo apt-get install gstreamer1.0-tools gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav
# virtualenv:
# system_site_packages: true # Needed for python to be able to access gi on Linux.
#- name: "Python 2.7 on Ubuntu 14 (Trusty)"
# dist: trusty
# python: 2.7
# before_install:
# - sudo apt-get install python-gi gstreamer1.0-tools gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav
# virtualenv:
# system_site_packages: true # Needed for python to be able to access gi on Linux.
- name: "Python 3.6 on Ubuntu 18 (Bionic)"
dist: bionic
python: 3.6
before_install:
- sudo apt-get install gstreamer1.0-tools gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav
virtualenv:
system_site_packages: true # Needed for python to be able to access gi on Linux.
- name: "Python 2.7 on Ubuntu 14 (Trusty)"
dist: trusty
python: 2.7
before_install:
- sudo apt-get install python-gi gstreamer1.0-tools gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav
virtualenv:
system_site_packages: true # Needed for python to be able to access gi on Linux.

# >>> Each macOS Run costs ~250 Build Credits - running both macOSs costs ~500 Build Credits. Read NOTE at top.

Expand All @@ -36,25 +36,25 @@ jobs:
osx_image: xcode12.5
language: shell
script: python3 test.py
#- name: "Python 2.7 on macOS 10.11 (El Capitan, 2015)"
# os: osx
# osx_image: xcode7.3
# language: shell
- name: "Python 2.7 on macOS 10.11 (El Capitan, 2015)"
os: osx
osx_image: xcode7.3
language: shell

# >>> Each Windows run costs ~100 Build Credits - running both Windows costs ~200 Build Credits. Read NOTE at top.

#- name: "Python 2.7 on Windows"
# os: windows
# language: shell
# before_install:
# - choco install python --version 2.7.11
# env: PATH=/c/Python27:/c/Python27/Scripts:/c/tools/python:/c/tools/python/Scripts:$PATH
#- name: "Python 3.9 on Windows"
# os: windows
# language: shell
# before_install:
# - choco install python --version 3.9.5
# env: PATH=/c/Python39:/c/Python39/Scripts:$PATH
- name: "Python 2.7 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 2.7.11
env: PATH=/c/Python27:/c/Python27/Scripts:/c/tools/python:/c/tools/python/Scripts:$PATH
- name: "Python 3.9 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 3.9.5
env: PATH=/c/Python39:/c/Python39/Scripts:$PATH
install: true # Makes it do nothing instead of trying to find a requirements.txt file.
script:
- python test.py
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
1.3.0 (July 23, 2021)

* Adds in an automated test suite.
* Non-ascii filepaths and filepaths with spaces should now consistently work.
* Path objects are supported now.

1.2.1 (Feb. 27, 2016)

* Fixes bug that prevented relative paths from working on OS X.
Expand Down
16 changes: 9 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,18 @@ On Windows, uses windll.winmm. WAVE and MP3 have been tested and are known to wo

On OS X, uses AppKit.NSSound. WAVE and MP3 have been tested and are known to work. In general, anything QuickTime can play, playsound should be able to play, for OS X.

On Linux, uses GStreamer. Known to work on Ubuntu 14.04 and ElementaryOS Loki.
On Linux, uses GStreamer. Known to work on Ubuntu 14.04 and ElementaryOS Loki. I expect any Linux distro with a standard gnome desktop experience should work.

Requirements
------------
I've only tested playsound it with Python 2.7 on Windows 7 and OS X 10.11, but
I expect that it should work on Windows XP thru 10 at least, OS X 10.5 and newer,
all versions of Linux, and Python 2.3 and newer.
If you'd like other Linux distros (or any other OS) to work, submit a PR adding in support for it, but please make sure it passes the tests (see below).

Testing
-------
Playsound includes a small set of tests - if you're making a PR, please ensure that you have no regressions and all the tests pass on your local system.
Also make sure that Travis-CI, which runs these tests against Windows Server 2016, macOS 10.11 (El Capitan, 2015) and 11.3 (Big Sur, 2020), Ubuntu 14 (Trusty), and Ubuntu 18 (Bionic), for both Python 2.7 and 3.9, fully passes.
You can check the Travis-CI status for Playsound here: https://travis-ci.com/github/TaylorSMarks/playsound/builds

Copyright
---------
This software is Copyright (c) 2016 Taylor Marks <[email protected]>.
This software is Copyright (c) 2021 Taylor Marks <[email protected]>.

See the bundled LICENSE file for more information.
138 changes: 0 additions & 138 deletions _convenience.py

This file was deleted.

5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
long_description = f.read()

setup(name = 'playsound',
version = '1.2.1',
version = '1.3.0',
description = long_description.splitlines()[2][1:-1],
long_description = long_description,
url = 'https://github.com/TaylorSMarks/playsound',
Expand All @@ -32,6 +32,9 @@
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Multimedia :: Sound/Audio :: MIDI',
'Topic :: Multimedia :: Sound/Audio :: Players',
Expand Down

0 comments on commit 60527b3

Please sign in to comment.