Add attendance functions and setup script#1
Open
ed522 wants to merge 126 commits intoGraham277:masterfrom
Open
Add attendance functions and setup script#1ed522 wants to merge 126 commits intoGraham277:masterfrom
ed522 wants to merge 126 commits intoGraham277:masterfrom
Conversation
…defaults to logging exceptions
… reflect some architectural changes
Author
|
Currently not ready to commit, as there is more testing and fixing to be done. As of now I see no blockers but there are 2 fixable issues. I'm planning on doing a "burn-in" test over a couple weeks, which hopefully can weed out any important bugs. |
Author
|
I don't think anything is currently blocking this from merge. Marking ready for review. |
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.6.2 to 2.6.3. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst) - [Commits](urllib3/urllib3@2.6.2...2.6.3) --- updated-dependencies: - dependency-name: urllib3 dependency-version: 2.6.3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
--- updated-dependencies: - dependency-name: aiohttp dependency-version: 3.13.3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Bump urllib3 from 2.6.2 to 2.6.3
Bump aiohttp from 3.13.2 to 3.13.3
Bumps [pyasn1](https://github.com/pyasn1/pyasn1) from 0.6.1 to 0.6.2. - [Release notes](https://github.com/pyasn1/pyasn1/releases) - [Changelog](https://github.com/pyasn1/pyasn1/blob/main/CHANGES.rst) - [Commits](pyasn1/pyasn1@v0.6.1...v0.6.2) --- updated-dependencies: - dependency-name: pyasn1 dependency-version: 0.6.2 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Bump pyasn1 from 0.6.1 to 0.6.2
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds all features to communicate with the attendance endpoint and GCP service account, as well as supporting things like secret management. Also adds some convenience tools like a sample
.envfile. Finally, it adds a large script calledsetup.py.setup.pyis an installer, uninstaller and secret helper. Install copies the project files to one of three installation directories, adds symlinks (if necessary) and installs a systemd. Uninstall gets rid of everything (except keyring credentials). Import reads secrets.json from any path, then imports it into a keyring, orsystemd-creds- which stores the encrypted secrets directly in the unit file, removing the keyring dependency.Summary of changes (by file):
New:
/AttendanceCodeCommunicator.py: communicates with Java endpoint/SheetsManager.py: handles auth/writing to a sheet/setup.py: installer, uninstaller and key import helper/cogs/MarkHere.py: marks someone off the attendance with a code (command)/start.sh: quickly source a virtualenv folder and start up/example.env: sample .env file with placeholder values/requirements.txt: list of dependencies, generated by pipChanged:
/.gitignore: ignore secrets.json, venv, pycaches/README.md: almost replaced the entire file. Added information on installation and keyrings. Added more instructions on token management. Added instructions on setting up a Discord app and GCP project. Added more information on.envfile. Added more running instructions. Added uninstallation instructions. Added troubleshooting section./main.py: Added$DOZER_DOTENV_PATHwhich overrides.envlocation. Added shebang. Added command line switch parsing. Added switches for importing secrets and disabling attendance features. Added code to check.envfor required fields.