aboutsummaryrefslogtreecommitdiffstats
path: root/poetry.lock (follow)
Commit message (Collapse)AuthorAgeLines
* move httpx to the dev dependency groupGravatar shtlrs2023-03-09-1/+1
|
* relock dependenciesGravatar shtlrs2023-03-09-1/+110
|
* Merge #2408: Scaffold server config via a bootstrapping scriptGravatar Amrou Bellalouna2023-03-09-169/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor configuration into a pydantic-based python constants file, and add a utility to auto-populate guild data. Squashed commits: * use basic config for demo purposes * fix guiding comments * update var names for proper context reflection * fix wront iteration var * add all roles, & channels * load categories * separate sections in env file * ignore .env.server * rename change_log to changelog This also adds a default env file to look for * remove instantiation of webhooks * add most of the default configs These will mostly be fetched from the .env.default file, which won't be bootstrapped * warn when categories/roles/channels are not found * add env file to keep server defaults * fix malformatted value in the .env.default * add default server env variables * update the sections formatting in default env file * fallback to server env when loading constants * add guild basic defaults * update change_log channel name to changelog * add the Guid settings prefix * make _Guild inherit from EnvConfig * add webhook defaults * add python_news defaults to the server env * ad missing webhooks prefix * update bootstrapper logger name * update priority of the env loaded files According to Pydantic's docs: "Later files in the list/tuple will take priority over earlier files." * warn user that default value from PyDis' config will be used * add colours default config * add antispam config * update antispam references * add redis default cfg * add Stats, Cooldowns and CleanMessages consts This also includes their default values * add Metabase to constants This also includes its default values * add URLS to constants This also includes its default values * use the Field class to provide defaults This avoids overriding & changing the `fields` of the `Config` class "dynamically" * add keys constant class * add Guild conf * replace dash with underscore in script * appease linter * transform attributes of AntiSpam to dict when needed This ensures that the application stays backwards compatible * add root_validator for the colours class This enables the conversion from hex to int easily since it's not a supported type by pydantic * reinstate the role & channels combinations * rename URLS to URLs * add emojis & icons constants * add filter constants & their default values * remove all useless spaces * instantiate the keys class * add bot prefix to default env file * fetch Bot constants from env vars instead of the prefix ones * add Miscellaneous config * instantiate poor forgotten Miscellaneous config * add final touches to the constants module This includes removing dups, adding missing channels & fixing type casts * move all default values to constants.py This is done by using the `Field` class. It allows us to 1. Set defaults, in case the variables are not configured 2. Load them from a env variable under a specific name (for backwards comp) 3. load it from any env variable file that contains the right prefix * ignore all .env files * load BOT_TOKEN & GUILD_ID from .env * allow _GUILD to read its id from the `GUILD_ID` env var * base Webhooks settings off of a Webhook model * create necessary webhooks if non existent * appease flake8 docstrings error * make the script idempotent * update type hints * uppercase all consts * make webhook channel optional * add httpx to its own dependency group This group will be optional & only related to the bootstrapper * replace requests with httpx * pass client as param * include raise_for_status as a response hook * rename get_webhook to webhook_exists * update docstring of the constants module * use "." as a separator * update script to account for already created webhooks * make ANTI_SPAM_RULES a module level constant This ensures that flake8 doesn't complain about making a function call in the function's signature * remove the manual resolving of .env paths * update usages of AntiSpam constants * remove forgotten assignment of rule_config * remove useless assignments of env file names * delete default config-default.yml * update docstrings of CodeBlockCog to reference constants.py * add a poetry task that runs the bootstrapping script * add python-dotenv to the config-bootstrap group * update hook name to _raise_for_status * construct site_api in _URLs * remove __name__ == '__main__'guard * Revert "construct site_api in _URLs" This reverts commit 1c555c4280c6a0bdd452319cbd3ffcd0370f5d48. * remove usage of the Field class * update env var keys that the bootstrapping script needs * use API_KEYS.SITE_API as env var in docker compose instead of BOT_API_KEY * use basic config for demo purposes * fix guiding comments * update var names for proper context reflection * fix wront iteration var * add all roles, & channels * load categories * separate sections in env file * ignore .env.server * rename change_log to changelog This also adds a default env file to look for * remove instantiation of webhooks * add most of the default configs These will mostly be fetched from the .env.default file, which won't be bootstrapped * warn when categories/roles/channels are not found * add env file to keep server defaults * fix malformatted value in the .env.default * add default server env variables * update the sections formatting in default env file * fallback to server env when loading constants * add guild basic defaults * update change_log channel name to changelog * add the Guid settings prefix * make _Guild inherit from EnvConfig * add webhook defaults * add python_news defaults to the server env * ad missing webhooks prefix * update bootstrapper logger name * update priority of the env loaded files According to Pydantic's docs: "Later files in the list/tuple will take priority over earlier files." * warn user that default value from PyDis' config will be used * add colours default config * add antispam config * update antispam references * add redis default cfg * add Stats, Cooldowns and CleanMessages consts This also includes their default values * add Metabase to constants This also includes its default values * add URLS to constants This also includes its default values * use the Field class to provide defaults This avoids overriding & changing the `fields` of the `Config` class "dynamically" * add keys constant class * add Guild conf * replace dash with underscore in script * appease linter * transform attributes of AntiSpam to dict when needed This ensures that the application stays backwards compatible * add root_validator for the colours class This enables the conversion from hex to int easily since it's not a supported type by pydantic * reinstate the role & channels combinations * rename URLS to URLs * add emojis & icons constants * add filter constants & their default values * remove all useless spaces * instantiate the keys class * add bot prefix to default env file * fetch Bot constants from env vars instead of the prefix ones * add Miscellaneous config * instantiate poor forgotten Miscellaneous config * add final touches to the constants module This includes removing dups, adding missing channels & fixing type casts * move all default values to constants.py This is done by using the `Field` class. It allows us to 1. Set defaults, in case the variables are not configured 2. Load them from a env variable under a specific name (for backwards comp) 3. load it from any env variable file that contains the right prefix * ignore all .env files * load BOT_TOKEN & GUILD_ID from .env * allow _GUILD to read its id from the `GUILD_ID` env var * base Webhooks settings off of a Webhook model * create necessary webhooks if non existent * appease flake8 docstrings error * make the script idempotent * update type hints * uppercase all consts * make webhook channel optional * add httpx to its own dependency group This group will be optional & only related to the bootstrapper * replace requests with httpx * pass client as param * include raise_for_status as a response hook * rename get_webhook to webhook_exists * update docstring of the constants module * use "." as a separator * update script to account for already created webhooks * make ANTI_SPAM_RULES a module level constant This ensures that flake8 doesn't complain about making a function call in the function's signature * remove the manual resolving of .env paths * update usages of AntiSpam constants * remove forgotten assignment of rule_config * remove useless assignments of env file names * delete default config-default.yml * update docstrings of CodeBlockCog to reference constants.py * add a poetry task that runs the bootstrapping script * add python-dotenv to the config-bootstrap group * update hook name to _raise_for_status * construct site_api in _URLs * remove __name__ == '__main__'guard * Revert "construct site_api in _URLs" This reverts commit 1c555c4280c6a0bdd452319cbd3ffcd0370f5d48. * remove usage of the Field class * update env var keys that the bootstrapping script needs * use API_KEYS.SITE_API as env var in docker compose instead of BOT_API_KEY * relock dependencies * update snekbox's defaults * add support for ot channels * rename help_system_forum to python_help * rename nomination_archive to nomination_voting_archive * rename appeals2 to appeals_2 * yeet sprinters role out * rename all big_brother_logs instances to big_brother The purpose is to adhere to what we have in prod * rename bootstrap_config.py to botstrap.py * update module name of the configure poetry task * update error messages to reflect the new keys needed for env variables * install dotenv as an extra with pydantic * update all prefixes to "_" (underscore) * log tuple of (channel_name, channel_id) in the config verifier * update needed default values for docker compose env var * relock dependencies * update forgotten delimiters & env prefixes
* Update all dependencies to latestGravatar Chris Lovering2023-03-07-691/+828
|
* Bump markdownify from 0.6.1 to 0.11.6 (#2429)Gravatar dependabot[bot]2023-03-07-6/+6
| | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: wookie184 <[email protected]>
* Bump redis from 4.3.5 to 4.4.2Gravatar dependabot[bot]2023-03-03-8/+7
| | | | | | | | | | | | | | | Bumps [redis](https://github.com/redis/redis-py) from 4.3.5 to 4.4.2. - [Release notes](https://github.com/redis/redis-py/releases) - [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES) - [Commits](https://github.com/redis/redis-py/compare/v4.3.5...v4.4.2) --- updated-dependencies: - dependency-name: redis dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
* Bump sentry-sdk from 1.11.1 to 1.16.0Gravatar dependabot[bot]2023-03-03-4/+8
| | | | | | | | | | | | | | | Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.11.1 to 1.16.0. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/1.11.1...1.16.0) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
* Bump pydis-core from 9.5.0 to 9.5.1Gravatar dependabot[bot]2023-03-03-8/+8
| | | | | | | | | | | | | | | Bumps [pydis-core](https://github.com/python-discord/bot-core) from 9.5.0 to 9.5.1. - [Release notes](https://github.com/python-discord/bot-core/releases) - [Changelog](https://github.com/python-discord/bot-core/blob/main/docs/changelog.rst) - [Commits](https://github.com/python-discord/bot-core/compare/v9.5.0...v9.5.1) --- updated-dependencies: - dependency-name: pydis-core dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
* bump pydis-core to 9.5.0Gravatar shtlrs2023-02-28-1106/+1106
|
* bump pydis core to 9.4.1Gravatar shtlrs2023-02-09-9/+9
|
* Bump certifi from 2022.9.24 to 2022.12.7Gravatar dependabot[bot]2022-12-09-3/+3
| | | | | | | | | | | | | Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.9.24 to 2022.12.7. - [Release notes](https://github.com/certifi/python-certifi/releases) - [Commits](https://github.com/certifi/python-certifi/compare/2022.09.24...2022.12.07) --- updated-dependencies: - dependency-name: certifi dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
* Bump all deps to latestGravatar Chris Lovering2022-11-26-387/+287
|
* Bump bot-core versionGravatar Chris Lovering2022-11-26-230/+235
|
* Various improvements and fixesGravatar wookie1842022-10-23-1/+1
|
* Use pydantic to model nominations and split API handling into a new fileGravatar wookie1842022-10-22-1/+66
|
* Merge branch 'main' into update-autoreview-systemGravatar wookie1842022-10-19-577/+540
|\
| * Bump all deps to latestGravatar Chris Lovering2022-10-10-479/+407
| |
| * Bump bot-core to 8.2.1Gravatar Chris Lovering2022-10-10-151/+1339
| | | | | | | | From the release notes on d.py [here](https://canary.discord.com/channels/336642139381301249/381965829857738772/1006359073610010664) and [here](https://canary.discord.com/channels/336642139381301249/381965829857738772/1008772795179737230) none of the breaking changes for the commit we were on to 2.0.1 affect us.
* | Use scoring system that weights age and number of entriesGravatar wookie1842022-10-09-119/+1295
|/ | | | Added new tests for this behaviour, and added pytest-subtests dev dependency
* revert bump to markdownify versionGravatar Chris Lovering2022-08-14-9/+9
| | | | | The new versions introduce conversions which causes the doc command embed to be formatted improperly
* Bump bot-core to full 8.0.0 releaseGravatar Chris Lovering2022-08-14-7/+6
|
* Bump all deps to latestGravatar Chris Lovering2022-08-14-64/+41
|
* Bump bot-core versionGravatar Chris Lovering2022-08-14-1210/+115
| | | | This bump comes with a move to redis-py over aioredis. As such, pin new transitive dependancies to exact versions.
* Use the view clear on timeout feature from bot-core in snekboxGravatar Chris Lovering2022-07-21-8/+5
| | | | This will mean the buttons will be cleared from the response on interaction timeout.
* Use generic views from bot0core for snekboxGravatar Chris Lovering2022-07-16-106/+1181
|
* Bump urllib3 from 1.24.3 to 1.26.5 (#2210)Gravatar dependabot[bot]2022-07-09-18/+10
| | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump lxml from 4.8.0 to 4.9.1 (#2208)Gravatar dependabot[bot]2022-07-09-1235/+99
| | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump requests from 2.15.1 to 2.20.0 (#2202)Gravatar dependabot[bot]2022-07-09-14/+32
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Xithrius <[email protected]>
* Pin fakeredis to 1.7.5 due to breaking aioredis changeGravatar Chris Lovering2022-06-28-14/+15
| | | | This can be unpinned once https://github.com/SebastiaanZ/async-rediscache/pull/18 is merged
* Bump botcore to get latest d.py changesGravatar Chris Lovering2022-06-28-162/+159
|
* Merge branch 'main' into revert-markdownify-bumpGravatar Hassan Abouelela2022-05-21-119/+124
|\ | | | | | | | | # Conflicts: # poetry.lock
| * Bump Bot Core to v7.0.0Gravatar Hassan Abouelela2022-05-11-77/+78
| | | | | | | | | | | | | | | | Bumps the botcore version to v7.0.0, and implements the changes required by the breaking fix documented in the changelog for `utils.regex.DISCORD_INVITE`. Signed-off-by: Hassan Abouelela <[email protected]>
* | revert bump to markdownify versionGravatar Numerlor2022-04-29-11/+7
|/ | | | | The new versions introduce conversions which causes the doc command embed to be formatted improperly
* Bump d.py and bot-coreGravatar Chris Lovering2022-04-26-5/+5
| | | | one of the commits in this bump dynamically extends the timeout of Guild.chunk() based on the number or members, so it should actually work on our guild now.
* Bump bot base so a real statsd client is actually createdGravatar Chris Lovering2022-04-26-3/+3
|
* Bump bot-coreGravatar Chris Lovering2022-04-21-2/+2
| | | | This change loads each cog in their own task, meaning if one fails, others still load.
* Bump bot-core which has unqualify in the utils namespaceGravatar Chris Lovering2022-04-21-3/+3
|
* Bump bot-core for new discord.py versionGravatar Chris Lovering2022-04-19-5/+5
|
* Move api_client to a kwarg on creation of the BotGravatar Chris Lovering2022-04-19-3/+3
|
* Move redis session reconnect to bot-coreGravatar Chris Lovering2022-04-18-20/+20
|
* Bump d.py and bot-coreGravatar Chris Lovering2022-04-18-5/+10
|
* Bump all deps and exact version pin.Gravatar Chris Lovering2022-04-18-263/+462
| | | | | | Exact versioning has been chosen to be more explicit in what versions we require. We will be using dependabot in github to ensure these versions are kept up to date.
* Remove aio-pika and psutilGravatar Chris Lovering2022-04-18-374/+425
| | | | | | | | | aio-pika was used in the RabbitMQ cog (added in https://github.com/python-discord/bot/pull/90) which has since been deleted. It is no longer used. psutil was used to automatically determine how many threads to use when testing. However, this package has been quite slow to publish wheels for new Python versions. Since we don't use it for anything mission critical, I have removed it and hardcoded the number of threads to use when when testing to 8. An error is not raised it the number of threads used exceeds the number of actual threads available.
* Revert "Migrate from Discord.py to disnake"Gravatar Chris Lovering2022-03-15-203/+188
| | | | This reverts commit a30f8856cc24e6b42fc86ab972d605bfe2562075.
* Revert "Update all references of discord.py to disnake"Gravatar Chris Lovering2022-03-15-6/+6
| | | | This reverts commit 960619c23300c56c8aaa454edc7241e2badf80ad.
* Revert "Migrate to use monkey patches from botcore"Gravatar Chris Lovering2022-03-15-183/+108
| | | | This reverts commit ab073c89ad37c26eb4103ef0ca58e16421bca875.
* Migrate to use monkey patches from botcoreGravatar Chris Lovering2022-03-05-108/+183
|
* Update all references of discord.py to disnakeGravatar Chris Lovering2022-03-05-6/+6
| | | | All of the tag content is out of scope for this PR.
* Migrate from Discord.py to disnakeGravatar Chris Lovering2022-03-05-188/+203
|
* Remove Coveralls dev dependencyGravatar Ben Soyka2022-02-06-32/+2
|