Skip to content

Commit

Permalink
Remove travis
Browse files Browse the repository at this point in the history
  • Loading branch information
silentsokolov committed Dec 11, 2020
1 parent b46863d commit 621c0ac
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 36 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: "build"

on:
pull_request:
push:
branches: master

jobs:
build:
name: Python ${{ matrix.python-version }} | Flask ${{ matrix.flask-version }} | Ubuntu
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: 2.7
flask-version: "0.10.*"
- python-version: 2.7
flask-version: "0.11.*"

- python-version: 3.6
flask-version: "0.12.*"
- python-version: 3.6
flask-version: "1.0.*"
- python-version: 3.6
flask-version: "1.1.*"

- python-version: 3.7
flask-version: "1.0.*"
- python-version: 3.7
flask-version: "1.1.*"

- python-version: 3.8
flask-version: "1.0.*"
- python-version: 3.8
flask-version: "1.1.*"

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install Flask ${{ matrix.flask-version }}
run: |
pip install Flask==${{ matrix.flask-version }}
pip install pillow
pip install codecov
pip install mock
- name: Run tests
run: |
PYTHONPATH=".:tests:$PYTHONPATH" coverage run --omit='setup.py' --omit='tests/*' --source='.' setup.py test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

32 changes: 32 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: PyPI Release

on:
push:
tags:
- 'v*'

jobs:
publish:
name: PyPI Release
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9

- name: Upgrade Setuptools
run: pip install --upgrade setuptools wheel

- name: Build Distribution
run: python setup.py sdist bdist_wheel --universal

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## [Unreleased]

## [1.0.7] - 2020-12-07
### Added
- Flask 1.1 compatibility

## [1.0.6] - 2018-07-07
### Added
- Flask 1.0 compatibility

## [1.0.4] - 2018-04-15
### Fix
- Update setup.py

## [1.0.2] - 2017-06-07
### Fix
- Fix "mkdirs" py2/py3 compatibility

## [1.0.1] - 2017-05-07
### Add
- Support for single integer size values for square thumbnails
- Fix the event someone uses the Thumbnail constructor without passing in the app

## [1.0.0] - 2017-04-07
### Add
- Add custom thumbnail storage
- Support python 3.4+
- Test code

[Unreleased]: https://github.com/silentsokolov/flask-thumbnails/compare/v0.1.7...HEAD
[0.1.7]: https://github.com/silentsokolov/flask-thumbnails/compare/v0.1.6...v0.1.7
[0.1.6]: https://github.com/silentsokolov/flask-thumbnails/compare/v0.1.5...v0.1.6
[0.1.4]: https://github.com/silentsokolov/flask-thumbnails/compare/v0.1.3...v0.1.4
[0.1.2]: https://github.com/silentsokolov/flask-thumbnails/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/silentsokolov/flask-thumbnails/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/silentsokolov/flask-thumbnails/compare/v0.1.0...v0.1.0
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ pre-release: sdist wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*

clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . | grep -E '(__pycache__|\.pyc|\.pyo$)' | xargs rm -rf
rm -rf build
rm -rf dist
rm -rf *.egg-info
rm -rf *.egg-info
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. image:: https://travis-ci.org/silentsokolov/flask-thumbnails.svg?branch=master
:target: https://travis-ci.org/silentsokolov/flask-thumbnails
.. image:: https://github.com/silentsokolov/flask-thumbnails/workflows/build/badge.svg?branch=master
:target: https://github.com/silentsokolov/flask-thumbnails/actions?query=workflow%3Abuild+branch%3Amaster

.. image:: https://codecov.io/gh/silentsokolov/flask-thumbnails/branch/master/graph/badge.svg
:target: https://codecov.io/gh/silentsokolov/flask-thumbnails
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_packages(package):
packages=get_packages('flask_thumbnails'),
include_package_data=True,
install_requires=[],
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
zip_safe=False,
platforms='any',
test_suite='tests',
Expand All @@ -44,9 +44,10 @@ def get_packages(package):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Utilities',
]
)

0 comments on commit 621c0ac

Please sign in to comment.