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

fix release build w.r.t. mypy #1041

Merged
merged 1 commit into from Nov 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions release.nix
Expand Up @@ -22,8 +22,6 @@ rec {

buildInputs = [ pkgs.git pkgs.libxslt pkgs.docbook5_xsl ];

nativeBuildInputs = [ pkgs.mypy ];

postUnpack = ''
# Clean up when building from a working tree.
if [ -d $sourceRoot/.git ]; then
Expand Down Expand Up @@ -79,6 +77,8 @@ rec {

buildInputs = [ python2Packages.nose python2Packages.coverage ];

nativeBuildInputs = [ pkgs.mypy ];

propagatedBuildInputs = with python2Packages;
[ prettytable
boto
Expand Down Expand Up @@ -107,8 +107,10 @@ rec {

doCheck = true;

# We have to unset PYTHONPATH here since it will pick enum34 which collides
# with python3 own module. This can be removed when nixops is ported to python3.
postCheck = ''
mypy --cache-dir=/dev/null nixops
PYTHONPATH= mypy --cache-dir=/dev/null nixops
'';

# Needed by libcloud during tests
Expand Down