Skip to content

Commit

Permalink
fix(ci): move docker requirements to txt
Browse files Browse the repository at this point in the history
so that we can upload the pyproject to pypi without it complaining about
direct deps in the optional-dependencies.docker section
  • Loading branch information
sentriz committed Nov 7, 2023
1 parent 680d2f4 commit a4a358d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ENV GID=1000
RUN apk add --no-cache --upgrade --virtual=build-dependencies build-base cmake libffi-dev openssl-dev python3-dev jpeg-dev libpng-dev zlib-dev jpeg-dev cargo llvm14-dev openblas openblas-dev && \
apk add --no-cache --upgrade sudo python3 py-pip libev chromaprint ffmpeg gstreamer flac keyfinder-cli libsndfile && \
apk add --no-cache --allow-untrusted /pkgs/* && \
env LLVM_CONFIG="$(which llvm14-config)" pip install --no-cache-dir . .[docker] && \
env LLVM_CONFIG="$(which llvm14-config)" pip install --no-cache-dir . --requirement requirements-docker.txt && \
apk del --purge build-dependencies && \
rm -r /pkgs ~/.cache

Expand Down
17 changes: 0 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,6 @@ dev = [
"pyright",
"pylint",
]
docker = [
"beets @ https://github.com/beetbox/beets/archive/master.zip",
"beets-lidarr-fields",
"discogs-client",
"beets-noimport",
"pyacoustid",
"pylast",
"requests",
"beautifulsoup4",
"beets-extrafiles",
"pillow",
"unidecode",
"jsonpath-rw",
"pyyaml",
"beets-bpmanalyser @ https://github.com/adamjakab/BeetsPluginBpmAnalyser/archive/devel.zip",
"librosa",
]

[project.urls]
"Homepage" = "https://github.com/sentriz/betanin"
Expand Down
15 changes: 15 additions & 0 deletions requirements-docker.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
beets @ https://github.com/beetbox/beets/archive/master.zip
beets-lidarr-fields
discogs-client
beets-noimport
pyacoustid
pylast
requests
beautifulsoup4
beets-extrafiles
pillow
unidecode
jsonpath-rw
pyyaml
beets-bpmanalyser @ https://github.com/adamjakab/BeetsPluginBpmAnalyser/archive/devel.zip
librosa

0 comments on commit a4a358d

Please sign in to comment.