Skip to content

Commit cf02643

Browse files
authored
Merge pull request #17 from mruffalo/python3
Support Python 2.7, 3.4, 3.5, 3.6
2 parents 0f14a08 + 1aa1b1f commit cf02643

27 files changed

+83
-73
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__pycache__/

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ language: python
33
# python versioning
44
python:
55
- 2.7
6+
- 3.4
7+
- 3.5
8+
- 3.6
69

710
# requirements
811
install:

cmapPy/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from clue_api_client import *
2-
from pandasGEXpress import *
3-
from set_io import *
1+
from .clue_api_client import *
2+
from .pandasGEXpress import *
3+
from .set_io import *

cmapPy/clue_api_client/cell_queries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import logging
2-
import setup_logger
2+
from . import setup_logger
33

44
__authors__ = "David L. Lahr"
55
__email__ = "[email protected]"

cmapPy/clue_api_client/clue_api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import requests
22
import logging
3-
import setup_logger
3+
from . import setup_logger
44
import json
55
import copy
66

cmapPy/clue_api_client/gene_queries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import logging
2-
import setup_logger
2+
from . import setup_logger
33

44
__authors__ = "David L. Lahr"
55
__email__ = "[email protected]"

cmapPy/clue_api_client/macchiato_queries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import logging
2-
import setup_logger
2+
from . import setup_logger
33

44
__authors__ = "David L. Lahr"
55
__email__ = "[email protected]"

cmapPy/clue_api_client/mock_clue_api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
2-
import setup_logger
3-
import clue_api_client
2+
from . import setup_logger
3+
from . import clue_api_client
44

55
__authors__ = "David L. Lahr"
66
__email__ = "[email protected]"

cmapPy/clue_api_client/pert_queries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import logging
2-
import setup_logger
2+
from . import setup_logger
33

44
__authors__ = "David L. Lahr"
55
__email__ = "[email protected]"

cmapPy/clue_api_client/tests/test_clue_api_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
import logging
44
from cmapPy.clue_api_client import clue_api_client as clue_api_client
55
import os.path
6-
import ConfigParser
76
import collections
87

8+
from six.moves import configparser
9+
910
__authors__ = "David L. Lahr"
1011
__email__ = "[email protected]"
1112

@@ -120,7 +121,7 @@ def test_run_put(self):
120121

121122

122123
def build_clue_api_client_from_default_test_config():
123-
cfg = ConfigParser.RawConfigParser()
124+
cfg = configparser.RawConfigParser()
124125
cfg.read(config_filepath)
125126
cao = clue_api_client.ClueApiClient(base_url=cfg.get(config_section, "clue_api_url"),
126127
user_key=cfg.get(config_section, "clue_api_user_key"))

0 commit comments

Comments
 (0)