Commit graph

5839 commits

Author SHA1 Message Date
Griatch
0f697b397c Merge pull request #1937 from gtaylor/utils-imp-removal
Remove deprecated "imp" module uses in evennia.utils.utils
2019-09-19 18:12:52 +02:00
Greg Taylor
901277ea64 Switch to module imports for importlib in utils
The present day guidance is to lean towards module imports for the
stdlib modules. Switch importlib imports to this instead of
plucking out the functions that we need. This makes it more
immediately apparent as to where the functions are coming from
in the application logic.
2019-09-15 20:21:50 -07:00
Greg Taylor
da48fa2e52 Refactor mod_import to use importlib
Switch from the deprecated imp to importlib. Also add tests and
clean up logic flow. This should be quite a bit faster than the
old implementation as well.
2019-09-15 20:21:50 -07:00
Griatch
e395ea9371 Fix MSSP connect traceback. Resolve #1930. Also add mock external_discord_hello inputfunc for Mudlet. 2019-09-15 14:09:47 +02:00
Griatch
75c6f198ee Messed up the merge; now removed win-req file 2019-09-15 13:03:38 +02:00
Griatch
02a391d308 Resolve merge conflicts 2019-09-15 13:02:35 +02:00
Griatch
ac3a8d2199 Merge pull request #1927 from gtaylor/futures-removal
Remove Python 2.7 compatibility shims
2019-09-15 13:00:43 +02:00
Griatch
033d00ae77 Merge pull request #1926 from gtaylor/django-2.2.5
Bump min Django version to 2.2.5
2019-09-15 12:55:45 +02:00
Greg Taylor
93ca8504d0 Bump min Django version to 2.2.5
Bug fix release. For more details, see:
https://docs.djangoproject.com/en/2.2/releases/2.2.5/
2019-09-15 00:40:26 -07:00
Greg Taylor
0c5628759f Condense requirements files down to one
PEP 508 defines a way to specify platform-specific requirements.
Rather than having to manage two different requirements files, let's
crunch them down to one and use that facility.

