Skip to content

Commit

Permalink
Bump Python version to 3.9 in Docker and setup.py (#974)
Browse files Browse the repository at this point in the history
* Bump Python version to 3.9 in Docker and setup.py

* update setup.py

* update the docs with the change

* update the changelog

* pin the python version for the fidesctl ci check

* Update setup.py

Co-authored-by: Paul Sanders <[email protected]>

* Update docs/fides/docs/installation/prerequisites_dependencies.md

Co-authored-by: Paul Sanders <[email protected]>

Co-authored-by: Paul Sanders <[email protected]>
  • Loading branch information
ThomasLaPiana and sanders41 authored Aug 10, 2022
1 parent b9a38ac commit 6e7c80b
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"

- name: Install Nox
run: pip install nox>=2022

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
with:
fetch-depth: 0 # This is required to properly tag packages

- name: Setup Python 3.8
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Use Node.js 16
uses: actions/setup-node@v2
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ The types of changes are:

### Changed

* Upgraded base Docker version to Python 3.9 and updated all other references from 3.8 -> 3.9 [#974](https://github.com/ethyca/fides/pull/974)

## [1.8.1](https://github.com/ethyca/fides/compare/1.8.0...1.8.1) - 2022-08-08

### Deprecated
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 python:3.8-slim-bullseye as base
FROM --platform=linux/amd64 python:3.9-slim-bullseye as base

# Update pip in the base image since we'll use it everywhere
RUN pip install -U pip
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Fides (_fee-dhez_, Latin: Fidēs) is an open-source tool that allows you to easi

* **Optional:** [`pipx`](https://pypa.github.io/pipx/) for environment isolation. The following documentation assumes `pipx` is installed, but `pip` commands can be substituted when needed.
* [Docker](https://www.docker.com/products/docker-desktop) (20.10.8+) and [Docker Compose](https://docs.docker.com/compose/install/) (1.29.0+)
* [Python](https://www.python.org/downloads/) (3.8+)
* [Python](https://www.python.org/downloads/) (3.9+)
* [Nox](https://nox.thea.codes/en/stable/) (`pipx install nox`)

### Getting Started
Expand Down Expand Up @@ -130,19 +130,19 @@ The Fides core team is committed to providing a variety of documentation to help
For more information on getting started with Fides, how to configure and set up Fides, and more about the Fides ecosystem of open source projects:
- Documentation: <https://ethyca.github.io/fides/>
- Tutorial: <https://ethyca.github.io/fides/tutorial/>
- Installation: <https://ethyca.github.io/fides/installation/installation/>
- Roadmap: <https://github.com/ethyca/fides/projects>
- Website: www.ethyca.com/fides
* Documentation: <https://ethyca.github.io/fides/>
* Tutorial: <https://ethyca.github.io/fides/tutorial/>
* Installation: <https://ethyca.github.io/fides/installation/installation/>
* Roadmap: <https://github.com/ethyca/fides/projects>
* Website: www.ethyca.com/fides
### Support
Join the conversation on:
- [Slack](https://fid.es/join-slack)
- [Twitter](https://twitter.com/ethyca)
- [Discussions](https://github.com/ethyca/fides/discussions)
* [Slack](https://fid.es/join-slack)
* [Twitter](https://twitter.com/ethyca)
* [Discussions](https://github.com/ethyca/fides/discussions)
### Contributing
Expand Down
2 changes: 1 addition & 1 deletion docs/fides/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8-slim-bullseye
FROM python:3.9-slim-bullseye

# Install auxiliary software
RUN apt-get update
Expand Down
2 changes: 1 addition & 1 deletion docs/fides/docs/installation/prerequisites_dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Fidesctl supports the following Python versions:

* Python: 3.8
* Python: 3.9+

Fidesctl supports the following databases as the application database:

Expand Down
2 changes: 1 addition & 1 deletion docs/fides/docs/tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The app itself is the [Flask tutorial app](https://flask.palletsprojects.com/en/
Before beginning, ensure you have the following software installed and configured to your liking:

* Docker (v12+)
* Python (v3.8+)
* Python (v3.9+)
* `pg_config` (required for the Python project. Installed via Homebrew with `brew install libpq` or `brew install postgres`.)

### Installation
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ethyca/fides",
entry_points={"console_scripts": ["fidesctl=fidesctl.cli:cli","fides=fidesctl.cli:cli"]},
python_requires=">=3.8, <4",
entry_points={
"console_scripts": ["fidesctl=fidesctl.cli:cli", "fides=fidesctl.cli:cli"]
},
python_requires=">=3.9, <4",
package_dir={"": "src"},
packages=find_packages(where="src"),
include_package_data=True,
Expand All @@ -58,8 +60,8 @@
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries",
],
)

0 comments on commit 6e7c80b

Please sign in to comment.