-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- disco.api.client: define a repr for Disco's APIClient object; - disco.bot.bot: define a repr for Disco's Bot object; - disco.bot.bot: log invalid plugin paths as errors instead of exceptions; - disco.gateway.client: define a repr for Disco's GatewayClient object; - disco.gateway.client: use the websocket's ping to calculate latency instead of running our own calculation; - disco.voice.client: use the websocket's ping to calculate latency instead of running our own calculation; - disco.voice.client: keep list of VoiceClient.experiments as sent from the gateway; - disco.voice.client: define a repr for Disco's VoiceClient object; - disco.voice.client: log invalid voice gateway packets as errors instead of exceptions; - disco.voice.client: log failed voice channel connections as errors instead of exceptions; - disco.voice.packets: map `CLIENT_CONNECT` as OP 11 (not 18), `CLIENT_FLAGS` as OP 18; - disco.voice.udp: fix `UDPVoiceClient.connect()` IP stringification; - disco.client: define a repr for Disco's Client object; - disco.state: define a repr for Disco's State object; - disco.state: do not cache webhooks in `User` cache on `MessageCreate` events; - pyproject.toml: what could possibly go wrong?; - README.md: there's a meme in here somewhere?; Update requirements.txt: - gevent (24.2.1 >> 24.10.2)
- Loading branch information
Showing
16 changed files
with
215 additions
and
166 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,100 @@ | ||
name: Dance | ||
name: "DANCE" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
- main | ||
paths: | ||
- 'disco/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
name: Build | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --no-cache-dir --upgrade pip | ||
python -m pip install --no-cache-dir --upgrade build | ||
- name: Build binary wheel and source tarball | ||
run: python -m build | ||
- name: Store distribution packages | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Pull Repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --no-cache-dir --upgrade pip | ||
python -m pip install --no-cache-dir --upgrade setuptools | ||
python -m pip install --no-cache-dir --upgrade wheel | ||
python -m pip install --no-cache-dir --upgrade -r requirements.txt | ||
python -m pip install --no-cache-dir --upgrade build | ||
- name: Build Wheel and Tarball Packages | ||
run: python3 -m build | ||
- name: Store distribution packages | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|
||
publish: | ||
name: Publish | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
- build | ||
runs-on: self-hosted | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/betterdisco | ||
url: https://pypi.org/p/betterdisco-py | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: Download distributions | ||
uses: actions/download-artifact@v3 | ||
- name: Download Distributions | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
skip-existing: true | ||
|
||
github-release: | ||
name: >- | ||
Sign with Sigstore, upload to GitHub Releases | ||
name: Sign and Release | ||
needs: | ||
- publish-to-pypi | ||
runs-on: ubuntu-latest | ||
- build | ||
runs-on: self-hosted | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
contents: write # IMPORTANT: mandatory for making GitHub Releases | ||
id-token: write # IMPORTANT: mandatory for sigstore | ||
|
||
steps: | ||
- name: Download distributions | ||
uses: actions/download-artifact@v3 | ||
- name: Setup Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Download Distributions | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Sign dists with Sigstore | ||
uses: sigstore/gh-action-sigstore-python@v1.2.3 | ||
- name: Sign | ||
uses: sigstore/gh-action-sigstore-python@v2.1.1 | ||
with: | ||
inputs: >- | ||
inputs: | | ||
./dist/*.tar.gz | ||
./dist/*.whl | ||
- name: Create GitHub Release | ||
- name: Get Version from Commit Title | ||
id: get_version | ||
run: | | ||
VERSION=$(git log --format=%B -n 1 HEAD | head -n 1) | ||
echo "::set-output name=VERSION::$VERSION" | ||
- name: Create Release # TODO: make this better | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: >- | ||
gh release create '${{ github.ref_name }}' --repo '${{ github.repository }}' --notes "" | ||
- name: Upload artifact signatures to GitHub Releases | ||
run: | | ||
gh release create '${{ steps.get_version.outputs.VERSION }}' --repo '${{ github.repository }}' --notes "" | ||
- name: Upload Release | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: >- | ||
gh release upload '${{ github.ref_name }}' dist/** --repo '${{ github.repository }}' | ||
run: | | ||
gh release upload '${{ steps.get_version.outputs.VERSION }}' dist/** --repo '${{ github.repository }}' |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
VERSION = '1.0.0' | ||
VERSION = "2024.10.10" |
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
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
Oops, something went wrong.