Skip to content

Commit df861e8

Browse files
committed
Cleanup pyton-social-auth
1 parent f13a5cc commit df861e8

File tree

579 files changed

+823
-17269
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

579 files changed

+823
-17269
lines changed

.travis.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ sudo: false
33
env:
44
global:
55
- REQUIREMENTS=requirements.txt
6-
- TEST_REQUIREMENTS=social/tests/requirements.txt
6+
- TEST_REQUIREMENTS=social_core/tests/requirements.txt
77
python:
88
- "2.7"
99
matrix:
1010
include:
1111
- python: "pypy"
1212
env:
13-
- TEST_REQUIREMENTS=social/tests/requirements-pypy.txt
13+
- TEST_REQUIREMENTS=social_core/tests/requirements-pypy.txt
1414
- python: "3.3"
1515
env:
1616
- REQUIREMENTS=requirements-python3.txt
17-
- TEST_REQUIREMENTS=social/tests/requirements-python3.txt
17+
- TEST_REQUIREMENTS=social_core/tests/requirements-python3.txt
1818
- python: "3.4"
1919
env:
2020
- REQUIREMENTS=requirements-python3.txt
21-
- TEST_REQUIREMENTS=social/tests/requirements-python3.txt
21+
- TEST_REQUIREMENTS=social_core/tests/requirements-python3.txt
2222
addons:
2323
apt:
2424
packages:
@@ -29,4 +29,4 @@ install:
2929
- "travis_retry pip install -r $REQUIREMENTS"
3030
- "travis_retry pip install -r $TEST_REQUIREMENTS"
3131
script:
32-
- "nosetests --with-coverage --cover-package=social --where=social/tests"
32+
- "nosetests --with-coverage --cover-package=social_core --where=social_core/tests"

CHANGELOG.md

+7-1,062
Large diffs are not rendered by default.

CONTRIBUTING.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# How to contribute
2+
3+
I like to encourage you to contribute to the repository.
4+
5+
This should be as easy as possible for you but there are a few things
6+
to consider when contributing. The following guidelines for
7+
contribution should be followed if you want to submit a pull request.
8+
9+
## How to prepare
10+
11+
* You need a [GitHub account](https://github.com/signup/free)
12+
* Submit an [issue ticket](https://github.com/python-social-auth/social-core/issues)
13+
for your issue if there is no one yet.
14+
* Describe the issue and include steps to reproduce if it's a bug.
15+
* Ensure to mention the earliest version that you know is affected.
16+
* If you are able and want to fix this, fork the repository on GitHub
17+
18+
## Make Changes
19+
20+
* In your forked repository, create a topic branch for your upcoming
21+
patch. (e.g. `feature/new-backend` or `bug/auth-fails`)
22+
* Usually this is based on the `master` branch.
23+
* Create a branch based on master `git branch bug/auth-fails master`
24+
then checkout the new branch with `git checkout bug/auth-fails`.
25+
Please avoid working directly on the `master` branch.
26+
* Make commits of logical units and describe them properly.
27+
* Make sure you stick to [PEP8](https://www.python.org/dev/peps/pep-0008/)
28+
coding style that is used already.
29+
* If possible, submit tests to your patch / new feature so it can be tested easily.
30+
* Assure nothing is broken by running all the tests.
31+
32+
## Submit Changes
33+
34+
* Push your changes to a topic branch in your fork of the repository.
35+
* Open a pull request to the original repository and choose the right
36+
original branch you want to patch.
37+
* If not done in commit messages (which you really should do) please
38+
reference and update your issue with the code changes. But _please
39+
do not close the issue yourself_.
40+
* Even if you have write access to the repository, do not directly
41+
push or merge pull-requests. Let another team member review your
42+
pull request and approve.
43+
44+
# Additional Resources
45+
46+
* [General GitHub documentation](http://help.github.com/)
47+
* [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
48+
* [Read the Issue Guidelines by @necolas](https://github.com/necolas/issue-guidelines/blob/master/CONTRIBUTING.md)
49+
for more details
50+
51+
# Notes
52+
53+
This documented is based in the work from [anselmh/CONTRIBUTING.md](https://github.com/anselmh/CONTRIBUTING.md),
54+
licensed as [Creative Commons Attribution 3.0 Unported License](https://github.com/anselmh/CONTRIBUTING.md/blob/master/README.md#license).

LICENSE

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
Copyright (c) 2012-2015, Matías Aguirre
1+
Copyright (c) 2012-2016, Matías Aguirre
22
All rights reserved.
3-
3+
44
Redistribution and use in source and binary forms, with or without modification,
55
are permitted provided that the following conditions are met:
6-
6+
77
1. Redistributions of source code must retain the above copyright notice,
88
this list of conditions and the following disclaimer.
9-
9+
1010
2. Redistributions in binary form must reproduce the above copyright
1111
notice, this list of conditions and the following disclaimer in the
1212
documentation and/or other materials provided with the distribution.
13-
13+
1414
3. Neither the name of this project nor the names of its contributors may be
1515
used to endorse or promote products derived from this software without
1616
specific prior written permission.
17-
17+
1818
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1919
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
2020
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE

MANIFEST.in

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
global-include *.py
22

3-
include *.txt CHANGELOG.md LICENSE README.rst
4-
recursive-include docs *.rst
5-
recursive-include social/tests *.txt
3+
include *.txt CHANGELOG.md LICENSE README.md
4+
recursive-include social_core/tests *.txt
65

76
graft examples
87

98
recursive-exclude .tox *
10-
recursive-exclude social *.pyc
11-
recursive-exclude examples *.pyc
12-
recursive-exclude examples *.db
13-
recursive-exclude examples local_settings.py
14-
recursive-exclude examples/webpy_example/sessions *
9+
recursive-exclude social_core *.pyc

Makefile

+34-16
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,40 @@
1-
docs:
2-
sphinx-build docs/ docs/_build/
3-
4-
site: docs
5-
rsync -avkz site/ tarf:sites/psa/
1+
PYTHON_VERSIONS := 2.7.12 3.3.6 3.4.4 3.5.2 pypy-4.0.1
62

73
build:
8-
python setup.py sdist
9-
python setup.py bdist_wheel --python-tag py2
10-
BUILD_VERSION=3 python setup.py bdist_wheel --python-tag py3
4+
@ python setup.py sdist
5+
@ python setup.py bdist_wheel --python-tag py2
6+
@ BUILD_VERSION=3 python setup.py bdist_wheel --python-tag py3
117

128
publish:
13-
python setup.py sdist upload
14-
python setup.py bdist_wheel --python-tag py2 upload
15-
BUILD_VERSION=3 python setup.py bdist_wheel --python-tag py3 upload
9+
@ python setup.py sdist upload
10+
@ python setup.py bdist_wheel --python-tag py2 upload
11+
@ BUILD_VERSION=3 python setup.py bdist_wheel --python-tag py3 upload
1612

17-
clean:
18-
find . -name '*.py[co]' -delete
19-
find . -name '__pycache__' -delete
20-
rm -rf python_social_auth.egg-info dist build
13+
check-pyenv:
14+
@ which pyenv
15+
16+
# Dependencies: libxml2-dev libxmlsec1-dev libbz2-dev libsqlite3-dev
17+
# libreadline-dev zlib1g-dev libncurses5-dev libssl-dev
18+
# libgdbm-dev libncursesw5-dev xz-utils swig build-essential
19+
setup-pyenv-python:
20+
@ pyenv install -s $(version)
21+
@ pyenv local $(version)
22+
@ pip install --upgrade setuptools pip tox
23+
@ pyenv local --unset
24+
25+
setup-pyenv: check-pyenv
26+
@ eval "$(pyenv init -)"
27+
@ $(foreach version, \
28+
$(PYTHON_VERSIONS), \
29+
${MAKE} setup-pyenv-python version=$(version);)
30+
@ pyenv local $(PYTHON_VERSIONS)
2131

22-
.PHONY: site docs publish
32+
run-tox:
33+
@ tox
34+
35+
tests: setup-pyenv run-tox clean
36+
37+
clean:
38+
@ find . -name '*.py[co]' -delete
39+
@ find . -name '__pycache__' -delete
40+
@ rm -rf *.egg-info dist build

README.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Python Social Auth - Core
2+
3+
Python Social Auth is an easy to setup social authentication/registration
4+
mechanism with support for several frameworks and auth providers.
5+
6+
## Description
7+
8+
This is the core component of the python-socia-auth ecosystem, it
9+
implements the common interface to define new authentication backends
10+
to third parties services, implement integrations with web frameworks
11+
and storage solutions.
12+
13+
## Documentation
14+
15+
Project documentation is available at http://python-social-auth.readthedocs.org/.
16+
17+
## Setup
18+
19+
```shell
20+
$ pip install social-auth-core
21+
```
22+
23+
## Contributing
24+
25+
See the [CONTRIBUTING.md](CONTRIBUTING.md) document for details.
26+
27+
## Versioning
28+
29+
This project follows [Semantic Versioning 2.0.0](http://semver.org/spec/v2.0.0.html).
30+
31+
## License
32+
33+
This project follows the BSD license. See the [LICENSE](LICENSE) for details.

0 commit comments

Comments
 (0)