python-social-auth backend for mitxpro
Project description
social-auth-mitxpro
Prerequisites
pyenv
for managing python versions- Install
python3.6
andpython2.7
- Install
pip install tox tox-pyenv
for running tests and discovering python versions frompyenv
poetry
for building, testing, and releasing
If this is your first time using poetry
, you'll need to configure your pypi credentials via:
- Configure pypi repository:
poetry config http-basic.pypi USERNAME PASSWORD
- Configure testpypi repository:
poetry config repositories.testpypi https://test.pypi.org/legacy
poetry config http-basic.testpypi USERNAME PASSWORD
NOTE: when running poetry
commands, particularly pylint
and black
, you must python3.6
Testing
You can just run tox
locally to test, lint, and check formatting in the supported python versions. This works by having tox
manage the virtualenvs, which poetry
then detects and uses. Note that some of the tools (e.g. pylint
, black
) only support running in python3.6
and this is reflected in tox.ini
.
Run individual commands can be run interactively in a poetry shell
session or directly via poetry run CMD
:
pytest
- run python testspylint
- lint python codeblack .
- format python code
Building
poetry build
- builds a pip-installable package intodist/
Releasing
poetry version VERSION
- bump the project version (seepoetry version --help
for details)poetry publish -r testpypi
- publish to testpypipoetry publish
- publish to pypi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for social_auth_mitxpro-0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad718c3426ee2c06bf3540e9a30ce351f88adc5fcabe425416dfe608e5964e38 |
|
MD5 | 3bd2f192703cba6e9d77e9d30387eb71 |
|
BLAKE2b-256 | 9c4af9af26d74dfb4ad8eb7423113c635ad8bc8f1603ee396f9c1823ecdbaaa0 |