Skip to content

Commit

Permalink
Move to supporting python3.6+ only
Browse files Browse the repository at this point in the history
as prior versions are have reached end-of-life
  • Loading branch information
ushkarev committed Nov 10, 2020
1 parent fa55045 commit d0160c5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions moj_irat/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VERSION = (0, 5)
__version__ = '.'.join(map(str, VERSION))
__author__ = 'Ministry of Justice Digital & Technology'
17 changes: 12 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
#!/usr/bin/env python
import importlib
import os
import sys
import warnings

from setuptools import setup

if sys.version_info[0:2] < (3, 6):
warnings.warn('This package is tested with Python version 3.6+')

root_path = os.path.abspath(os.path.dirname(__file__))

with open(os.path.join(root_path, 'README.rst')) as readme:
Expand All @@ -11,17 +17,19 @@
install_requires = ['Django>=2.2,<4', 'requests']
tests_require = ['flake8', 'responses']

package_info = importlib.import_module('moj_irat')

setup(
name='django-moj-irat',
version='0.5',
author='Ministry of Justice Digital & Technology',
version=package_info.__version__,
author=package_info.__author__,
author_email='dev@digital.justice.gov.uk',
url='https://github.com/ministryofjustice/django-moj-irat',
packages=['moj_irat'],
include_package_data=True,
license='MIT',
description="Tools to support adding a Django-based service to "
"Ministry of Justice's Incidence Response and Tuning",
description='Tools to support adding a Django-based service to '
'Ministry of Justices Incidence Response and Tuning',
long_description=README,
keywords='moj django irat monitoring',
classifiers=[
Expand All @@ -32,7 +40,6 @@
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
Expand Down

0 comments on commit d0160c5

Please sign in to comment.