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.4.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

social_auth_mitxpro-0.4-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file social-auth-mitxpro-0.4.tar.gz.

File metadata

  • Download URL: social-auth-mitxpro-0.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/5.4.0-42-generic

File hashes

Hashes for social-auth-mitxpro-0.4.tar.gz
Algorithm Hash digest
SHA256 92660a90b4b689f96e49e59822f9b7fb03bfd9ae4253541ce9bd5137d49cf291
MD5 11681d950934c6a622a3b02aae75e307
BLAKE2b-256 12059e1d7ffc74deceaedc0a863716ead6eca78fa2a57ea4373351b5a0c99880

See more details on using hashes here.

Provenance

File details

Details for the file social_auth_mitxpro-0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for social_auth_mitxpro-0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8fd44e286ab86a690867faca9ad6f708bed847cfb5be5a0bca9b547ba761c0b9
MD5 8b38efae5476b224899c5aed49974b3c
BLAKE2b-256 08380c344236fb42d9e976307669a4b326e02b8fbf7d38d453178a18d8a193a3

See more details on using hashes here.

Provenance

Supported by

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