Skip to content

Commit

Permalink
build: Add support for Python 3.7 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
chyroc authored Sep 26, 2024
1 parent 62f5e83 commit 058608e
Show file tree
Hide file tree
Showing 5 changed files with 426 additions and 430 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: ["ubuntu-latest"]
os-label: ["Ubuntu"]
python-version: [ "3.7","3.8", "3.9", "3.10", "3.11", "3.12" ]
os: [ "ubuntu-latest" ]
os-label: [ "Ubuntu" ]
include:
- {python-version: "3.8", os: "windows-latest", os-label: "Windows"}
- {python-version: "3.8", os: "macos-latest", os-label: "macOS"}
- { python-version: "3.8", os: "windows-latest", os-label: "Windows" }
- { python-version: "3.8", os: "macos-latest", os-label: "macOS" }
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
name: "Test success"
if: always()
runs-on: ubuntu-latest
needs: [test]
needs: [ test ]
steps:
- name: "Success"
if: needs.test.result == 'success'
Expand Down
28 changes: 28 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
## Setting up the environment

create a virtual environment:

```shell
python -m venv ./.venv
```

active the virtual environment:

```shell
source ./.venv/bin/activate
```

We use [Poetry](https://python-poetry.org/) to manage dependencies, you can install it by:

```shell
python -m pip install poetry
```

And then install dependencies:

```shell
poetry install
```

Run the code

## Pre Commit

```shell
Expand Down
3 changes: 1 addition & 2 deletions cozepy/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
Optional,
Union,
List,
get_origin,
get_args,
Iterator,
)
from typing_extensions import get_args, get_origin # compatibility with python 3.7

import httpx
from httpx import Response
Expand Down
Loading

0 comments on commit 058608e

Please sign in to comment.