Skip to content

Commit aac7d7a

Browse files
stuff
1 parent 13468bd commit aac7d7a

6 files changed

Lines changed: 82 additions & 293 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Python application
55

66
on:
77
push:
8-
branches: [ "master" ]
8+
branches: ["master"]
99
pull_request:
10-
branches: [ "master" ]
10+
branches: ["master"]
1111

1212
permissions:
1313
contents: read
@@ -22,36 +22,36 @@ jobs:
2222
runs-on: ${{ matrix.os }}
2323

2424
steps:
25-
- uses: actions/checkout@v4
26-
- name: Set up build tools on Windows
27-
if: runner.os == 'Windows'
28-
uses: msys2/setup-msys2@v2
29-
with:
30-
msystem: MINGW64
31-
update: true
32-
install: >-
33-
mingw-w64-x86_64-gcc
34-
make
35-
- name: Set up Python 3.10
36-
uses: actions/setup-python@v3
37-
with:
38-
python-version: ${{ matrix.python-version }}
39-
- name: Install dependencies
40-
run: |
41-
python -m pip install --upgrade pip
42-
pip install ruff pytest
43-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
44-
shell: bash
45-
- name: Lint with ruff
46-
run: |
47-
ruff check .
48-
shell: bash
49-
- name: Build C library
50-
run: make CC=gcc -C include
51-
shell: bash
52-
- name: Test with pytest
53-
env:
54-
CC: gcc
55-
run: |
56-
pytest
57-
shell: bash
25+
- uses: actions/checkout@v4
26+
- name: Set up build tools on Windows
27+
if: runner.os == 'Windows'
28+
uses: msys2/setup-msys2@v2
29+
with:
30+
msystem: MINGW64
31+
update: true
32+
install: >-
33+
mingw-w64-x86_64-gcc
34+
make
35+
- name: Set up Python 3.10
36+
uses: actions/setup-python@v3
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
- name: Install dependencies
40+
run: |
41+
python -m pip install --upgrade pip
42+
pip install ruff pytest
43+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
44+
shell: bash
45+
- name: Lint with ruff
46+
run: |
47+
ruff check .
48+
shell: bash
49+
- name: Build C library
50+
run: make CC=gcc -C include
51+
shell: bash
52+
- name: Test with pytest
53+
env:
54+
CC: gcc
55+
run: |
56+
pytest
57+
shell: bash

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ build-backend = "setuptools.build_meta"
55
[project]
66
dynamic = ["version"]
77
name = "keras2c"
8-
requires-python = ">=3.7"
8+
requires-python = ">=3.7, <=3.12"
99
dependencies = [
1010
"tensorflow>=2.0",
1111
"keras",
12-
"numpy>=1.13.0",
13-
"pydantic>=1.10,<2",
12+
"numpy",
13+
"pydantic",
1414
]
1515
authors = [
1616
{name = "Rory Conlin", email = "wconlin@princeton.edu"},
@@ -19,7 +19,8 @@ authors = [
1919
{name = "Egemen Kolemen", email = "ekolemen@princeton.edu"},
2020
]
2121
maintainers = [
22-
{name = "Peter Steiner", email = "peter.steiner@princeton.edu"}
22+
{name = "Peter Steiner", email = "peter.steiner@princeton.edu"},
23+
{name = "Nathaniel Chen", email = "nathaniel@princeton.edu"}
2324
]
2425
description = "A library for converting Keras neural networks to real-time compatible C."
2526
readme = "README.rst"
@@ -46,7 +47,6 @@ classifiers = [
4647
"Programming Language :: Python :: 3.10",
4748
"Programming Language :: Python :: 3.11",
4849
"Programming Language :: Python :: 3.12",
49-
"Programming Language :: Python :: 3.13",
5050
]
5151

5252
[project.urls]

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
numpy >= 1.13.0
55
tensorflow >= 2.0
66
pydantic >= 1.10, <2
7-

src/keras2c.egg-info/PKG-INFO

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Metadata-Version: 2.4
1+
Metadata-Version: 2.1
22
Name: keras2c
33
Version: 0.1
44
Summary: A library for converting Keras neural networks to real-time compatible C.
55
Author-email: Rory Conlin <wconlin@princeton.edu>, Keith Erickson <kerickso@pppl.gov>, Joseph Abbate <jabbate@princeton.edu>, Egemen Kolemen <ekolemen@princeton.edu>
6-
Maintainer-email: Peter Steiner <peter.steiner@princeton.edu>
6+
Maintainer-email: Peter Steiner <peter.steiner@princeton.edu>, Nathaniel Chen <nathaniel@princeton.edu>
77
License: LGPLv3 License
88
Project-URL: Documentation, https://f0uriest.github.io/keras2c/
99
Project-URL: Repository, https://github.com/f0uriest/keras2c/
@@ -19,15 +19,13 @@ Classifier: Programming Language :: Python :: 3.9
1919
Classifier: Programming Language :: Python :: 3.10
2020
Classifier: Programming Language :: Python :: 3.11
2121
Classifier: Programming Language :: Python :: 3.12
22-
Classifier: Programming Language :: Python :: 3.13
23-
Requires-Python: >=3.7
22+
Requires-Python: <=3.12,>=3.7
2423
Description-Content-Type: text/x-rst
2524
License-File: LICENSE
2625
Requires-Dist: tensorflow>=2.0
2726
Requires-Dist: keras
28-
Requires-Dist: numpy>=1.13.0
29-
Requires-Dist: pydantic<2,>=1.10
30-
Dynamic: license-file
27+
Requires-Dist: numpy
28+
Requires-Dist: pydantic
3129

3230
#######
3331
keras2c
@@ -37,6 +35,10 @@ keras2c
3735

3836
|License| |DOI|
3937

38+
IMPORTANT: Keras2C has started updating to be compatible with newer versions of Python on July 9th, 2025. Changes may be breaking. To use the original/stable version, use the Release v1.0.2. https://github.com/PlasmaControl/keras2c/releases/tag/v1.0.2 with the command
39+
.. code-block:: bash
40+
41+
git clone git@github.com:PlasmaControl/keras2c.git --branch v1.0.2
4042

4143
keras2c is a library for deploying keras neural networks in C99, using only standard libraries.
4244
It is designed to be as simple as possible for real time applications.

src/keras2c.egg-info/requires.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tensorflow>=2.0
22
keras
3-
numpy>=1.13.0
4-
pydantic<2,>=1.10
3+
numpy
4+
pydantic

0 commit comments

Comments
 (0)