-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from cookiecutter-openedx/mcdaniel_20230331
publish to PyPi
- Loading branch information
Showing
17 changed files
with
151 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# ------------------------------------------------------------------------- | ||
# build a package for PyPi | ||
# ------------------------------------------------------------------------- | ||
.PHONY: build requirements deps-update deps-init | ||
|
||
dev-db: | ||
mysql -uroot -p < openedx_plugin_example/scripts/init-db.sql | ||
|
||
dev-up: | ||
brew services start mysql | ||
brew services start redis | ||
|
||
dev-down: | ||
brew services stop mysql | ||
brew services stop redis | ||
|
||
django-server: | ||
./manage.py runserver 0.0.0.0:8000 | ||
|
||
django-migrate: | ||
./manage.py migrate | ||
./manage.py makemigrations openedx_plugin_example | ||
./manage.py migrate openedx_plugin_example | ||
|
||
django-shell: | ||
./manage.py shell_plus | ||
|
||
|
||
django-quickstart: | ||
pre-commit install | ||
make requirements | ||
make dev-up | ||
make dev-db | ||
make django-migrate | ||
./manage.py createsuperuser | ||
make django-server | ||
|
||
django-test: | ||
./manage.py test | ||
|
||
requirements: | ||
pre-commit autoupdate | ||
python -m pip install --upgrade pip wheel | ||
pip-compile requirements/common.in | ||
pip-compile requirements/local.in | ||
pip install -r requirements/common.txt | ||
pip install -r requirements/local.txt | ||
|
||
deps-init: | ||
rm -rf .tox | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install --upgrade -r requirements/common.txt -r requirements/local.txt -e . | ||
python -m pip check | ||
|
||
deps-update: | ||
python -m pip install --upgrade pip-tools pip wheel | ||
python -m piptools compile --upgrade --resolver backtracking -o ./requirements/common.txt pyproject.toml | ||
python -m piptools compile --extra dev --upgrade --resolver backtracking -o ./requirements/local.txt pyproject.toml | ||
|
||
|
||
report: | ||
cloc $(git ls-files) | ||
|
||
|
||
build: | ||
python3 -m pip install --upgrade setuptools wheel twine | ||
python -m pip install --upgrade build | ||
|
||
if [ -d "./build" ]; then sudo rm -r build; fi | ||
if [ -d "./dist" ]; then sudo rm -r dist; fi | ||
if [ -d "./openedx_plugin_example.egg-info" ]; then sudo rm -r openedx_plugin_example.egg-info; fi | ||
|
||
python3 -m build --sdist ./ | ||
python3 -m build --wheel ./ | ||
|
||
python3 -m pip install --upgrade twine | ||
twine check dist/* | ||
|
||
|
||
# ------------------------------------------------------------------------- | ||
# upload to PyPi Test | ||
# https://test.pypi.org/project/openedx-plugin-example/0.2.0/ | ||
# ------------------------------------------------------------------------- | ||
release-test: | ||
make build | ||
twine upload --verbose --skip-existing --repository testpypi dist/* | ||
|
||
# ------------------------------------------------------------------------- | ||
# upload to PyPi | ||
# https://pypi.org/project/openedx-plugin-example/ | ||
# ------------------------------------------------------------------------- | ||
release-prod: | ||
make build | ||
twine upload --verbose --skip-existing dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
usage: semantic version control for openedx_plugin | ||
""" | ||
__version__ = "0.1.3" | ||
__version__ = "0.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
DROP USER IF EXISTS `mp_user`@`localhost`; | ||
DROP DATABASE IF EXISTS `openedx_plugin_example`; | ||
|
||
CREATE USER `mp_user`@`localhost` IDENTIFIED BY 'mp'; | ||
CREATE DATABASE `openedx_plugin_example`; | ||
GRANT ALL PRIVILEGES ON `openedx_plugin_example`.* TO "mp_user"@"localhost"; | ||
FLUSH PRIVILEGES; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
usage: version control for openedx_plugin_api plugin | ||
""" | ||
__version__ = "0.1.1" | ||
__version__ = "0.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# coding=utf-8 | ||
__version__ = "0.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
usage: semantic version control for openedx_plugin_mobile_api | ||
""" | ||
__version__ = "0.1.1" | ||
__version__ = "0.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,18 +24,29 @@ build-backend = "setuptools.build_meta:__legacy__" | |
#------------------------------------------------------------------------------ | ||
[project] | ||
name = "openedx-plugin-example" | ||
version = "0.1.3" | ||
version = "0.2.0" | ||
authors = [ | ||
{ name="Lawrence McDaniel", email="[email protected]" } | ||
] | ||
description = "A Django plugin to enhance feature set of base Open edX platform" | ||
readme = "README.md" | ||
license = "GPL-3.0-or-later" | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", | ||
"Development Status :: 4 - Beta", | ||
"Framework :: Django", | ||
"Framework :: Django :: 2.2", | ||
"Framework :: Django :: 3.0", | ||
"Framework :: Django :: 3.1", | ||
"Framework :: Django :: 3.2", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Topic :: Education", | ||
"Topic :: Education :: Computer Aided Instruction (CAI)", | ||
] | ||
dependencies = [ | ||
"Django>=3.2,<=3.3", | ||
|
@@ -47,8 +58,10 @@ keywords = ["Python", "Django", "Open edX", "Plugin", "REST API"] | |
|
||
[project.urls] | ||
Homepage = "https://github.com/cookiecutter-openedx/openedx-plugin-example" | ||
"Bug Tracker" = "https://github.com/cookiecutter-openedx/openedx-plugin-example/issues" | ||
Documentation = "https://github.com/cookiecutter-openedx/openedx-plugin-example" | ||
Repository = "https://github.com/cookiecutter-openedx/openedx-plugin-example" | ||
Changelog = "https://github.com/cookiecutter-openedx/openedx-plugin-example/blob/main/CHANGELOG.md" | ||
"Bug Tracker" = "https://github.com/cookiecutter-openedx/openedx-plugin-example/issues" | ||
|
||
#------------------------------------------------------------------------------ | ||
# see: https://setuptools.pypa.io/en/latest/userguide/dependency_management.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters