Skip to content
Snippets Groups Projects
Commit 2841259b authored by John Chilton's avatar John Chilton
Browse files

Depend on newer style Galaxy library dependencies.

parent 239b2201
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,10 @@ from .base.base_drmaa import BaseDrmaaManager ...@@ -6,7 +6,10 @@ from .base.base_drmaa import BaseDrmaaManager
from .util.sudo import sudo_popen from .util.sudo import sudo_popen
from ..managers import status from ..managers import status
from galaxy.tools.deps.commands import which try:
from galaxy.tools.deps.commands import which
except ImportError:
from galaxy.tool_util.deps.commands import which
from logging import getLogger from logging import getLogger
log = getLogger(__name__) log = getLogger(__name__)
......
...@@ -3,12 +3,14 @@ psutil ...@@ -3,12 +3,14 @@ psutil
PasteDeploy PasteDeploy
six six
pyyaml pyyaml
galaxy-lib galaxy-job-metrics>=19.9.0.dev0
galaxy-objectstore>=19.9.0.dev0
galaxy-tool-util>=19.9.0.dev0
paramiko paramiko
# Problematic for Python 3. # Problematic for Python 3.
paste paste ; python_version == '2.7'
PasteScript PasteScript ; python_version == '2.7'
## Uncomment if using DRMAA queue manager. ## Uncomment if using DRMAA queue manager.
#drmaa #drmaa
......
## Python 3 is not yet working, but when it does it will require
## different libraries. Hence this file.
webob
psutil
PasteDeploy
six
galaxy-lib
paramiko
chaussette
...@@ -23,15 +23,16 @@ PULSAR_GALAXY_LIB = os.environ.get("PULSAR_GALAXY_LIB", "%d" % DEFAULT_PULSAR_GA ...@@ -23,15 +23,16 @@ PULSAR_GALAXY_LIB = os.environ.get("PULSAR_GALAXY_LIB", "%d" % DEFAULT_PULSAR_GA
readme = open('README.rst').read() readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '') history = open('HISTORY.rst').read().replace('.. :changelog:', '')
requirements = [ if os.path.exists("requirements.txt"):
'six', requirements = [r for r in open("requirements.txt").read().split("\n") if ";" not in r]
'webob', py27_requirements = [r.split(";", 1)[0].strip() for r in open("requirements.txt").read().split("\n") if ";" in r]
'psutil', else:
'pyyaml', # In tox, it will cover them anyway.
] requirements = []
py27_requirements = []
if not PULSAR_GALAXY_LIB: if PULSAR_GALAXY_LIB:
requirements.append("galaxy-lib") requirements = [r for r in requirements if not r.startswith("galaxy-")]
# TODO: use extra_requires here to be more correct. # TODO: use extra_requires here to be more correct.
if sys.version_info[0] == 2: if sys.version_info[0] == 2:
...@@ -108,6 +109,9 @@ setup( ...@@ -108,6 +109,9 @@ setup(
package_dir={'pulsar': 'pulsar'}, package_dir={'pulsar': 'pulsar'},
include_package_data=True, include_package_data=True,
install_requires=requirements, install_requires=requirements,
extras_require={
':python_version=="2.7"': py27_requirements,
},
license="Apache License 2.0", license="Apache License 2.0",
zip_safe=False, zip_safe=False,
keywords='pulsar', keywords='pulsar',
......
...@@ -5,8 +5,8 @@ from .test_utils import TempDirectoryTestCase ...@@ -5,8 +5,8 @@ from .test_utils import TempDirectoryTestCase
from pulsar.client.test.test_common import write_config from pulsar.client.test.test_common import write_config
from pulsar.client import submit_job, ClientJobDescription from pulsar.client import submit_job, ClientJobDescription
from pulsar.client import ClientOutputs from pulsar.client import ClientOutputs
from galaxy.tools.deps.dependencies import DependenciesDescription from galaxy.tool_util.deps.dependencies import DependenciesDescription
from galaxy.tools.deps.requirements import ToolRequirement from galaxy.tool_util.deps.requirements import ToolRequirement
TEST_REQUIREMENT_1 = ToolRequirement("test1", "1.0") TEST_REQUIREMENT_1 = ToolRequirement("test1", "1.0")
TEST_REQUIREMENT_2 = ToolRequirement("test2", "1.0") TEST_REQUIREMENT_2 = ToolRequirement("test2", "1.0")
......
...@@ -9,8 +9,8 @@ from .test_utils import ( ...@@ -9,8 +9,8 @@ from .test_utils import (
temp_directory, temp_directory,
TestDependencyManager TestDependencyManager
) )
from galaxy.job_metrics import NULL_JOB_INSTRUMENTER
from galaxy.util.bunch import Bunch from galaxy.util.bunch import Bunch
from galaxy.jobs.metrics import NULL_JOB_INSTRUMENTER
TEST_JOB_ID = "4" TEST_JOB_ID = "4"
TEST_STAGED_FILE = "cow" TEST_STAGED_FILE = "cow"
......
...@@ -22,8 +22,8 @@ from webtest.http import StopableWSGIServer ...@@ -22,8 +22,8 @@ from webtest.http import StopableWSGIServer
import galaxy.util import galaxy.util
import pulsar.util import pulsar.util
from galaxy.job_metrics import NULL_JOB_INSTRUMENTER
from galaxy.util.bunch import Bunch from galaxy.util.bunch import Bunch
from galaxy.jobs.metrics import NULL_JOB_INSTRUMENTER
from pulsar.managers.util import drmaa from pulsar.managers.util import drmaa
from pulsar.tools import ToolBox from pulsar.tools import ToolBox
......
...@@ -15,14 +15,14 @@ commands = nosetests --exclude '.*integration.*' [] ...@@ -15,14 +15,14 @@ commands = nosetests --exclude '.*integration.*' []
[testenv:py35] [testenv:py35]
deps = deps =
-rrequirements3.txt -rrequirements.txt
-rdev-requirements.txt -rdev-requirements.txt
drmaa drmaa
[testenv:py35-unit] [testenv:py35-unit]
commands = nosetests --verbose --exclude '.*integration.*' [] commands = nosetests --verbose --exclude '.*integration.*' []
deps = deps =
-rrequirements3.txt -rrequirements.txt
-rdev-requirements.txt -rdev-requirements.txt
drmaa drmaa
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment