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

chore: support python version 3.10 #997

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
MatteoVoges marked this conversation as resolved.
Show resolved Hide resolved
- 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 supports Python 3.8, 3.9 and 3.10.

#### 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
Loading