Python 3.10 Support - Resolves Issue #616

This commit is contained in:
BJ Dierkes 2021-12-18 10:55:51 -06:00
parent aaaf242a3f
commit bef815907e
5 changed files with 38 additions and 6 deletions

View File

@ -17,6 +17,9 @@ matrix:
- python: 3.9
dist: xenial
sudo: true
- python: 3.10
dist: focal
sudo: true
services:
- memcached
- redis-server

View File

@ -50,7 +50,7 @@ class MinimalLogger(object):
self.backend.setLevel(logging.INFO)
# FIX ME: really don't want to hard check sys.argv like this but
# can't figure any better way get logging started (only for debug)
# can't figure any better way to get logging started (only for debug)
# before the app logging is setup.
if '--debug' in sys.argv or debug:
console.setLevel(logging.DEBUG)

View File

@ -24,34 +24,38 @@ services:
build:
context: .
dockerfile: docker/Dockerfile.dev-py35
profiles:
- donotstart
cement-py36:
<<: *DEFAULTS
image: "cement:dev-py36"
build:
context: .
dockerfile: docker/Dockerfile.dev-py36
<<: *DEFAULTS
profiles:
- donotstart
cement-py37:
<<: *DEFAULTS
image: "cement:dev-py37"
build:
context: .
dockerfile: docker/Dockerfile.dev-py37
<<: *DEFAULTS
cement-py38:
<<: *DEFAULTS
image: "cement:dev-py38"
build:
context: .
dockerfile: docker/Dockerfile.dev-py38
<<: *DEFAULTS
cement-py39:
<<: *DEFAULTS
image: "cement:dev-py39"
build:
context: .
dockerfile: docker/Dockerfile.dev-py39
<<: *DEFAULTS
redis:
image: redis:latest

View File

@ -1,4 +1,4 @@
FROM python:3.9-alpine
FROM python:3.10-alpine
LABEL MAINTAINER="BJ Dierkes <derks@datafolklabs.com>"
ENV PS1="\[\e[0;33m\]|> cement <| \[\e[1;35m\]\W\[\e[0m\] \[\e[0m\]# "

View File

@ -0,0 +1,25 @@
FROM python:3.10-alpine
LABEL MAINTAINER="BJ Dierkes <derks@datafolklabs.com>"
ENV PS1="\[\e[0;33m\]|> cement-py310 <| \[\e[1;35m\]\W\[\e[0m\] \[\e[0m\]# "
WORKDIR /src
COPY requirements-dev.txt /src/
RUN apk update \
&& apk add libmemcached-dev \
gcc \
musl-dev \
cyrus-sasl-dev \
zlib-dev \
make \
vim \
bash \
git \
libffi \
libffi-dev \
openssl-dev \
&& ln -sf /usr/bin/vim /usr/bin/vi \
&& pip install --no-cache-dir -r requirements-dev.txt
COPY . /src
COPY docker/vimrc /root/.vimrc
RUN python setup.py develop
CMD ["/bin/bash"]