Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Python 3.10; Upgrade Sphinx to 4.2.0 #501

Merged
merged 3 commits into from
Oct 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -19,6 +19,7 @@

## Other changes
- [Docs] Add exposed metrics documentation - [#498](https://github.com/jertel/elastalert2/pull/498) - @thisisxgp
- Upgrade to Python 3.10 and Sphinx 4.2.0 - [#501](https://github.com/jertel/elastalert2/pull/501) - @jertel

# 2.2.2

Expand Down
11 changes: 6 additions & 5 deletions Dockerfile
@@ -1,4 +1,4 @@
FROM python:slim-buster as builder
FROM python:3-slim-buster as builder

LABEL description="ElastAlert 2 Official Image"
LABEL maintainer="Jason Ertel"
Expand All @@ -10,20 +10,21 @@ RUN mkdir -p /opt/elastalert && \
pip install setuptools wheel && \
python setup.py sdist bdist_wheel

FROM python:slim-buster
FROM python:3-slim-buster

ARG GID=1000
ARG UID=1000
ARG USERNAME=elastalert

COPY --from=builder /tmp/elastalert/dist/*.tar.gz /tmp/

RUN apt-get update && apt-get -y upgrade && \
apt-get install -y jq curl && \
apt-get -y autoremove && \
RUN apt update && apt -y upgrade && \
apt -y install jq curl gcc libffi-dev && \
rm -rf /var/lib/apt/lists/* && \
pip install /tmp/*.tar.gz && \
rm -rf /tmp/* && \
apt -y remove gcc libffi-dev && \
apt -y autoremove && \
mkdir -p /opt/elastalert && \
echo "#!/bin/sh" >> /opt/elastalert/run.sh && \
echo "set -e" >> /opt/elastalert/run.sh && \
Expand Down
4 changes: 1 addition & 3 deletions requirements-dev.txt
@@ -1,15 +1,13 @@
-r requirements.txt
docutils<0.17
flake8
flake8-absolute-import
m2r2
pluggy>=0.12.0
pre-commit
pylint<2.10
pytest==6.2.4
pytest-cov==2.12.1
pytest-xdist==2.3.0
setuptools
sphinx==4.1.2
sphinx==4.2.0
sphinx_rtd_theme
tox==3.24.1
1 change: 0 additions & 1 deletion requirements.txt
Expand Up @@ -20,6 +20,5 @@ stomp.py>=4.1.17
texttable>=0.8.8
statsd-tags==3.2.1.post1
twilio>=6.0.0,<6.58
tzlocal<3.0
tencentcloud-sdk-python>=3.0.484
jsonpointer>=2.1
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -21,7 +21,7 @@
"Discussion Forum": "https://github.com/jertel/elastalert2/discussions",
},
classifiers=[
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
],
Expand Down Expand Up @@ -55,7 +55,6 @@
'twilio>=6.0.0,<6.58',
'cffi>=1.11.5',
'statsd-tags==3.2.1.post1',
'tzlocal<3.0',
'tencentcloud-sdk-python>=3.0.484',
'jsonpointer>=2.1'
]
Expand Down
2 changes: 2 additions & 0 deletions tests/Dockerfile-test
@@ -1,8 +1,10 @@
FROM python:3-slim-buster

RUN apt update && apt upgrade -y
RUN apt install -y gcc libffi-dev

WORKDIR /home/elastalert

ADD requirements*.txt ./

RUN pip3 install -r requirements-dev.txt
2 changes: 1 addition & 1 deletion tests/tox.ini
@@ -1,6 +1,6 @@
[tox]
project = elastalert
envlist = py39,docs
envlist = py310,docs
setupdir = ..

[testenv]
Expand Down