Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.swspotify: init at 1.2.1, swaglyrics: init at 1.2.2 #96051

Merged
merged 2 commits into from Oct 11, 2020

Conversation

@siraben
Copy link
Member

@siraben siraben commented Aug 23, 2020

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
@siraben siraben requested review from FRidh and jonringer as code owners Aug 23, 2020
@siraben
Copy link
Member Author

@siraben siraben commented Aug 23, 2020

@GrahamcOfBorg build swaglyrics

@siraben siraben marked this pull request as draft Aug 23, 2020
@siraben
Copy link
Member Author

@siraben siraben commented Aug 23, 2020

Converted to draft since running the executable fails due to the following error. Package author has been contacted and I'll await new release on PyPI.

Updating unsupported.txt from server.
Traceback (most recent call last):
  File "/nix/store/7ggvgdx5v6nqqhf4nj197s5df2hmbi02-swaglyrics-1.2.0/bin/.swaglyrics-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/7ggvgdx5v6nqqhf4nj197s5df2hmbi02-swaglyrics-1.2.0/lib/python3.8/site-packages/swaglyrics/__main__.py", line 119, in main
    unsupported_precheck(args.update_check)
  File "/nix/store/7ggvgdx5v6nqqhf4nj197s5df2hmbi02-swaglyrics-1.2.0/lib/python3.8/site-packages/swaglyrics/__main__.py", line 40, in unsupported_precheck
    with open(unsupported_txt, 'w', encoding='utf-8') as f:
OSError: [Errno 30] Read-only file system: '/nix/store/7ggvgdx5v6nqqhf4nj197s5df2hmbi02-swaglyrics-1.2.0/lib/python3.8/site-packages/swaglyrics/unsupported.txt'

@siraben siraben force-pushed the swaglyrics-init branch from a2af2c3 to 962be4b Aug 23, 2020
@siraben siraben marked this pull request as ready for review Aug 23, 2020
@siraben
Copy link
Member Author

@siraben siraben commented Aug 23, 2020

@GrahamcOfBorg build swaglyrics

@siraben siraben force-pushed the swaglyrics-init branch from 962be4b to 26bd8d7 Aug 23, 2020
@siraben siraben changed the title swaglyrics: init at 1.2.0 swaglyrics: init at 1.2.2 Aug 23, 2020
@siraben siraben changed the title swaglyrics: init at 1.2.2 swaglyrics: init at 1.2.2, swspotify: init at 1.2.1, requests: 2.23.0 -> 2.24.0 Aug 23, 2020
@siraben siraben force-pushed the swaglyrics-init branch 2 times, most recently from 93097b4 to 5772929 Aug 24, 2020
@siraben siraben requested a review from jonringer Aug 24, 2020
@siraben siraben changed the title swaglyrics: init at 1.2.2, swspotify: init at 1.2.1, requests: 2.23.0 -> 2.24.0 swaglyrics: init at 1.2.2, swspotify: init at 1.2.1 Aug 24, 2020
@siraben
Copy link
Member Author

@siraben siraben commented Aug 24, 2020

@GrahamcOfBorg build swaglyrics

@siraben siraben force-pushed the swaglyrics-init branch from 5cbd70a to 116dec5 Sep 6, 2020
@siraben
Copy link
Member Author

@siraben siraben commented Sep 6, 2020

Ok, rebased on latest master. Enabling tests still causes the build to fail, though.

@jonringer
Copy link
Contributor

@jonringer jonringer commented Sep 7, 2020

if they still have unit tests that run within the sandbox, they should be enabled as much as possible. If all the tests aren't able to run, then there should be a comment stating that they aren't able to be ran within a sandbox.

@siraben
Copy link
Member Author

@siraben siraben commented Sep 14, 2020

I think I realize what's happening now by testing with nix-shell after unpackPhase, there doesn't seem to be a tests folder, is this due to the tests not being uploaded to PyPI?

@siraben siraben force-pushed the swaglyrics-init branch from 116dec5 to a98dbc0 Oct 5, 2020
@siraben
Copy link
Member Author

@siraben siraben commented Oct 5, 2020

@jonringer I've updated the derivation to disable tests that require network access, need to do the same with the python3Packages.swspotify package.

@siraben siraben force-pushed the swaglyrics-init branch 3 times, most recently from 15b7693 to 0eae2c6 Oct 6, 2020
+++ b/tests/test_tab.py
@@ -4,6 +4,7 @@ Contains unit tests for tab.py
import flask_testing
from SwSpotify import SpotifyNotRunning
from mock import patch
+import unittest
Copy link
Contributor

@jonringer jonringer Oct 6, 2020

This patch should be unnecessary with my other comment

@siraben siraben force-pushed the swaglyrics-init branch from 7708e28 to ac47400 Oct 6, 2020
@siraben siraben force-pushed the swaglyrics-init branch from 95f9f0d to 4e9cdd7 Oct 7, 2020
pkgs/top-level/python-packages.nix Outdated Show resolved Hide resolved
@siraben siraben force-pushed the swaglyrics-init branch from 4e9cdd7 to c159b1f Oct 7, 2020
@siraben siraben force-pushed the swaglyrics-init branch from d1f8cf7 to 8636842 Oct 7, 2020
@siraben siraben force-pushed the swaglyrics-init branch from cb16bea to 56ae3c3 Oct 7, 2020
@siraben
Copy link
Member Author

@siraben siraben commented Oct 10, 2020

Just tested on NixOS, tests seem to pass and package runs as expected.

@siraben siraben requested a review from jonringer Oct 11, 2020
Copy link
Contributor

@jonringer jonringer left a comment

LGTM

Result of nixpkgs-review pr 96051 1

3 packages built:
  • python37Packages.swspotify
  • python38Packages.swspotify
  • swaglyrics

@jonringer jonringer merged commit 3204e87 into NixOS:master Oct 11, 2020
19 checks passed
@siraben siraben deleted the swaglyrics-init branch Oct 11, 2020
@siraben siraben restored the swaglyrics-init branch Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants