diff --git a/.gitpod.yml b/.gitpod.yml index 7c6a1ef10d9..33699cde33a 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -23,7 +23,7 @@ tasks: python3 -m venv .venv && . .venv/bin/activate && pip install psycopg2 && - pip install -r lib/galaxy/dependencies/dev-requirements.txt && + pip install -r requirements.txt -r lib/galaxy/dependencies/dev-requirements.txt && pip install tox && gp sync-done setup command: createdb galaxy diff --git a/Makefile b/Makefile index 43b87be0c47..1d953e0a959 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ docs: ## Generate HTML documentation. # Run following commands to setup the Python portion of the requirements: # $ ./scripts/common_startup.sh # $ . .venv/bin/activate -# $ pip install -r lib/galaxy/dependencies/dev-requirements.txt +# $ pip install -r requirements.txt -r lib/galaxy/dependencies/dev-requirements.txt $(IN_VENV) $(MAKE) -C doc clean $(IN_VENV) $(MAKE) -C doc html diff --git a/doc/source/admin/framework_dependencies.rst b/doc/source/admin/framework_dependencies.rst index 383a6dbc5b9..d419f0baa0c 100644 --- a/doc/source/admin/framework_dependencies.rst +++ b/doc/source/admin/framework_dependencies.rst @@ -195,7 +195,7 @@ to step 3 in the process below. 2. Submit a pull request to `Starforge Recipes`_. -3. Add the new dependency to the `[tool.poetry.dependencies]` (or to `[tool.poetry.dev-dependencies]` if only needed for Galaxy development) section of `pyproject.toml` . +3. Add the new dependency to the `[tool.poetry.dependencies]` (or to `[tool.poetry.group.dev.dependencies]` if only needed for Galaxy development) section of `pyproject.toml` . 4. Run `make update-dependencies` to update the requirements file in `lib/galaxy/dependencies`_. 5. Submit a pull request to Galaxy with your changes. diff --git a/lib/galaxy/dependencies/update.sh b/lib/galaxy/dependencies/update.sh index 03c5d034d10..d3a351271a0 100755 --- a/lib/galaxy/dependencies/update.sh +++ b/lib/galaxy/dependencies/update.sh @@ -33,6 +33,7 @@ fi # Install the latest version of poetry into the user account curl -sSL https://install.python-poetry.org | python3 - +poetry self add poetry-plugin-export # Run poetry (this may update pyproject.toml and poetry.lock). if [ -z "$add" ]; then @@ -43,4 +44,4 @@ fi # Update pinned requirements. poetry export -f requirements.txt --without-hashes --output "$this_directory/pinned-requirements.txt" -poetry export --dev -f requirements.txt --without-hashes --output "$this_directory/dev-requirements.txt" +poetry export --only dev -f requirements.txt --without-hashes --output "$this_directory/dev-requirements.txt" diff --git a/packages/package.Makefile b/packages/package.Makefile index e5b2fb8dce9..dff6b157a68 100644 --- a/packages/package.Makefile +++ b/packages/package.Makefile @@ -44,7 +44,7 @@ clean-tests: setup-venv: if [ ! -d $(VENV) ]; then virtualenv $(VENV); exit; fi; - $(IN_VENV) pip install -r requirements.txt && pip install -r dev-requirements.txt + $(IN_VENV) pip install -r dev-requirements.txt test: $(IN_VENV) pytest $(TESTS) diff --git a/pyproject.toml b/pyproject.toml index 29425a1bc79..13ce272a576 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,7 +110,7 @@ WebOb = "*" Whoosh = "*" zipstream-new = "*" -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] ase = ">=3.18.1" black = "^22.1.0" cwltest = "2.2.20210901154959" diff --git a/scripts/common_startup.sh b/scripts/common_startup.sh index 968507e8b3d..c6b4cc64e52 100755 --- a/scripts/common_startup.sh +++ b/scripts/common_startup.sh @@ -183,7 +183,7 @@ fi requirement_args="-r requirements.txt" if [ $DEV_WHEELS -eq 1 ]; then - requirement_args="-r ${GALAXY_DEV_REQUIREMENTS}" + requirement_args="$requirement_args -r ${GALAXY_DEV_REQUIREMENTS}" fi [ "$CI" = 'true' ] && export PIP_PROGRESS_BAR=off