Skip to content

Commit

Permalink
Merge pull request #34 from Scalr/SCALRCORE-32679
Browse files Browse the repository at this point in the history
SCALRCORE-32679 add python 3.13
  • Loading branch information
mermoldy authored Oct 18, 2024
2 parents 9f9876d + c88e7cd commit 34ad7ff
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
- [ubuntu-latest, manylinux, "x86_64 aarch64"]
- [macos-13, macosx, x86_64]
- [macos-14, macosx, arm64]
python: ["cp38", "cp39", "cp310", "cp311", "cp312"]
python: ["cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]

steps:
- name: Checkout
Expand All @@ -78,7 +78,7 @@ jobs:

- name: Build wheels on linux
if: ${{ matrix.buildplat[1] == 'manylinux' }}
uses: pypa/cibuildwheel@v2.19.2
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_ENVIRONMENT: PATH=$(pwd)/go/bin:$PATH
CIBW_BEFORE_BUILD: sh pre-build-command.sh
Expand All @@ -88,7 +88,7 @@ jobs:

- name: Build wheels on macos
if: ${{ matrix.buildplat[1] == 'macosx' }}
uses: pypa/cibuildwheel@v2.16.2
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_ENVIRONMENT: PATH=$(pwd)/go/bin:$PATH
CIBW_BEFORE_BUILD: sh pre-build-command.sh
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
[![pygohcl python package](https://github.com/Scalr/pygohcl/actions/workflows/default.yml/badge.svg)](https://github.com/Scalr/pygohcl/actions/workflows/default.yml)

# pygohcl

Python wrapper for [hashicorp/hcl](https://github.com/hashicorp/hcl) (v2).

## Requirements
The following versions are supported - 3.8, 3.9, 3.10, 3.11, 3.12.

The following versions are supported - 3.8, 3.9, 3.10, 3.11, 3.12, 3.13.

## Setup

```sh
pip install pygohcl
```

## Usage

```py
>>> import pygohcl
>>> pygohcl.loads("""variable "docker_ports" {
Expand All @@ -32,7 +36,9 @@ pip install pygohcl
```

## Building locally

You can use the following commands to build a wheel for your platform:

```sh
pip install wheel
python setup.py bdist_wheel
Expand Down
2 changes: 1 addition & 1 deletion build-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -e

mkdir -p ./macos-dist
rm -fr ./macos-dist/*.whl
for VERSION in 3.8.10 3.9.16 3.10.10 3.11.3 3.12.0
for VERSION in 3.8.10 3.9.16 3.10.10 3.11.3 3.12.0, 3.13.0
do
# Assumes that all python version are pre-installed.
# pyenv install -v ${VERSION}
Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
attrs==23.2.0
auditwheel==5.4.0
cffi==1.16.0
cffi==1.17.1
importlib-metadata==7.0.1
more-itertools==10.2.0
packaging==23.2
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
],
packages=find_packages(),
install_requires=["cffi>=1.0.0"],
setup_requires=["cffi>=1.0.0", "setuptools-golang", "setuptools_scm"],
install_requires=["cffi>=1.17.0"],
setup_requires=["cffi>=1.17.0", "setuptools-golang", "setuptools_scm"],
build_golang={"root": "github.com/Scalr/pygohcl"},
ext_modules=[Extension("pygohcl", ["pygohcl.go"])],
cffi_modules=["pygohcl/build_cffi.py:ffi",],
Expand Down

0 comments on commit 34ad7ff

Please sign in to comment.