Skip to content

Commit 579b006

Browse files
committed
Revert back license to work with Py 3.8
1 parent c112afb commit 579b006

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,26 @@ jobs:
5252
pip install --default-timeout=100 --no-cache-dir -r requirements.txt
5353
5454
if [ "${{ matrix.python-version }}" != "3.14" ] && [ "${{ matrix.python-version }}" != "3.8" ]; then
55+
# This block runs if the version IS NOT 3.14 or 3.8
5556
# Using a retry loop for large DL frameworks to handle transient network issues
57+
echo "Installing deep learning libraries."
5658
for i in {1..3}; do
5759
pip install --default-timeout=100 --no-cache-dir tensorflow && break || \
5860
(echo "Retry $i failed, waiting 10s..." && sleep 10)
5961
done
6062
pip install --upgrade keras
6163
pip install torch
64+
else
65+
# This block runs if the version IS 3.14 or 3.8
66+
echo "Skipping heavy deep learning libraries for Python ${{ matrix.python-version }}."
6267
fi
6368
69+
# Verify the core deep learning frameworks
70+
echo "Verifying installations..."
71+
python -c "import tensorflow; print('TensorFlow version:', tensorflow.__version__)" || echo "TensorFlow not installed"
72+
python -c "import keras; print('Keras version:', keras.__version__)" || echo "Keras not installed"
73+
python -c "import torch; print('PyTorch version:', torch.__version__)" || echo "PyTorch not installed"
74+
6475
# Build the PyGAD package distribution (generating .tar.gz and .whl files).
6576
# This ensures the package build process is valid on this Python version.
6677
- name: Build PyGAD

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ version = "3.6.0"
1313
description = "PyGAD: A Python Library for Building the Genetic Algorithm and Training Machine Learning Algoithms (Keras & PyTorch)."
1414
readme = {file = "README.md", content-type = "text/markdown"}
1515
requires-python = ">=3"
16-
# license = {file = "LICENSE"}
17-
license = "BSD-3-Clause"
18-
license-files = ["LICENSE"]
16+
license = {file = "LICENSE"}
17+
# license = "BSD-3-Clause"
18+
# license-files = ["LICENSE"]
1919
authors = [
2020
{name = "Ahmed Gad", email = "ahmed.f.gad@gmail.com"},
2121
]

0 commit comments

Comments
 (0)