Skip to content

Commit

Permalink
Merge pull request #18 from yoyowallet/fix_test_cases
Browse files Browse the repository at this point in the history
Release 1.1.0
  • Loading branch information
DelboyJay authored Apr 8, 2020
2 parents 24a8c9b + 8137836 commit 67e1fc5
Show file tree
Hide file tree
Showing 36 changed files with 2,518 additions and 1,491 deletions.
7 changes: 3 additions & 4 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
[bumpversion]
current_version = 1.0.3
current_version = 1.1.0
commit = False
tag = False

[bumpversion:file:setup.py]
search = version='{current_version}'
replace = version='{new_version}'
search = version="{current_version}"
replace = version="{new_version}"

[bumpversion:file:Makefile]
search = django-idempotency-key-{current_version}.tar.gz
replace = django-idempotency-key-{new_version}.tar.gz

62 changes: 62 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Changes Log

This file lists the changes made to the Django idempotency key package.

## Tags
Tags may be specified for each release as an indicator for the changes that were made
for the reader can see at a glance.

**[Security updates]** - Some dependant packages required security updates and required
updating.

**[Dropped support]** - Support for required package version(s) have been dropped.

**[Added support]** - Support for required package versions(s) have been added.

**[Bug fixes]** - Some bugs have been fixed in this release.

**[New features]** - There are new features in this release.

**[Breaking changes]** - There are changes that break existing compatibility.

---
# 1.1.0
**[Security updates]**

**[Dropped support]**

**[Added support]**

**[New features]**

**[Breaking changes]**

- The following classes have moved to a new namespace and need to be changed in your
settings and code where appropriate.
<pre>
idempotency_key.locks.IdempotencyKeyLock -> <strong>idempotency_key.locks.basic.IdempotencyKeyLock</strong>

idempotency_key.locks.ThreadLock -> <strong>idempotency_key.locks.basic.ThreadLock</strong>

idempotency_key.locks.MultiProcessRedisLock -> <strong>idempotency_key.locks.redis.MultiProcessRedisLock</strong>
</pre>

- Drop support for Django (1.9, 1.10, 1.11)
- 1.11 was dropped because of security issues and is near to end of life support.

- Added support for Django (2.2)

- Added testing with django rest framework (3.10, 3.11)

- Added optional flag so that clients can choose to use idempotency keys on an API that
is used to expect it.

- Updated packages with security issues:
Django (>=2.x)
bleach (>=3.1.4)
urllib3 (>=1.24.2)

---
# 1.0.3

- Initial release (as an Alpha)
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ build: clean database

clean:
find . -type f -name "*.pyc" -delete
find . -type f -name "*,cover" -delete

database:
psql -lqt | cut -d \| -f 1 | grep -wq idempotency-key || createdb idempotency-key
./manage.py migrate

static_analysis: pep8 xenon
static_analysis: pep8 xenon black

black:
@echo "Running black over codebase"
black .

pep8:
@echo "Running flake8 over codebase"
Expand All @@ -31,7 +34,7 @@ bundle: static_analysis coverage
python setup.py sdist

release-test:
twine upload --repository-url https://test.pypi.org/legacy/ dist/django-idempotency-key-1.0.3.tar.gz
twine upload --repository-url https://test.pypi.org/legacy/ dist/django-idempotency-key-1.1.0.tar.gz

release: static_analysis coverage
twine upload dist/*
Expand All @@ -45,4 +48,5 @@ bump-minor:
bump-patch:
bump2version patch

.PHONY: bump-major bump-minor bump-patch bundle clean coverage database pep8 release release-test static_analysis test virtualenv xenon
.PHONY: bump-major bump-minor bump-patch bundle clean coverage database pep8 black
.PHONY: release release-test static_analysis test virtualenv xenon
12 changes: 9 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@ pytest-cov = "*"
"bump2version" = "*"
twine = "*"
djangorestframework = "*"
django-debug-toolbar = "==1.10.1"
django-debug-toolbar = "*"
codecov = "*"
redis = "*"
django-redis = "*"
black = "*"

[packages]
django = ">=1.11.19"
patterns = "*"
django = "==2.2.*"
# Security fixes
bleach = ">=3.1.4"
urllib3 = ">=1.24.2"

[requires]
python_version = "3.6"

[pipenv]
allow_prereleases = true
Loading

0 comments on commit 67e1fc5

Please sign in to comment.