Skip to content

Commit 4636447

Browse files
author
Ryan P Kilby
committed
Minor cleanup to runtests.py & setup.py
1 parent 45df0ed commit 4636447

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

runtests.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#! /usr/bin/env python
22
from __future__ import print_function
33

4-
import os
54
import subprocess
65
import sys
76

@@ -16,8 +15,6 @@
1615

1716
ISORT_ARGS = ['--recursive', '--check-only', '-o' 'uritemplate', '-p', 'tests', 'rest_framework', 'tests']
1817

19-
sys.path.append(os.path.dirname(__file__))
20-
2118

2219
def exit_on_failure(ret, message=None):
2320
if ret:

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def get_version(package):
3636
import pypandoc
3737
except ImportError:
3838
print("pypandoc not installed.\nUse `pip install pypandoc`.\nExiting.")
39+
sys.exit()
3940
if os.system("pip freeze | grep twine"):
4041
print("twine not installed.\nUse `pip install twine`.\nExiting.")
4142
sys.exit()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy