Skip to content

Commit

Permalink
Update Python (3.6 => 3.8.13)
Browse files Browse the repository at this point in the history
- Updates Python from version 3.6 to 3.8.13
- Updates pre-commit from version 2.17.0 to 2.20.20
- Update gevent from version 1.4.0 to 21.12.0
  • Loading branch information
victor-salles committed Aug 15, 2022
1 parent 1c373b4 commit 8846c98
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 206 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sudo: true

language: python
python:
- "3.6.8"
- "3.8.13"

services:
- docker
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
FROM python:3.6-slim
FROM python:3.8.13-slim

ENV WORKDIR /home/app
WORKDIR $WORKDIR

RUN apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y apt-utils \
&& apt-get install --no-install-recommends --no-install-suggests -y gcc bzip2 git curl nginx libpq-dev gettext \
libgdal-dev python3-cffi python3-gdal vim
&& apt-get install --no-install-recommends --no-install-suggests -y apt-utils \
&& apt-get install --no-install-recommends --no-install-suggests -y gcc bzip2 git curl nginx libpq-dev gettext \
libgdal-dev python3-cffi python3-gdal vim

RUN apt-get install make

RUN pip install -U pip==21.2.2 setuptools==57.4.0
RUN pip install poetry==1.1.12
RUN pip install gunicorn==19.9.0
RUN pip install gevent==1.4.0
RUN pip install gevent==21.12.0
RUN pip install psycopg2-binary
RUN apt-get install -y libjpeg-dev libgpgme-dev linux-libc-dev musl-dev libffi-dev libssl-dev
ENV LIBRARY_PATH=/lib:/usr/lib
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
·
</p>
</p>

<br />
<p align="center">
<img src="https://user-images.githubusercontent.com/5360835/65427083-1af35900-de01-11e9-86ef-59f1eee79a68.png" width="230" height="70" alt="Bothub" />
Expand All @@ -27,7 +27,7 @@

# Requirements

* Python (3.6)
* Python (3.8.13)
* Poetry
* Docker
* Docker-compose
Expand Down Expand Up @@ -146,7 +146,7 @@ You can set environment variables in your OS, write on ```.env``` file or pass v
| APM_SERVICE_ENVIRONMENT | ```string``` | ```''``` | Environment that APM is running on
| ENVIRONMENT | ```string``` | ```production``` | Specify the environment you are going to run, it is also used for sentry
| SUGGESTION_LANGUAGES | ```string``` | ```en|pt_br``` | Specify the the languages supported by environment for word and intent suggestions
| N_WORDS_TO_GENERATE | ```int``` | ```4``` | Specify the number of suggestions that will be returned for word suggestions
| N_WORDS_TO_GENERATE | ```int``` | ```4``` | Specify the number of suggestions that will be returned for word suggestions
| N_SENTENCES_TO_GENERATE | ```int``` | ```10``` | Specify the number of suggestions that will be returned for intent suggestions
| REDIS_TIMEOUT | ```int``` | ```3600``` | Specify a systemwide Redis keys life time
| SECRET_KEY_CHECK_LEGACY_USER | ```string``` | ```None``` | Enables and specifies the token to use for the legacy user endpoint.
Expand Down Expand Up @@ -206,4 +206,3 @@ Contributions are what make the open source community such an amazing place to b
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

Loading

0 comments on commit 8846c98

Please sign in to comment.