mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-18 11:05:17 +00:00
Merge remote-tracking branch 'origin/master' into nightly
This commit is contained in:
commit
9b22498765
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@ -70,16 +70,9 @@ jobs:
|
|||||||
|
|
||||||
##### Create release on GitHub
|
##### Create release on GitHub
|
||||||
- name: Create or update GitHub release
|
- name: Create or update GitHub release
|
||||||
# I wish there was an `--update` option to the `gh release create` command, but
|
run: scriv github-release
|
||||||
# there isn't.
|
|
||||||
# https://cli.github.com/manual/gh_release_create
|
|
||||||
run: |
|
|
||||||
make release-description | tee release_description.md
|
|
||||||
export GH_ARGS="${{ github.ref_name }} --notes-file=release_description.md"
|
|
||||||
echo "gh args: '$GH_ARGS'"
|
|
||||||
${{ env.gh_bin }} release create $GH_ARGS || ${{ env.gh_bin }} release edit $GH_ARGS
|
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
- name: Upload release asset to GitHub
|
- name: Upload release asset to GitHub
|
||||||
run: |
|
run: |
|
||||||
export FILENAME="tutor-$(uname -s)_$(uname -m)"
|
export FILENAME="tutor-$(uname -s)_$(uname -m)"
|
||||||
|
27
Makefile
27
Makefile
@ -54,12 +54,11 @@ format: ## Format code automatically
|
|||||||
isort: ## Sort imports. This target is not mandatory because the output may be incompatible with black formatting. Provided for convenience purposes.
|
isort: ## Sort imports. This target is not mandatory because the output may be incompatible with black formatting. Provided for convenience purposes.
|
||||||
isort --skip=templates ${SRC_DIRS}
|
isort --skip=templates ${SRC_DIRS}
|
||||||
|
|
||||||
bootstrap-dev: ## Install dev requirements
|
changelog-entry: ## Create a new changelog entry
|
||||||
pip install .
|
scriv create
|
||||||
pip install -r requirements/dev.txt
|
|
||||||
|
|
||||||
bootstrap-dev-plugins: bootstrap-dev ## Install dev requirements and all supported plugins
|
changelog: ## Collect changelog entries in the CHANGELOG.md file
|
||||||
pip install -r requirements/plugins.txt
|
scriv collect
|
||||||
|
|
||||||
###### Code coverage
|
###### Code coverage
|
||||||
|
|
||||||
@ -78,23 +77,17 @@ coverage-html: coverage-report ## Generate HTML report for the code coverage
|
|||||||
coverage-browse-report: coverage-html ## Open the HTML report in the browser
|
coverage-browse-report: coverage-html ## Open the HTML report in the browser
|
||||||
sensible-browser htmlcov/index.html
|
sensible-browser htmlcov/index.html
|
||||||
|
|
||||||
###### Deployment
|
###### Continuous integration tasks
|
||||||
|
|
||||||
bundle: ## Bundle the tutor package in a single "dist/tutor" executable
|
bundle: ## Bundle the tutor package in a single "dist/tutor" executable
|
||||||
pyinstaller tutor.spec
|
pyinstaller tutor.spec
|
||||||
|
|
||||||
|
bootstrap-dev: ## Install dev requirements
|
||||||
|
pip install .
|
||||||
|
pip install -r requirements/dev.txt
|
||||||
|
|
||||||
changelog-entry: ## Create a new changelog entry
|
bootstrap-dev-plugins: bootstrap-dev ## Install dev requirements and all supported plugins
|
||||||
scriv create
|
pip install -r requirements/plugins.txt
|
||||||
|
|
||||||
changelog: ## Collect changelog entries in the CHANGELOG.md file
|
|
||||||
scriv collect
|
|
||||||
|
|
||||||
release-description: ## Write the current release description to a file
|
|
||||||
@sed "s/TUTOR_VERSION/v$(shell make version)/g" docs/_release_description.md
|
|
||||||
@git log -1 --pretty=format:%b
|
|
||||||
|
|
||||||
###### Continuous integration tasks
|
|
||||||
|
|
||||||
pull-base-images: # Manually pull base images
|
pull-base-images: # Manually pull base images
|
||||||
docker image pull docker.io/ubuntu:20.04
|
docker image pull docker.io/ubuntu:20.04
|
||||||
|
@ -3,5 +3,6 @@ version = literal: tutor/__about__.py: __version__
|
|||||||
categories =
|
categories =
|
||||||
format = md
|
format = md
|
||||||
md_header_level = 2
|
md_header_level = 2
|
||||||
new_fragment_template = file: scriv/new_fragment.${config:format}.j2
|
new_fragment_template = file: changelog.d/scriv/new_fragment.${config:format}.j2
|
||||||
entry_title_template = file: scriv/entry_title.${config:format}.j2
|
entry_title_template = file: changelog.d/scriv/entry_title.${config:format}.j2
|
||||||
|
ghrel_template = file: changelog.d/scriv/github_release.${config:format}.j2
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
Install this version from pip with:
|
Install this version from pip with:
|
||||||
|
|
||||||
pip install "tutor[full]==TUTOR_VERSION"
|
pip install "tutor[full]=={{ version }}"
|
||||||
|
|
||||||
Or download the compiled binaries:
|
Or download the compiled binaries:
|
||||||
|
|
||||||
sudo curl -L "https://github.com/overhangio/tutor/releases/download/TUTOR_VERSION/tutor-$(uname -s)_$(uname -m)" -o /usr/local/bin/tutor
|
sudo curl -L "https://github.com/overhangio/tutor/releases/download/{{ version }}/tutor-$(uname -s)_$(uname -m)" -o /usr/local/bin/tutor
|
||||||
sudo chmod 0755 /usr/local/bin/tutor
|
sudo chmod 0755 /usr/local/bin/tutor
|
||||||
|
|
||||||
See the [installation docs](https://docs.tutor.overhang.io/install.html) for more installation options and instructions.
|
See the [installation docs](https://docs.tutor.overhang.io/install.html) for more installation options and instructions.
|
||||||
|
|
||||||
## Changes
|
## Changes
|
||||||
|
|
||||||
|
{{ body }}
|
@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# This file is autogenerated by pip-compile with python 3.10
|
# This file is autogenerated by pip-compile with Python 3.8
|
||||||
# To update, run:
|
# by the following command:
|
||||||
#
|
#
|
||||||
# pip-compile requirements/base.in
|
# pip-compile requirements/base.in
|
||||||
#
|
#
|
||||||
@ -62,7 +62,9 @@ six==1.16.0
|
|||||||
tomli==2.0.1
|
tomli==2.0.1
|
||||||
# via mypy
|
# via mypy
|
||||||
typing-extensions==4.4.0
|
typing-extensions==4.4.0
|
||||||
# via mypy
|
# via
|
||||||
|
# -r requirements/base.in
|
||||||
|
# mypy
|
||||||
urllib3==1.26.13
|
urllib3==1.26.13
|
||||||
# via
|
# via
|
||||||
# kubernetes
|
# kubernetes
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# This file is autogenerated by pip-compile with python 3.10
|
# This file is autogenerated by pip-compile with Python 3.8
|
||||||
# To update, run:
|
# by the following command:
|
||||||
#
|
#
|
||||||
# pip-compile requirements/dev.in
|
# pip-compile requirements/dev.in
|
||||||
#
|
#
|
||||||
@ -172,7 +172,7 @@ rsa==4.9
|
|||||||
# via
|
# via
|
||||||
# -r requirements/base.txt
|
# -r requirements/base.txt
|
||||||
# google-auth
|
# google-auth
|
||||||
scriv==1.0.0
|
scriv==1.1.0
|
||||||
# via -r requirements/dev.in
|
# via -r requirements/dev.in
|
||||||
secretstorage==3.3.3
|
secretstorage==3.3.3
|
||||||
# via keyring
|
# via keyring
|
||||||
@ -204,7 +204,11 @@ types-setuptools==65.6.0.2
|
|||||||
typing-extensions==4.4.0
|
typing-extensions==4.4.0
|
||||||
# via
|
# via
|
||||||
# -r requirements/base.txt
|
# -r requirements/base.txt
|
||||||
|
# astroid
|
||||||
|
# black
|
||||||
# mypy
|
# mypy
|
||||||
|
# pylint
|
||||||
|
# rich
|
||||||
urllib3==1.26.13
|
urllib3==1.26.13
|
||||||
# via
|
# via
|
||||||
# -r requirements/base.txt
|
# -r requirements/base.txt
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# This file is autogenerated by pip-compile with python 3.10
|
# This file is autogenerated by pip-compile with Python 3.8
|
||||||
# To update, run:
|
# by the following command:
|
||||||
#
|
#
|
||||||
# pip-compile requirements/docs.in
|
# pip-compile requirements/docs.in
|
||||||
#
|
#
|
||||||
@ -42,6 +42,8 @@ idna==3.4
|
|||||||
# requests
|
# requests
|
||||||
imagesize==1.4.1
|
imagesize==1.4.1
|
||||||
# via sphinx
|
# via sphinx
|
||||||
|
importlib-metadata==6.0.0
|
||||||
|
# via sphinx
|
||||||
jinja2==3.1.2
|
jinja2==3.1.2
|
||||||
# via
|
# via
|
||||||
# -r requirements/base.txt
|
# -r requirements/base.txt
|
||||||
@ -147,6 +149,8 @@ websocket-client==1.4.2
|
|||||||
# via
|
# via
|
||||||
# -r requirements/base.txt
|
# -r requirements/base.txt
|
||||||
# kubernetes
|
# kubernetes
|
||||||
|
zipp==3.11.0
|
||||||
|
# via importlib-metadata
|
||||||
|
|
||||||
# The following packages are considered to be unsafe in a requirements file:
|
# The following packages are considered to be unsafe in a requirements file:
|
||||||
# setuptools
|
# setuptools
|
||||||
|
Loading…
Reference in New Issue
Block a user