Skip to content

Commit 3c8a62b

Browse files
committed
Add dependencies for testing
1 parent 7627dcb commit 3c8a62b

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
run: |
4949
python -m pip install --upgrade pip
5050
pip install -r requirements.txt
51+
pip install keras tensorflow torch
5152
5253
# Build the PyGAD package distribution (generating .tar.gz and .whl files).
5354
# This ensures the package build process is valid on this Python version.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ dependencies = [
5555
"Donation Paypal" = "http://paypal.me/ahmedfgad"
5656

5757
[project.optional-dependencies]
58-
deep_learning = ["keras", "torch"]
58+
deep_learning = ["keras", "tensorflow", "torch"]
5959

6060
# PyTest Configuration. Later, PyTest will support the [tool.pytest] table.
6161
[tool.pytest.ini_options]

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
version="3.6.0",
99
author="Ahmed Fawzy Gad",
1010
install_requires=["numpy", "matplotlib", "cloudpickle",],
11-
author_email="ahmed.f.gad@gmail.com",
11+
extras_require={
12+
"deep_learning": ["keras", "tensorflow", "torch"],
13+
},
14+
author_email="ahmed.f.gad@gmail.com",
15+
1216
description="PyGAD: A Python Library for Building the Genetic Algorithm and Training Machine Learning Algoithms (Keras & PyTorch).",
1317
long_description=long_description,
1418
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)