Commit Graph

20 Commits

Author SHA1 Message Date
Anna Schumaker a86ce6165d Emmental: Add a MICRO_VERSION
And set it to '1' to start, since we have a few extra commits on top of
3.0 already.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2023-05-25 10:19:51 -04:00
Anna Schumaker e624566919 Makefile: Makefile updates
- Install emmental.desktop as com.nowheycreamery.emmental.desktop
- Fix up variables used in the 'uninstall' target

Fixes: #61 (Rename .desktop file)
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2023-05-24 15:05:10 -04:00
Anna Schumaker bb9ecdbb5d Emmental 3.0 AUR commit
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2023-05-24 14:48:15 -04:00
Anna Schumaker 8b1be777c1 install: Update the install target for Emmental 3.x
Instead of calling out to a separate tools, I can use the `find` and
`install` programs to easily install the files to the right place.

I also take this opportunity to update the emmental.desktop file for v3,
including filling out as many audio-related mime types as I can find and
using the `desktop-file-install` command to not only install the file
but properly set the "Exec" and "Icon" fields based on the PREFIX=
passed to `make`

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2023-05-23 09:16:52 -04:00
Anna Schumaker 6e4e83cb40 Remove obsolete Emmental 2.x code
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2023-05-10 17:42:42 -04:00
Anna Schumaker d105b15e02 mpris2: Add a Player object
This begins to implement the MediaPlayer2.Player interface. The
properties and signals are there, and I expect to fully implement them
as Emmental development goes on.

Implements: #7 ("Add MPRIS2 Support")
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2023-04-12 10:41:42 -04:00
Anna Schumaker 767f0c1584 mpris2: Add an Mpris2 DBus Connection
And implement the MediaPlayer2 interface on top of it.

Implements: #7 ("Add MPRIS2 Support")
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2023-04-12 10:41:42 -04:00
Anna Schumaker 4be26c5fee gsetup: Load a Gio Resource with our application icons
We can put all our icons into a single resource bundle that gets loaded
and only exists for our app.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2023-03-07 11:19:29 -05:00
Anna Schumaker 4072ea97d4 emmental3.py: Start Emmental 3.0
I'm going to put all of the main source code into a single subdirectory
under emmental/ and separate out tests into a separate tests/ directory.

Additionally, I have switched over to pytest for running tests to give
me better output (with color!)

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2023-03-07 11:18:46 -05:00
Anna Schumaker 10c5fd4cef lib: set version.TESTING based on if the unittest module is loaded
This is cleaner than needing to set an environment variable before
running unit tests.

Implements #28 (Check if unittest is loaded to determine if we are testing)
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2021-12-26 13:05:08 -05:00
Anna Schumaker 3d78dcd4d0 Create a PKGBUILD for putting releases on the AUR
And add the aur directory as a submodule so we can update files directly

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2021-07-28 11:17:32 -04:00
Anna Schumaker b0838beb6f Create install and uninstall targets in the Makefile
And create helper scripts under tools/

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2021-07-26 17:52:13 -04:00
Anna Schumaker e8f9427750 Move testing tracks into data/
And the generate_tracks.py script into tools/

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2021-07-26 10:57:01 -04:00
Anna Schumaker 2083d00c23 Makefile: Disable testing curds/ and rind/ directories
I want to be able to test the new gtk4 code, but I can't do that with
the legacy code still enabled since gtk3 and gtk4 can't both be loaded
at the same time. The solution is to create a new "tests" target for
testing the new stuff.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2021-07-01 16:43:46 -04:00
Anna Schumaker 2057721028 Add a toplevel script
I'll eventually need to be able to run everything as a single
application, so let's prepare for that now. This gives us a chance to
get the imports right from the start, rather than needing to go through
and fix things up again.

I also add a test to make sure everything works as expected.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2019-03-06 09:23:25 -05:00
Anna Schumaker f56e6764a8 curds: Clean up unused code
I added a make target for code coverage, and used that to identify code
that isn't getting run.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2019-02-15 16:09:09 -05:00
Anna Schumaker 2c022163ad curds: Create a single place to get a path to a data file
It's useful to have a way to override where data gets placed in the
filesystem so we don't accidentally clobber production data with test
data while running tests.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2019-02-14 08:08:42 -05:00
Anna Schumaker 0705f86d81 curds: Add a test for parallel track scanning
And add code for generating a large test library to make stress testing
possible.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2019-02-06 14:35:35 -05:00
Anna Schumaker c66405bd80 curds: Add basic track class
We account for some fallback values, and also attempt to detect
discnumbers from the album name.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2019-02-04 17:01:52 -05:00
Anna Schumaker 3b42ca233e curds: Add basic album class
We'll eventually pull out all the fields we need from a Mutagen
FileInfo class, but that has a dictionary-like interface so we can
easily fake one up for testing.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2019-01-24 16:27:25 -05:00