Skip to content

Commit 18948a6

Browse files
authored
Support Python 3.12 (#745)
* feat: support python 3.12 * doc: update README about deprecation notice * doc: update README.md
1 parent 0e0e163 commit 18948a6

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

.circleci/config.yml

+20
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,25 @@ jobs:
177177
command: |
178178
python setup.py test
179179
180+
build-test-python312:
181+
docker:
182+
- image: python:3.12
183+
working_directory: ~/repo
184+
steps:
185+
- checkout
186+
- run:
187+
name: make sure install works
188+
command: |
189+
pip install .
190+
- run:
191+
name: view installed packages
192+
command: |
193+
pip freeze
194+
- run:
195+
name: unit test
196+
command: |
197+
python setup.py test
198+
180199
workflows:
181200
version: 2
182201
build:
@@ -185,3 +204,4 @@ workflows:
185204
- build-python39
186205
- build-test-python310
187206
- build-test-python311
207+
- build-test-python312

.github/workflows/publish-pypi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
# you have to quote any version number ending in a 0 or gh truncates it. ie 3.10 turned into 3.1
14-
python-version: [ 3.8, '3.10', 3.11 ]
14+
python-version: [ 3.8, '3.10', 3.11, 3.12 ]
1515
os: [ ubuntu-latest ] #in the future we should add windows here
1616
runs-on: ${{ matrix.os }}
1717
steps:

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
[![Updates](https://pyup.io/repos/github/alpacahq/alpaca-trade-api-python/shield.svg)](https://pyup.io/repos/github/alpacahq/alpaca-trade-api-python/)
44
[![Python 3](https://pyup.io/repos/github/alpacahq/alpaca-trade-api-python/python-3-shield.svg)](https://pyup.io/repos/github/alpacahq/alpaca-trade-api-python/)
55

6+
# Deprecation Notice
7+
8+
A new python SDK, [Alpaca-py](https://github.com/alpacahq/alpaca-py), is available. This SDK will be the primary python SDK starting in 2023. We recommend moving over your code to use the new SDK. Keep in mind, we will be maintaining this repo as usual until the end of 2022.
9+
610
# alpaca-trade-api-python
711

812
`alpaca-trade-api-python` is a python library for the [Alpaca Commission Free Trading API](https://alpaca.markets).
@@ -12,10 +16,6 @@ please see the online [API document](https://alpaca.markets/docs/api-documentati
1216

1317
Note that this package supports only python version 3.7 and above.
1418

15-
## Deprecation Notice
16-
17-
A new python SDK, [Alpaca-py](https://github.com/alpacahq/alpaca-py), is available. This SDK will be the primary python SDK starting in 2023. We recommend slowly moving over your code to use the new SDK. Keep in mind, we will be maintaining this repo as usual until the end of 2022.
18-
1919
## Install
2020
We support python>=3.7. If you want to work with python 3.6, please note that these package dropped support for python <3.7 for the following versions:
2121
```

requirements/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ urllib3>1.24,<2
55
websocket-client>=0.56.0,<2
66
websockets>=9.0,<11
77
msgpack==1.0.3
8-
aiohttp==3.8.3
8+
aiohttp>=3.8.3,<4
99
PyYAML==6.0.1
1010
deprecation==2.1.0

0 commit comments

Comments
 (0)