From bc50d8e49291f7a82b1c8d15a2cd8c371665b6e1 Mon Sep 17 00:00:00 2001 From: Wes Okes Date: Fri, 8 Dec 2017 14:52:34 -0500 Subject: [PATCH] django 2 --- .travis.yml | 5 +---- db_mutex/version.py | 2 +- docs/release_notes.rst | 8 ++++++++ publish.py | 8 ++++++++ setup.py | 7 ++----- 5 files changed, 20 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1590d9a..57394a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,14 @@ sudo: false language: python python: - - '2.7' - - '3.4' - '3.5' - '3.6' env: global: - DB=postgres matrix: - - DJANGO=">=1.9,<1.10" - - DJANGO=">=1.10,<1.11" - DJANGO=">=1.11,<2.0" + - DJANGO=">=2.0,<2.1" install: - pip install -q coverage flake8 Django$DJANGO django-nose>=1.4 - python setup.py install diff --git a/db_mutex/version.py b/db_mutex/version.py index 2b8877c..1f356cc 100644 --- a/db_mutex/version.py +++ b/db_mutex/version.py @@ -1 +1 @@ -__version__ = '0.5.0' +__version__ = '1.0.0' diff --git a/docs/release_notes.rst b/docs/release_notes.rst index 9b0722f..20d0d19 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -1,6 +1,14 @@ Release Notes ============= +v1.0.0 +------ +* Drop Django 1.9 support +* Drop Django 1.10 support +* Add Django 2.0 support +* Drop python 2.7 support +* Drop python 3.4 support + v0.5.0 ------ * Add python 3.6 support diff --git a/publish.py b/publish.py index 7fd2587..3a28507 100644 --- a/publish.py +++ b/publish.py @@ -3,3 +3,11 @@ subprocess.call(['pip', 'install', 'wheel']) subprocess.call(['python', 'setup.py', 'clean', '--all']) subprocess.call(['python', 'setup.py', 'register', 'sdist', 'bdist_wheel', 'upload']) +subprocess.call(['rm', '-r', 'dist/']) +subprocess.call(['pip', 'install', 'wheel']) +subprocess.call(['pip', 'install', 'twine']) +subprocess.call(['python', 'setup.py', 'clean', '--all']) +subprocess.call(['python', 'setup.py', 'register', 'sdist', 'bdist_wheel']) +subprocess.call(['twine', 'upload', 'dist/*']) +subprocess.call(['rm', '-r', 'dist/']) +subprocess.call(['rm', '-r', 'build/']) diff --git a/setup.py b/setup.py index fa406a3..35df071 100644 --- a/setup.py +++ b/setup.py @@ -30,21 +30,18 @@ def get_version(): packages=find_packages(), classifiers=[ 'Programming Language :: Python', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Framework :: Django', - 'Framework :: Django :: 1.9', - 'Framework :: Django :: 1.10', 'Framework :: Django :: 1.11', + 'Framework :: Django :: 2.0', ], license='MIT', install_requires=[ - 'django>=1.8', + 'Django>=1.11', ], tests_require=[ 'psycopg2',