-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Django 3.0 #80
Open
juliorkm
wants to merge
9
commits into
mlavin:master
Choose a base branch
from
juliorkm:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
cba957f
Fixed from_db_value method definition
79f4ef5
Removed python2 support in models.py
0b412e3
Fixed import of Django's reverse method
3ebd9a4
Added backend to login() calls
f0361b0
Added 'request' parameter to authenticate() method
caeddc6
Updated Django version to 3.0.3 and fixed runtests.py
5d64f65
Updated setup.py
857f8b4
Included Makefile
sergios c55683c
Fixed test suite
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.PHONY: help setup clean pep8 tests run | ||
|
||
# Version package | ||
VERSION=$(shell python -c 'import allaccess; print(allaccess.__version__)') | ||
|
||
PROJECT_HOME = "`pwd`" | ||
|
||
help: | ||
@echo | ||
@echo "Please use 'make <target>' where <target> is one of" | ||
@echo | ||
|
||
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
setup: ## Install project dependencies | ||
@pip install -r $(PROJECT_HOME)/requirements.txt | ||
|
||
clean: ## Clear *.pyc files, etc | ||
@rm -rf build dist *.egg-info | ||
@find . \( -name '*.pyc' -o -name '__pycache__' -o -name '**/*.pyc' -o -name '*~' \) -delete | ||
|
||
tests: clean ## Make tests | ||
@python runtests.py | ||
|
||
dist: clean ## Make dist | ||
@python setup.py sdist | ||
|
||
publish: clean dist ## Make publish | ||
@echo 'Ready to release version ${VERSION}? (ctrl+c to abort)' && read | ||
twine upload dist/* | ||
@git tag ${VERSION} | ||
@git push --tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,31 +13,29 @@ def read_file(filename): | |
|
||
|
||
setup( | ||
name='django-all-access', | ||
name='django3-all-access', | ||
version=__import__('allaccess').__version__, | ||
author='Mark Lavin', | ||
author_email='[email protected]', | ||
author='Storm', | ||
author_email='[email protected]', | ||
packages=find_packages(), | ||
include_package_data=True, | ||
url='https://github.com/mlavin/django-all-access', | ||
url='https://github.com/stormers/django-all-access', | ||
license='BSD', | ||
description=' '.join(__import__('allaccess').__doc__.splitlines()).strip(), | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'Framework :: Django', | ||
'Framework :: Django :: 1.8', | ||
'Framework :: Django :: 1.9', | ||
'Framework :: Django :: 1.10', | ||
'Framework :: Django :: 3.0', | ||
'License :: OSI Approved :: BSD License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Topic :: Internet :: WWW/HTTP :: Dynamic Content', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
[tox] | ||
envlist = py{27,33}-django{18}-{normal,custom},py{27,34,35}-django{19,110}-{normal,custom},docs | ||
envlist = py{34,35, 36, 37}-django{30}-{normal,custom},docs | ||
|
||
[testenv] | ||
commands = coverage run runtests.py | ||
basepython = | ||
py27: python2.7 | ||
py33: python3.3 | ||
py34: python3.4 | ||
py35: python3.5 | ||
py36: python3.6 | ||
py37: python3.7 | ||
deps = | ||
coverage>=4.2,<4.3 | ||
django18: Django>=1.8,<1.9 | ||
django19: Django>=1.9,<1.10 | ||
django110: Django>=1.10,<1.11 | ||
py27: mock>=1.0,<2.0 | ||
django30: Django>=3.0,<3.1 | ||
setenv = | ||
custom: SWAPPED=1 | ||
|
||
[testenv:docs] | ||
basepython = python2.7 | ||
basepython = python3.4 | ||
deps = Sphinx==1.1.3 | ||
commands = | ||
{envbindir}/sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are obviously welcome to publish your own version of this package under the terms of the BSD license but that shouldn't be part of this PR.