diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml new file mode 100644 index 0000000..5639973 --- /dev/null +++ b/.github/workflows/pythonapp.yml @@ -0,0 +1,30 @@ +name: Python application + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Lint with flake8 + run: | + pip install flake8 + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pip install pytest + pytest diff --git a/First_edition_2014/requirements.txt b/First_edition_2014/requirements.txt index 7d93487..69a3f35 100644 --- a/First_edition_2014/requirements.txt +++ b/First_edition_2014/requirements.txt @@ -1,4 +1,4 @@ -Flask==0.10.1 +Flask==1.0 SQLAlchemy==0.9.7 bpython==0.13.1 coverage==3.7.1 @@ -8,6 +8,6 @@ ipython==0.13.2 matplotlib==1.3.1 nose==1.3.0 numpy==1.8.2 -scapy==2.2.0 +scapy==2.4.1 scikit-learn==0.14.1 scipy==0.12.1 \ No newline at end of file diff --git a/README.md b/README.md index ee23985..59665cc 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ -## Python & Algorithms Book +## Book on Python, Algorithms, and Data Structures -➡️ [PDF (1st edition, 2014, published by Hanbit Media)](https://github.com/bt3gl/Python-and-Algorithms-and-Data-Structures/blob/master/First_edition_2014/ebook_pdf/book_second_edition.pdf) and [source code](https://github.com/bt3gl/Python-and-Algorithms-and-Data-Structures/blob/master/First_edition_2014). +➡️ [PDF (1st edition, 2013, published by Hanbit Media in 2015)](https://github.com/bt3gl/Python-and-Algorithms-and-Data-Structures/blob/master/First_edition_2014/ebook_pdf/book_second_edition.pdf) and [source code](https://github.com/bt3gl/Python-and-Algorithms-and-Data-Structures/blob/master/First_edition_2014). -➡️ [Source code (2nd edition, 2019)](https://github.com/bt3gl/Python-and-Algorithms-and-Data-Structures/blob/master/Second_edition_2019). +➡️ [Source code (2nd edition, 2019, ported to Python 3.7)](https://github.com/bt3gl/Python-and-Algorithms-and-Data-Structures/blob/master/Second_edition_2019). ## License This work is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/). -When making a reference to my work, please use my [website](http://bt3gl.github.io/index.html). + diff --git a/requirements.txt b/requirements.txt index 7d93487..69a3f35 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Flask==0.10.1 +Flask==1.0 SQLAlchemy==0.9.7 bpython==0.13.1 coverage==3.7.1 @@ -8,6 +8,6 @@ ipython==0.13.2 matplotlib==1.3.1 nose==1.3.0 numpy==1.8.2 -scapy==2.2.0 +scapy==2.4.1 scikit-learn==0.14.1 scipy==0.12.1 \ No newline at end of file