Skip to content

Commit

Permalink
Update to xmlsec v1.3.14 (#1799)
Browse files Browse the repository at this point in the history
* Update to xmlsec v1.3.14
* Remove a couple more packages from docker build
  • Loading branch information
jonathangreen authored Apr 18, 2024
1 parent d8c38f6 commit 2473400
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 60 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ jobs:
with:
submodules: recursive

- name: Install Apt Packages
run: |
sudo apt-get update
sudo apt-get install --yes libxmlsec1-dev libxml2-dev
- name: Update pip
run: |
pip install --upgrade pip
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ jobs:
cache: true
cache-restore-only: true

- name: Install OS Packages 🧰
run: |
sudo apt-get update
sudo apt-get install --yes libxmlsec1-dev libxml2-dev
- name: Install Python Packages 📦
run: poetry install --without ci --no-root

Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install Apt Packages
run: |
sudo apt-get update
sudo apt-get install --yes libxmlsec1-dev libxml2-dev
- name: Install Poetry
uses: ./.github/actions/poetry
with:
Expand Down Expand Up @@ -82,11 +77,6 @@ jobs:
with:
python-version: "3.10"

- name: Install Apt Packages
run: |
sudo apt-get update
sudo apt-get install --yes libxmlsec1-dev libxml2-dev
- name: Install Poetry
uses: ./.github/actions/poetry
with:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ repos:
hooks:
- id: toml-sort
args: []
files: pyproject\.toml|poetry\.toml
files: pyproject\.toml

- repo: https://github.com/jackdewinter/pymarkdown
rev: v0.9.13.4
Expand Down
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,6 @@ If you do not yet have Homebrew, you can install it by running the following:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

While you're at it, go ahead and install the following required dependencies:

```sh
brew install pkg-config libffi
brew install libjpeg
```

The version of libxmlsec1 (v1.3) that ships with brew is currently not compatible with the python
xmlsec package that we use (for more details see
[this xmlsec issue](https://github.com/xmlsec/python-xmlsec/issues/163)). In order to install a
compatible version of libxmlsec1, you can use the following command:

```sh
brew tap jonathangreen/xmlsec
brew install [email protected]
```

#### Linux

Most distributions will offer Python packages. On Arch Linux, the following command is sufficient:
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ COPY docker/startup /etc/my_init.d/
COPY --chmod=644 docker/services/logrotate /etc/

# Copy our poetry files into the image and install our dependencies.
COPY --chown=simplified:simplified poetry.lock poetry.toml pyproject.toml /var/www/circulation/
COPY --chown=simplified:simplified poetry.lock pyproject.toml /var/www/circulation/
RUN . env/bin/activate && \
poetry install --only main,pg --sync --no-root

Expand Down
6 changes: 1 addition & 5 deletions docker/Dockerfile.baseimage
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ RUN install_clean \
libpcre3-dev \
# needed for psycopg2
libpq-dev \
# needed for xmlsec
libxmlsec1-dev \
libxmlsec1-openssl \
tzdata \
pkg-config && \
curl -sSL https://install.python-poetry.org | POETRY_HOME="/opt/poetry" python3 - --yes --version $POETRY_VERSION && \
Expand All @@ -53,7 +50,7 @@ RUN useradd -ms /bin/bash -U simplified && \
mkdir /var/log/simplified

WORKDIR /var/www/circulation
COPY --chown=simplified:simplified poetry.lock poetry.toml pyproject.toml /var/www/circulation/
COPY --chown=simplified:simplified poetry.lock pyproject.toml /var/www/circulation/

# Setup virtualenv and install our python dependencies.
# What we install is based on the poetry.lock file in the repo at the time this
Expand All @@ -72,6 +69,5 @@ RUN python3 -m venv env && \
rm -Rf /root/.cache && \
rm pyproject.toml && \
rm poetry.lock && \
rm poetry.toml && \
rm -rf /root/.cache && \
/bd_build/cleanup.sh
74 changes: 60 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions poetry.toml

This file was deleted.

0 comments on commit 2473400

Please sign in to comment.