Skip to content

Commit

Permalink
Drop Python 2 and 3.5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rycus86 committed Apr 5, 2022
1 parent a76fdb7 commit 02b2ea3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test-and-publish.yml
Expand Up @@ -9,7 +9,12 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -25,7 +30,7 @@ jobs:
run: |
python -m coverage run --branch --source=prometheus_flask_exporter -m unittest discover -s tests -v
- name: Upload coverage report
if: always() && matrix.python-version == '3.9'
if: always() && matrix.python-version == '3.10'
run: |
coveralls --service=github
env:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -24,7 +24,7 @@ or paste it into requirements.txt:
prometheus-flask-exporter
# or with specific version number
prometheus-flask-exporter==0.19.0
prometheus-flask-exporter==0.20.0
```
and then install dependencies from requirements.txt file as usual:
```
Expand Down
8 changes: 4 additions & 4 deletions prepare_release.sh
Expand Up @@ -7,7 +7,7 @@ fi

VERSION="$1"

sed -i "s/version=.*,/version='${VERSION}',/" setup.py
sed -i "s#download_url=.*,#download_url='https://github.com/rycus86/prometheus_flask_exporter/archive/${VERSION}.tar.gz',#" setup.py
sed -i "s/__version__ = '.*'/__version__ = '${VERSION}'/" prometheus_flask_exporter/__init__.py
sed -i "s/prometheus-flask-exporter==.*/prometheus-flask-exporter==${VERSION}/" README.md
sed -i '' "s/version=.*,/version='${VERSION}',/" setup.py
sed -i '' "s#download_url=.*,#download_url='https://github.com/rycus86/prometheus_flask_exporter/archive/${VERSION}.tar.gz',#" setup.py
sed -i '' "s/__version__ = '.*'/__version__ = '${VERSION}'/" prometheus_flask_exporter/__init__.py
sed -i '' "s/prometheus-flask-exporter==.*/prometheus-flask-exporter==${VERSION}/" README.md
2 changes: 1 addition & 1 deletion prometheus_flask_exporter/__init__.py
Expand Up @@ -959,4 +959,4 @@ def _make_response(response):
return _make_response


__version__ = '0.19.0'
__version__ = '0.20.0'
10 changes: 4 additions & 6 deletions setup.py
Expand Up @@ -6,30 +6,28 @@
setup(
name='prometheus_flask_exporter',
packages=['prometheus_flask_exporter'],
version='0.19.0',
version='0.20.0',
description='Prometheus metrics exporter for Flask',
long_description=long_description,
long_description_content_type='text/markdown',
license='MIT',
author='Viktor Adam',
author_email='rycus86@gmail.com',
url='https://github.com/rycus86/prometheus_flask_exporter',
download_url='https://github.com/rycus86/prometheus_flask_exporter/archive/0.19.0.tar.gz',
download_url='https://github.com/rycus86/prometheus_flask_exporter/archive/0.20.0.tar.gz',
keywords=['prometheus', 'flask', 'monitoring', 'exporter'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: System :: Monitoring',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9'
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
install_requires=['prometheus_client', 'flask'],
)

0 comments on commit 02b2ea3

Please sign in to comment.