Skip to content

Commit ed2d87f

Browse files
cclaussgithub-actionsdhruvmanila
authored andcommitted
Python 3.9 (TheAlgorithms#3926)
* Upgrade to Python 3.9 * pip install wheel for faster builds * updating DIRECTORY.md * requirements.txt: tensorflow; python_version < '3.9' * keras requires tensorflow * Rename lstm_prediction.py to lstm_prediction.py_tf * Update requirements.txt * updating DIRECTORY.md * Update requirements.txt Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: Dhruv Manilawala <[email protected]>
1 parent 60aca93 commit ed2d87f

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

Diff for: .github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-python@v2
1414
with:
15-
python-version: "3.8"
15+
python-version: "3.9"
1616
- uses: actions/cache@v2
1717
with:
1818
path: ~/.cache/pip
1919
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
2020
- name: Install dependencies
2121
run: |
22-
python -m pip install --upgrade pip setuptools six
22+
python -m pip install --upgrade pip setuptools six wheel
2323
python -m pip install pytest-cov -r requirements.txt
2424
- name: Run tests
2525
run: pytest --doctest-modules --ignore=project_euler/ --cov-report=term-missing:skip-covered --cov=. .

Diff for: DIRECTORY.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,6 @@
356356
* [Linear Discriminant Analysis](https://github.com/TheAlgorithms/Python/blob/master/machine_learning/linear_discriminant_analysis.py)
357357
* [Linear Regression](https://github.com/TheAlgorithms/Python/blob/master/machine_learning/linear_regression.py)
358358
* [Logistic Regression](https://github.com/TheAlgorithms/Python/blob/master/machine_learning/logistic_regression.py)
359-
* Lstm
360-
* [Lstm Prediction](https://github.com/TheAlgorithms/Python/blob/master/machine_learning/lstm/lstm_prediction.py)
361359
* [Multilayer Perceptron Classifier](https://github.com/TheAlgorithms/Python/blob/master/machine_learning/multilayer_perceptron_classifier.py)
362360
* [Polymonial Regression](https://github.com/TheAlgorithms/Python/blob/master/machine_learning/polymonial_regression.py)
363361
* [Random Forest Classifier](https://github.com/TheAlgorithms/Python/blob/master/machine_learning/random_forest_classifier.py)
@@ -866,6 +864,7 @@
866864
* [Covid Stats Via Xpath](https://github.com/TheAlgorithms/Python/blob/master/web_programming/covid_stats_via_xpath.py)
867865
* [Crawl Google Results](https://github.com/TheAlgorithms/Python/blob/master/web_programming/crawl_google_results.py)
868866
* [Crawl Google Scholar Citation](https://github.com/TheAlgorithms/Python/blob/master/web_programming/crawl_google_scholar_citation.py)
867+
* [Currency Converter](https://github.com/TheAlgorithms/Python/blob/master/web_programming/currency_converter.py)
869868
* [Current Stock Price](https://github.com/TheAlgorithms/Python/blob/master/web_programming/current_stock_price.py)
870869
* [Current Weather](https://github.com/TheAlgorithms/Python/blob/master/web_programming/current_weather.py)
871870
* [Daily Horoscope](https://github.com/TheAlgorithms/Python/blob/master/web_programming/daily_horoscope.py)

Diff for: requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
beautifulsoup4
22
fake_useragent
3-
keras
3+
keras; python_version < '3.9'
44
lxml
55
matplotlib
66
numpy
@@ -13,5 +13,5 @@ scikit-fuzzy
1313
sklearn
1414
statsmodels
1515
sympy
16-
tensorflow
16+
tensorflow; python_version < '3.9'
1717
xgboost

0 commit comments

Comments
 (0)