Skip to main content

python-social-auth backend for mitxpro

Project description

social-auth-mitxpro

Prerequisites

  • pyenv for managing python versions
    • Install python3.8 and python3.11
  • 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.

Run individual commands can be run interactively in a poetry shell session or directly via poetry run CMD:

  • pytest - run python tests
  • ruff check - lint python code
  • ruff format - 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.4.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: social_auth_mitxpro-0.6.4.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for social_auth_mitxpro-0.6.4.tar.gz
Algorithm Hash digest
SHA256 36e688adc7321c7ddfb7b879811eb064d865298f502495402347f0f0df7f17c1
MD5 532f5b193d192391bfe61405d7681240
BLAKE2b-256 30559c494d6bbaf7fe07fc698539cef3b707d8f5d9f75835d33d555885a2c532

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for social_auth_mitxpro-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b6052a1051d0d1c1fb5213a700e81e74185a5f3c5770be7774a46584172747c5
MD5 c96048ac67e5c03cba454bc930b1ccab
BLAKE2b-256 06064afe8efc565406d65d0897dd9d7aa8ad438bbe7c3a7086ba657e22e16fae

See more details on using hashes here.

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