Skip to content

Commit

Permalink
merge: support python3.10 (#11)
Browse files Browse the repository at this point in the history
* chore(*): support python version `3.10`

* docs: cleanup removal of python 3.7

* fix: make gh actions use python3.10
  • Loading branch information
MatteoVoges authored Jul 31, 2023
1 parent c37f883 commit 317efa9
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 117 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pex-build-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Build Pex
run: |-
mkdir -p dist
pex .[gojsonnet] -r requirements.txt --python-shebang='#!/usr/bin/env python3' --python=python3.7 --python=python3.8 --python=python3.9 -m kapitan -o dist/kapitan.linux-x86_64.pex
pex .[gojsonnet] -r requirements.txt --python-shebang='#!/usr/bin/env python3' --python=python3.8 --python=python3.9 --python=python3.10 -m kapitan -o dist/kapitan.linux-x86_64.pex
- name: Add linux-x86_64 pex to assets
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
python-version: [3.8, 3.9, '3.10']

steps:
- name: Checkout kapitan recursively
Expand Down
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,25 @@ On Linux you can add `-u $(id -u)` to `docker run` to preserve file permissions.

### Pip

Kapitan needs Python 3.7.
Kapitan needs Python 3.8.

#### Install Python 3.7
#### Install Python

* Linux: `sudo apt-get update && sudo apt-get install -y python3.7-dev python3-pip python3-yaml git`
* Mac: `brew install python3 libyaml git libmagic`
* Linux:

```shell
sudo apt-get update && sudo apt-get install -y python3 python3-pip python3-yaml git
```

* Mac:

```shell
brew install python3 libyaml git libmagic
```

#### Install Kapitan

User (`$HOME/.local/lib/python3.7/bin` on Linux or `$HOME/Library/Python/3.7/bin` on macOS):
User (`$HOME/.local/lib/python3/bin` on Linux or `$HOME/Library/Python/3/bin` on macOS):

```shell
pip3 install --user --upgrade kapitan
Expand Down
6 changes: 3 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
=== "Linux"

```shell
sudo apt-get update && sudo apt-get install -y python3.8-dev python3-pip python3-yaml
sudo apt-get update && sudo apt-get install -y python3 python3-pip python3-yaml
```

=== "Mac"
Expand All @@ -77,7 +77,7 @@
=== "Linux"

!!! note ""
`kapitan` will be installed in `$HOME/.local/lib/python3.7/bin`
`kapitan` will be installed in `$HOME/.local/lib/python3/bin`

```shell
pip3 install --user --upgrade kapitan
Expand All @@ -86,7 +86,7 @@
=== "Mac"

!!! note ""
`kapitan` will be installed in `$HOME/Library/Python/3.7/bin`
`kapitan` will be installed in `$HOME/Library/Python/3/bin`

```shell
pip3 install --user --upgrade kapitan
Expand Down
Loading

0 comments on commit 317efa9

Please sign in to comment.