For more details on how this works, see:
https://www.python.org/dev/peps/pep-0508/
2019-09-15 00:37:30 -07:00
Greg Taylor
bd33886cc0 Remove uses of the 'future' py2->3 module
This is no longer needed, now that we are Py3.7+ only. One
layer of indirection removed, and one less dependency.
2019-09-15 00:18:56 -07:00
Greg Taylor
edbe583959 Clean up utils gc/sys imports
Move to top and import the modules instead of funcs from them.
Keeps the scope cleaner.
2019-09-15 00:18:56 -07:00
Greg Taylor
e5354a6787 Remove py3.6 handler for ModuleImportError
We require 3.7+ now, no need.
2019-09-15 00:18:56 -07:00
Greg Taylor
3fb23f4c70 Remove unused utils.clean_object_caches func
Sounds like this used to have a purpose but no longer does.
2019-09-15 00:17:39 -07:00
Greg Taylor
41622d4527 Remove unneeded __futures__ imports
No longer needed with Python 2 support dropped.
2019-09-15 00:17:39 -07:00
Greg Taylor
0eef4bee6f Fix breaking typo in evennia.objects.objects
Noneo->Noneo
2019-09-15 00:15:21 -07:00
Griatch
b609c548f0 Make DefaultObject echo confirmation when being puppeted, as per #1923 2019-09-14 20:56:36 +02:00
Griatch
96490386a1 Fix prototype_tag issue in olc. Resolve #1918 2019-09-14 20:45:58 +02:00
Griatch
bc2777031d More fixes to text2ansi regexes. Resolve #1920. Resolve #1924. 2019-09-14 20:18:07 +02:00
Griatch
12ce59954e Merge pull request #1925 from evennia/contrib-egi-readme-removal
Remove EGI mention in contrib README.md
2019-09-14 14:44:38 +02:00
Greg Taylor
535d2d05f1 Remove EGI mention in contrib README.md
EGI was moved into core.
2019-09-13 22:14:06 -07:00
Griatch
25aa026b28 ... and another fix to handle line breaks in web client 2019-09-11 20:02:24 +02:00
Griatch
c1be45b18d Use literal space rather than \s in text2html parser. Resolve #1916. 2019-09-11 19:58:28 +02:00
Griatch
e7b4ba019a Merge branch 'master' of github.com:evennia/evennia 2019-09-11 08:42:47 +02:00
Griatch
56bfc10828 Fix line breaks from fixed-width lines in webclient. Resolve #1837. 2019-09-11 08:42:34 +02:00
Griatch
73ba06d5f8 Merge pull request #1915 from kovitikus/myfixes
Updated various modules with f-strings.
2019-09-10 21:50:54 +02:00
Kovitikus
4646da4135 Fixed string conversions. 2019-09-10 15:17:56 -04:00
Kovitikus
8dcd1bb286 Fixed string conversions. 2019-09-10 15:17:21 -04:00
Kovitikus
ced0bfea59 Converions to string types. 2019-09-10 14:42:01 -04:00
Griatch
607004f2eb Fix mismatching help query in OOC mode. Resolve #1914. 2019-09-10 19:57:22 +02:00
Kovitikus
c376fb5b57 Updated tests.py with f-strings. 2019-09-10 13:29:21 -04:00
Kovitikus
02397aca0b Updated models.py with f-strings. 2019-09-10 13:24:16 -04:00
Kovitikus
37912417dc Updated manager.py with f-strings. 2019-09-10 13:22:05 -04:00
Kovitikus
d70eb388f1 Updated bots.py to fstrings. 2019-09-10 12:47:03 -04:00
Kovitikus
e343576292 Fixed a trailing whitespace. 2019-09-10 11:22:43 -04:00
Kovitikus
c0a5156c70 Updated to fstrings. 2019-09-10 10:31:49 -04:00
Griatch
6b2c2ee6e3 Properly encode FileLogger's readline output. Resolve #1875. 2019-09-09 07:18:28 +02:00
Griatch
47b362738d Fix unit tests 2019-09-08 21:17:55 +02:00
Griatch
dc444bd2be Fix typo in lock defintion 2019-09-08 20:19:51 +02:00
Griatch
9e3285a791 Handle drop with drop:holds() lock. Default to pass for backwards-compatibilty while on Evennia 0.9. See #1868 2019-09-08 20:17:04 +02:00
Griatch
d92efb6e67 Fix traceback in rpsystem contrib. Resolve #1871 2019-09-08 19:41:14 +02:00
Griatch
bb5324ba52 Fix AttributeHandler.get with no Attributes. Also make return_list=True return [] rather than [None]. Resolves #1866 2019-09-08 19:18:19 +02:00
Griatch
ea07a81696 Fix ANSI->HTML conversion in webclient; Resolve #1792 2019-09-08 18:26:23 +02:00
Griatch
05b859c0b7 Fix pager output for spawn/list with a very long list. Resolve #1829 2019-09-08 00:46:02 +02:00
Griatch
c520ef86c9 Make DEFAULT_CHANNELS auto-recreate missing channels. Add new CHANNEL_MUDINFO setting. 2019-09-08 00:09:00 +02:00
Griatch
dd8b3c1ba2 Use lists in settings. Resolve #1912 2019-09-07 22:51:23 +02:00
Griatch
bbb1d40c2d Make GLOBAL_SCRIPTS auto-start timed scripts; list all global scripts 2019-09-07 18:13:54 +02:00
Griatch
e5072f7b39 Give better instructions in clothing contrib 2019-09-06 21:50:00 +02:00
Griatch
7d8d3216a9 Resolve duplicate script execution for global script. Make paused script fire at_server_reload. Resolve #1911. 2019-09-05 23:54:07 +02:00
Griatch
ad2e0ce0be Make search_account also search by account alias. Resolve #1910 2019-09-04 20:57:44 +02:00