From 2614bb2c6aeaa2a9742a08d0b9f342f56d2edae2 Mon Sep 17 00:00:00 2001 From: lpm0073 Date: Thu, 6 Oct 2022 20:00:15 -0500 Subject: [PATCH] scaffold build/release tools --- .gitignore | 3 +++ pyproject.toml | 19 +++++++++++++++++++ release.sh | 16 ++++++++++++++++ requirements/latest-psa.txt | 2 ++ requirements/stable-psa.txt | 4 +++- 5 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 release.sh diff --git a/.gitignore b/.gitignore index 7e516ab..18e69dc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +.venv +venv + # Compiled python modules. *.py[cod] *.pyc diff --git a/pyproject.toml b/pyproject.toml index 864b334..fd5ca8e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,22 @@ [build-system] requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta:__legacy__" + +[project] +name = "wp-oauth-backend_lpm0073" +version = "1.0.0" +authors = [ + { name="Lawrence McDaniel", email="lpm0073@gmail.com" }, +] +description = "A WP Oauth Python Social Auth backend for Open edX" +readme = "README.rst" +requires-python = ">=3.7" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] + +[project.urls] +"Homepage" = "https://github.com/lpm0073/wp-oauth-backend" +"Bug Tracker" = "https://github.com/lpm0073/wp-oauth-backend/issues" \ No newline at end of file diff --git a/release.sh b/release.sh new file mode 100644 index 0000000..f0b66a6 --- /dev/null +++ b/release.sh @@ -0,0 +1,16 @@ +#!/bin/sh +#------------------------------------------------------------------------------ +# written by: Lawrence McDaniel +# https://lawrencemcdaniel.com +# +# date: oct-2022 +# +# usage: a work in progress. build package and upload to PyPi. +#------------------------------------------------------------------------------ + +python -m pip install --upgrade build +python3 -m build --sdist ./ +python3 -m build --wheel ./ + +python3 -m pip install --upgrade twine +python3 -m twine upload --repository testpypi dist/* diff --git a/requirements/latest-psa.txt b/requirements/latest-psa.txt index 0ae72f3..be69b76 100644 --- a/requirements/latest-psa.txt +++ b/requirements/latest-psa.txt @@ -1,3 +1,5 @@ # Latest Python Social Auth social-auth-app-django social-auth-core +twine +build diff --git a/requirements/stable-psa.txt b/requirements/stable-psa.txt index 7f07b01..48eb05f 100644 --- a/requirements/stable-psa.txt +++ b/requirements/stable-psa.txt @@ -1,3 +1,5 @@ # Stable Python Social Auth, found in Open edX Nutmeg social-auth-app-django==5.0.0 -social-auth-core==4.2.0 \ No newline at end of file +social-auth-core==4.2.0 +twine +build