Skip to main content

python-social-auth backend for mitxpro

Project description

social-auth-mitxpro

Prerequisites

  • pyenv for managing python versions
    • Install python3.6 and python2.7
  • pip install tox tox-pyenv for running tests and discovering python versions from pyenv
  • 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 tests
  • pylint - lint python code
  • black . - format python code

Building

  • poetry build - builds a pip-installable package into dist/

Releasing

  • poetry version VERSION - bump the project version (see poetry version --help for details)
  • poetry publish -r testpypi - publish to testpypi
  • poetry publish - publish to pypi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

social_auth_mitxpro-0.6.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

social_auth_mitxpro-0.6.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file social_auth_mitxpro-0.6.2.tar.gz.

File metadata

  • Download URL: social_auth_mitxpro-0.6.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for social_auth_mitxpro-0.6.2.tar.gz
Algorithm Hash digest
SHA256 5b83ac968d426fdd3c519f5a0df5e85e676fa64fd7da8765d28bbd2a72957e3a
MD5 893b0edb35814a275191e323d9975697
BLAKE2b-256 5c586ba6067a08b3b3b136fb03e63195b6cae249312dd354c439071fc96fa3b0

See more details on using hashes here.

File details

Details for the file social_auth_mitxpro-0.6.2-py3-none-any.whl.

File metadata

File hashes

Hashes for social_auth_mitxpro-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d005431b86b1e33be3b7feea136fcd56fa77ed6053742eb3a90bd42b0475f3a0
MD5 566b8ae69703f370588d78b5468e859f
BLAKE2b-256 19ca65b9603d19766c100eebacde08acceda2c58dc1a3041ab5cb83545bd0527

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page