From f01bba32dc6937e6a964c65ae05147e5f893f8e6 Mon Sep 17 00:00:00 2001 From: Nick Presta Date: Mon, 30 Mar 2020 13:40:49 -0400 Subject: [PATCH] Bump version to 2.1.0 - Update CONTRIBUTORS. - Add script for building and publishing. - Add PyPI classifiers for Django. --- CHANGELOG.md | 7 +++++++ CONTRIBUTORS | 10 +--------- scripts/build-and-publish.sh | 5 +++++ setup.py | 7 ++++++- 4 files changed, 19 insertions(+), 10 deletions(-) create mode 100755 scripts/build-and-publish.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index fd3a84a..14240a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## 2.1.0 - March 30, 2020 + +- Add support for Django class serialization by adding a `@deconstruct` decorator to `InMemoryStorage` + - See: https://docs.djangoproject.com/en/3.0/topics/migrations/#adding-a-deconstruct-method +- Adds an `__eq__` method to `InMemoryStorage` for Django migrations. +- Adds the `path` argument when `PathDoesNotExist` is raised, which helps with stack traces. + ## 2.0.0 - December 17, 2019 - Stop testing Python 2.6, 3.2, 3.3, 3.4. diff --git a/CONTRIBUTORS b/CONTRIBUTORS index e7ef409..41589ae 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1,9 +1 @@ -# Keep the file alphabetically sorted - -Brian Grohe -Charlie Denton -Mikhail Porokhovnichenko -Piper Merriam -Sebastian Rautila -Simon Luijk -Zbigniew Siciarz +See https://github.com/waveaccounting/dj-inmemorystorage/graphs/contributors diff --git a/scripts/build-and-publish.sh b/scripts/build-and-publish.sh new file mode 100755 index 0000000..9aaf8a5 --- /dev/null +++ b/scripts/build-and-publish.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +rm -rf build/ dist/ +python setup.py sdist bdist_wheel +twine upload --repository dj-inmemorystorage dist/* diff --git a/setup.py b/setup.py index aa6c6ad..9d067a1 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name="dj-inmemorystorage", description="A non-persistent in-memory data storage backend for Django.", - version="2.0.0", + version="2.1.0", url="https://github.com/waveaccounting/dj-inmemorystorage", license='BSD', long_description=open('README.md').read(), @@ -38,5 +38,10 @@ 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Topic :: Internet :: WWW/HTTP', + 'Framework :: Django :: 1.11', + 'Framework :: Django :: 2.0', + 'Framework :: Django :: 2.1', + 'Framework :: Django :: 2.2', + 'Framework :: Django :: 3.0', ] )