Skip to content

Commit

Permalink
Simplify uv use
Browse files Browse the repository at this point in the history
uv now let's us install to system python instead of requiring a virtual
environment.
  • Loading branch information
JacobCallahan committed Mar 15, 2024
1 parent 85eec46 commit e1fb71d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ jobs:
BROKER_DIRECTORY: "${{ github.workspace }}/broker_dir"
run: |
pip install uv
uv venv
source .venv/bin/activate
uv pip install -e .[dev,docker]
uv pip install --system "broker[dev,docker] @ ."
ls -l "$BROKER_DIRECTORY"
broker --version
pytest -v tests/ --ignore tests/functional
4 changes: 1 addition & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ jobs:
- name: Setup and Build
run: |
pip install uv
uv venv
source .venv/bin/activate
uv pip install -e .[setup]
uv pip install --system "broker[dev,docker] @ ."
python -m build
python -m twine check dist/*
Expand Down
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ FROM fedora
MAINTAINER https://github.com/SatelliteQE

RUN dnf -y install make cmake gcc-c++ zlib-devel \
openssl-devel git python3-pip python3-devel which\
openssl-devel git python3 python3-pip python3-devel which\
&& dnf clean all


WORKDIR /root/broker
COPY . /root/broker

RUN pip install uv
RUN uv venv && source .venv/bin/activate
RUN uv pip install -e .
RUN uv pip install --system "broker @ ."

ENTRYPOINT ["broker"]
CMD ["--help"]

0 comments on commit e1fb71d

Please sign in to comment.