Skip to content

Commit

Permalink
Merge pull request #163 from ynput/enhancement/remove-unnecessary-dep…
Browse files Browse the repository at this point in the history
…endencies

Services: Remove unnecessary dependencies
  • Loading branch information
iLLiCiTiT authored Jan 22, 2025
2 parents b589b07 + c35e63d commit d9964f1
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 26 deletions.
3 changes: 2 additions & 1 deletion service_tools/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.venv/*
.env
.env
*.egg-info
2 changes: 1 addition & 1 deletion service_tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ help:

createenv:
$(shell [[ -d $(CURDIR)/venv ]] || python -m venv $(CURDIR)/venv) && \
. $(CURDIR)/venv/bin/activate && python -m pip install -r "$(CURDIR)/requirements.txt"
. $(CURDIR)/venv/bin/activate && python -m pip install -e "$(CURDIR)"

leecher:
export AYON_ADDON_NAME="shotgrid" && \
Expand Down
2 changes: 1 addition & 1 deletion service_tools/manage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function Default-Func {

function Install-Requirements {
# TODO Install/verify venv is created
& python -m pip install -r "$($script_dir)\requirements.txt"
& python -m pip install -e "$($script_dir)"
}

function Start-Leecher {
Expand Down
10 changes: 10 additions & 0 deletions service_tools/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[project]
version = "1.0.0"
name = "shotgrid-service-tools"
requires-python = ">=3.10"

dependencies = [
"arrow",
"ayon-python-api>=1.0.0",
"shotgun-api3==3.5.1",
]
17 changes: 0 additions & 17 deletions service_tools/requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions services/leecher/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ authors = ["Oscar Domingo <[email protected]>"]
package-mode = false

[tool.poetry.dependencies]
appdirs = "^1.4"
python = ">=3.10,<4.0"
pydantic = "^1.10.2"
ayon-python-api = "^1.0.0"
shotgun-api3 = { git = "https://github.com/shotgunsoftware/python-api.git", tag = "v3.4.0" }

Expand Down
2 changes: 0 additions & 2 deletions services/processor/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ authors = ["Oscar Domingo <[email protected]>"]
package-mode = false

[tool.poetry.dependencies]
appdirs = "^1.4"
python = ">=3.10,<4.0"
pydantic = "^1.10.2"
ayon-python-api = "^1.0.0"
shotgun-api3 = { git = "https://github.com/shotgunsoftware/python-api.git", tag = "v3.4.0" }

Expand Down
2 changes: 0 additions & 2 deletions services/transmitter/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ authors = ["Oscar Domingo <[email protected]>"]
package-mode = false

[tool.poetry.dependencies]
appdirs = "^1.4"
python = ">=3.10,<4.0"
pydantic = "^1.10.2"
arrow = "*"
ayon-python-api = "^1.0.0"
shotgun-api3 = { git = "https://github.com/shotgunsoftware/python-api.git", tag = "v3.4.0" }
Expand Down

0 comments on commit d9964f1

Please sign in to comment.