Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
Release 9.0.0 (#291)
Browse files Browse the repository at this point in the history
* travis: make deploy last and test first (#254)

* copied from sopel-irc/sopel@a33caf1

* dev-require: require flake8

See #255

* Introduce utils.mwapihandler and a wikimgnt plugin and make status use mwapihandler (#252)

* Let's test this and see what happens
Co-authored-by: MacFan4000 <paulfkeffer@gmail.com>

* Revert "Introduce utils.mwapihandler and a wikimgnt plugin and make status use mwapihandler (#252)" (#257)

This reverts commit cce7fb2.

* Introduce utils.mwapihandler, a wikimgnt plugin and also make status use the new mwapihandler (#258)

Let's try this, take 2
Co-authored-by: MacFan4000 <paulfkeffer@gmail.com>

* status: fix config rename

* mwapihandler: return a response if login works

* Update mwapihandler.py

* mwapihandler: fix spelling of logintoken

* Fix wikifarm

* Update mwapihandler.py

* mwapihandler: drop redirect from 'create'

* testing

* Update mwapihandler.py

* Update status.py

* Update status.py

* status: hardcode parameters

* mwapihandler: actually pass content if it exists

* status: stop parsing trigger in updatestatus

See #259 

This drops the trigger.* and options from being passed to the updatestatus(..) method and replaces it with a requestdata array containing the data for the request. By doing this, we ensure that the passed data to updatestatus is validated and can better handle exceptions.

Resolves T61

* joinall: stop checking channel

* joinall: fix indentation

* status: replace a few removed variables

* Fix LGTM errors/warnings (#260)

See #260 

NOOP

* drop __future__

See #261

* travis: Stop blacklisting E402 (#262)

* travis: stop blacklisting F401 (#264)

* travis: stop blacklisting F401

* wikimgnt: drop unused imports

* wikimgnt: drop unused import

* status: drop unused import

* mwapihandler: drop unused import

* models: drop unused imports

* test_rss: drop unused imports

* module -> plugin (#263)

See #263

NOOP

* travis: stop blacklisting W503

See #265

* travis: remove all ignores (#266)

* travis: remove all ignores

* Update wikimgnt.py

* Update mwapihandler.py

* Update mwapihandler.py

* wikimgnt: refactor deletepage()

* wikimgnt: more refactoring

* wikimgnt: if -> elif

* Update wikimgnt.py

* wikimgnt: add blockManager and make (un)block user it

* wikimgnt: fix syntax help for blockManger

* wikimgnt: + trigger for blockManager

* wikimgnt: cleanup

* Update wikimgnt.py

* Fix block/unblock

Target/reason is different for wikifarm

* Fix

* Link user page in edit summary

Per suggestion of dmehus

* Revert

* Fix devoice

* Bump setuptools from 49.2.1 to 49.3.0

Bumps [setuptools](https://github.com/pypa/setuptools) from 49.2.1 to 49.3.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/master/CHANGES.rst)
- [Commits](pypa/setuptools@v49.2.1...v49.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Add Json Parser

See #269 

Introduce a util script for the parsing of json.

Bug: T64

* status: remove unneeded variable assignment

* mwapihandler: use CONSTANT for CONNECTERRMSG

* mapihandler: fix

* mwapihandler: rename TOKEN -> token inside makeaction(..) (#270)

* Update phab.py

* [Security] Stop using http:// for rss tests

* mwapihandler: remove unused variable

* rss: fix variable assigned twice

* ZppixBot -> MirahezeBot (#272)

* Update requirements.txt

* Update responses.py

Co-authored-by: RhinosF1 <rhinosf1@gmail.com>

* channelmgnt: cache json in memory

See #273 

Resolves T64

* channelmgnt: bug fix

* Update channelmgnt.py

* Update phab.py

* Bump setuptools from 49.3.0 to 49.3.1

Bumps [setuptools](https://github.com/pypa/setuptools) from 49.3.0 to 49.3.1.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/master/CHANGES.rst)
- [Commits](pypa/setuptools@v49.3.0...v49.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* jsonparser: add cache validation / channelmgnt: add command to validate cache

See #276

* channelgmnt: apparently trigger is given by force

* channelmgnt: switch to makemodechange(...)

See #277

* channelmgnt: revert a tiny bit

* channelmgnt: fix

* channelmgnt: clean up

* status: switch to json logic

See #278

* status: sp

* Update status.py

* status: fix

* status: add error

* status: fix

* status: debug

* status: access right section

* Bump setuptools from 49.3.1 to 49.3.2

Bumps [setuptools](https://github.com/pypa/setuptools) from 49.3.1 to 49.3.2.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/master/CHANGES.rst)
- [Commits](pypa/setuptools@v49.3.1...v49.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* phab: add cache handler and warn on old config

See #280 

PR is no-op in production

* Phab use multi url Take 2

See #281

* Update phab.py

* Revert last 3 commits (phab update) (#282)

* Revert "Update phab.py"

This reverts commit 904c00f.

* Revert "Phab use multi url Take 2"

This reverts commit 68efef5.

* Revert "phab: add cache handler and warn on old config"

This reverts commit 210b744.

* Phab: Take 4 (#283)

* Revert "Revert last 3 commits (phab update) (#282)"

This reverts commit 11a7c4c.

* phab: take 4

* Update phab.py

* Update phab.py

* Update phab.py

* Update phab.py

* phab: use new URL from host for output

See #284

* Update phab.py

* phab: remove debug code

* Bump setuptools from 49.3.2 to 49.4.0

Bumps [setuptools](https://github.com/pypa/setuptools) from 49.3.2 to 49.4.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/master/CHANGES.rst)
- [Commits](pypa/setuptools@v49.3.2...v49.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump setuptools from 49.4.0 to 49.5.0

Bumps [setuptools](https://github.com/pypa/setuptools) from 49.4.0 to 49.5.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/master/CHANGES.rst)
- [Commits](pypa/setuptools@v49.4.0...v49.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump setuptools from 49.5.0 to 49.6.0

Bumps [setuptools](https://github.com/pypa/setuptools) from 49.5.0 to 49.6.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/master/CHANGES.rst)
- [Commits](pypa/setuptools@v49.5.0...v49.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* status: stop passing bot.* to updatestatus(..)

* status: fix

* mwapi: fix too many parameters code smell

See #288

* use cache for wikimgnt (#289)

* use cache for wikimgnt

* fix travis

* fixes

* fix

* fixes

* more fixes

* more fixes

* caps

* remove duplicate variable definition

* Update wikimgnt.py

* fix

* add debug

* fixes

* fix

* fix

* fixes

* fix

* fix

* urgh

* fix

* fix

* fixes

* Update wikimgnt.py

* Update wikimgnt.py

* Update wikimgnt.py

* Update wikimgnt.py

* wikimgnt: back out of 9.0.0

Maybe restored if I have time but in it's current state it's not production/stable code.

I can see multiple things that don't make sense, unhandled errors, ignored suggestions and things that don't return right.

* Revert wikimgnt json (#292)

* Revert "Update wikimgnt.py"

This reverts commit 360affa.

* Revert "Update wikimgnt.py"

This reverts commit 2568ac2.

* Revert "Update wikimgnt.py"

This reverts commit 537d409.

* Revert "Update wikimgnt.py"

This reverts commit f5e2f26.

* Revert "fixes"

This reverts commit 9b13cc2.

* Revert "fix"

This reverts commit 7a84681.

* Revert "fix"

This reverts commit e354528.

* Revert "urgh"

This reverts commit 70ef23b.

* Revert "fix"

This reverts commit caa9ae6.

* Revert "fix"

This reverts commit e2ab457.

* Revert "fixes"

This reverts commit 4cf5793.

* Revert "fix"

This reverts commit 6540f46.

* Revert "fix"

This reverts commit b4108de.

* Revert "fixes"

This reverts commit f7834af.

* Revert "add debug"

This reverts commit d866837.

* Revert "fix"

This reverts commit de3200a.

* Revert "use cache for wikimgnt (#289)"

This reverts commit d54cd0f.

* Rework to not pass bot and trigger phab T69 #2 (#293)

* Update welcome.py

Fixed welcome.py send_welcome to not pass bot and trigger

* Spaces to Tab

* autopep8 results

Change spacing with autopep8 for .... 'tool happiness'

Co-authored-by: RhinosF1 <rhinosf1@gmail.com>
Co-authored-by: Operator873 <operator873@873gear.com>

* test_json: add json parser tests

See #294

* Rework to not pass bot and trigger phab T69 #2 (#293)

* Update welcome.py

Fixed welcome.py send_welcome to not pass bot and trigger

* Spaces to Tab

* autopep8 results

Change spacing with autopep8 for .... 'tool happiness'

Co-authored-by: RhinosF1 <rhinosf1@gmail.com>
Co-authored-by: Operator873 <operator873@873gear.com>

* test_json: add json parser tests

See #294

* bump dev to v9

See #275 

Bug: T63

* bump dev to v9

See #275 

Bug: T63

* Bump sqlalchemy from 1.3.18 to 1.3.19

Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.3.18 to 1.3.19.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/master/CHANGES)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Version 9.0.0 changelog

* Update CHANGELOG.md

Co-authored-by: MacFan4000 <paulfkeffer@gmail.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Operator873 <49728480+Operator873@users.noreply.github.com>
Co-authored-by: Operator873 <operator873@873gear.com>
Co-authored-by: Devin/Zppix <zppix@miraheze.org>
  • Loading branch information
6 people committed Aug 18, 2020
1 parent 5d37855 commit d00096b
Show file tree
Hide file tree
Showing 25 changed files with 594 additions and 596 deletions.
32 changes: 14 additions & 18 deletions .travis.yml
Expand Up @@ -8,7 +8,6 @@ dist: xenial
os: linux

install:
- pip install flake8
- pip install -r dev-requirements.txt
- pip install .
before_script:
Expand All @@ -17,32 +16,29 @@ before_script:
- pip show MirahezeBot-Plugins

script:
# we ignore E402 because of workarounds we use for modules loading, and F401 because some imports aren't directly used but needed for modules and travis doesn't like that
- flake8 MirahezeBots/plugins --ignore E402,F401,W503,E722 --max-line-length 220 --exclude=__init__.py
- flake8 tests --ignore E402,F401,W503,E722 --max-line-length 220
- flake8 MirahezeBots/plugins --max-line-length 265 --exclude=__init__.py
- flake8 tests --max-line-length 265
- flake8 MirahezeBots/utils --max-line-length 265 --exclude=__init__.py
- pytest tests/test_general.py
- pytest tests/test_rss.py
- pytest tests/test_json.py
- pip-missing-reqs --ignore-file=setup.py --ignore-module=pytest --ignore-module=MirahezeBots.* .
- pip-extra-reqs .
- pip check

after_script:
- pip freeze

jobs:
include:
- stage: deploy
python: 3.7
deploy:
provider: pypi
username: __token__
password:
secure: "s7+VjPrBDBICr3yvDEw9lq/iqE22BNYuNH3l6LL/5ebaQ+yqZ9hF0wWnd5JE8tdJnm2wXK5tHbIoIKr6quJLYYdZJ7MnuHdetYQFJjq8EQy3rU7LHcjho7nFU9I1b/RgQrLtFLx6Yq+Ozcceyux0+WWqfhoJ8Tptz1n03dOtdRupn+OMDSoJZLDAJqRrPseeVZpFKHFvitzbnPDYn5yAb2EW96wodYFYtJNZ4VFC5Gvh7qejbt7Cwtsu3KlPWubpYGBWnwMfyyM7yoV+gSQ/NvdFTtdbjH4Ebwy/DDKkwP9i9jNB5H5P0ntEIpDGvUhmbfj2G11rKHpLdAZsZgWqqLL74YsGTCmqoLVxNNDByWP8eN+U+u9uFY9D1fRbIshisl2yzTKkGV+dr9N+ZZNa9O8ii+emT9PpwCdWft9YrdsHuPNah3RkuuNede2jNeXpkBPd1t5sZvNtyto/CPRLNEavG8Z60yp+cXBNpam8FSBOK9ZAhc6DC7jPuX6hwPcNGwoZQra7wZMS457Pbpi7pfhjxApHhGSUikZ60+DvbEgDgi6Nut36M3SfS4FP/vRnJbIIb4k4I8o0X38Re4E4R5W5sD3TS7MACCRvOy/JNNmYnK0paxqgaUDZULDchdu3aU32mitDM8zC6ylDFVwLIpqkIaYmWjoD0CvNkpYh88U="

stages:
- name: deploy
if: branch = master AND type = push

deploy:
provider: pypi
username: __token__
password:
secure: "s7+VjPrBDBICr3yvDEw9lq/iqE22BNYuNH3l6LL/5ebaQ+yqZ9hF0wWnd5JE8tdJnm2wXK5tHbIoIKr6quJLYYdZJ7MnuHdetYQFJjq8EQy3rU7LHcjho7nFU9I1b/RgQrLtFLx6Yq+Ozcceyux0+WWqfhoJ8Tptz1n03dOtdRupn+OMDSoJZLDAJqRrPseeVZpFKHFvitzbnPDYn5yAb2EW96wodYFYtJNZ4VFC5Gvh7qejbt7Cwtsu3KlPWubpYGBWnwMfyyM7yoV+gSQ/NvdFTtdbjH4Ebwy/DDKkwP9i9jNB5H5P0ntEIpDGvUhmbfj2G11rKHpLdAZsZgWqqLL74YsGTCmqoLVxNNDByWP8eN+U+u9uFY9D1fRbIshisl2yzTKkGV+dr9N+ZZNa9O8ii+emT9PpwCdWft9YrdsHuPNah3RkuuNede2jNeXpkBPd1t5sZvNtyto/CPRLNEavG8Z60yp+cXBNpam8FSBOK9ZAhc6DC7jPuX6hwPcNGwoZQra7wZMS457Pbpi7pfhjxApHhGSUikZ60+DvbEgDgi6Nut36M3SfS4FP/vRnJbIIb4k4I8o0X38Re4E4R5W5sD3TS7MACCRvOy/JNNmYnK0paxqgaUDZULDchdu3aU32mitDM8zC6ylDFVwLIpqkIaYmWjoD0CvNkpYh88U="
on:
python: "3.7"
branch: master
skip_existing: true

notifications:
irc:
channels:
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,27 @@
**Changelog**

Please see below for changes to MirahezeBot-Plugins
# Version 9.0.0
## Miscellaneous
- travis: changed test configuration
- responses: corrections and style changes
- rss: style improvements
- test models: style tweaks
- test general: up'd max line length
- test rss: style changes & replaced http:// with https://
## Requirements
- mwclient no longer required
- Setuptools bumped from 49.5.0 to 49.6.0
- flake8 is now required for developers
- SQLAchemy is now at 1.3.19
## Plugins
- all: removed future imports
- channelmgnt: switched to caching the json config
- channelmgnt: introduced a makemodechange system
- channelmgnt: added support_channel config
- status: replaced mwclient with a new util script, introduced cached json config, renamed other config
- phab: Introduced channel specific configuration


# Version 8.0.3
## Miscellaneous
Expand Down
9 changes: 1 addition & 8 deletions MirahezeBots/plugins/adminlist.py
@@ -1,11 +1,4 @@
"""This module provides admin list and access level information."""

from __future__ import (
unicode_literals,
absolute_import,
print_function,
division
)
"""This plugin provides admin list and access level information."""

from sopel.module import commands

Expand Down

0 comments on commit d00096b

Please sign in to comment.