Skip to content

Commit

Permalink
update min Python version to 3.6 as 3.5 is no longer maintained
Browse files Browse the repository at this point in the history
  • Loading branch information
girardinsamuel committed Sep 26, 2020
1 parent bdd4c0e commit 700dd83
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 42 deletions.
2 changes: 1 addition & 1 deletion cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pypi_username": "{{ cookiecutter.github_username }}",
"version": "0.0.1",
"repository": "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}",
"python_min": "3.5",
"python_min": "3.6",
"open_source_license": [
"MIT license",
"BSD license",
Expand Down
44 changes: 21 additions & 23 deletions {{cookiecutter.project_slug}}/.github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,31 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.5', '3.6', '3.7', '3.8' ]
python-version: ["3.6", "3.7", "3.8"]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
make init
- name: Test with pytest
run: |
make test
- name: Install dependencies
run: |
make init
- name: Test with pytest
run: |
make test
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Intall Flake8
run: |
pip install flake8
- name: Lint
run: make lint


- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Intall Flake8
run: |
pip install flake8
- name: Lint
run: make lint
36 changes: 18 additions & 18 deletions {{cookiecutter.project_slug}}/.github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
make init
make test
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
make init
make test
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit 700dd83

Please sign in to comment.