Commit graph

5867 commits

Author SHA1 Message Date
Griatch
ba9b41ed4b Extend setup.py file with all needed info 2019-09-29 16:52:39 +02:00
Griatch
db506dc58c Fix typo in makefile 2019-09-28 19:09:38 +02:00
Griatch
e402bfa6a9 Shift where in travis run black runs 2019-09-28 18:54:16 +02:00
Griatch
c3a4466605 Tweak travis build format to run black 2019-09-28 18:27:31 +02:00
Griatch
c2c7fa311a Format code with black. Add makefile to run fmt/tests 2019-09-28 18:18:11 +02:00
Griatch
d00bce9288 Set up black on travis 2019-09-25 19:11:30 +02:00
Griatch
1efcc31744 Merge branch 'master' into black-format 2019-09-25 18:48:05 +02:00
Griatch
37452e2a43 Show warnings on start -l if settings contains production-unsafe values. Resolves #1732 2019-09-23 23:22:56 +02:00
Griatch
70da95ef68 Add create_msg alias to create_message 2019-09-23 22:46:18 +02:00
Griatch
f7ed56dc64 Catch tracebacks when leaving the py console with exit/exit() 2019-09-22 19:54:23 +02:00
Griatch
a315b3c7ec Add simplified Korean translation by aceamro in #1947 2019-09-22 19:41:24 +02:00
Griatch
bb370c89fe Enforce LINEMODE state for vanilla telnet. Resolve #1942 2019-09-22 19:22:48 +02:00
Griatch
dafec2e720 Don't trim input whitespace from webclient, to better support python code input, as per #1935 2019-09-22 19:22:15 +02:00
Griatch
b5b66b271c Add default title for doc-issues 2019-09-22 14:42:52 +02:00
Griatch
10e01fa3b6 Further issue-template fixes 2019-09-22 14:41:07 +02:00
Griatch
eb10dde761 Some more fixes to issue templates 2019-09-22 14:39:44 +02:00
Griatch
c13bc5ab53 Remove unnecessary issue template 2019-09-22 14:02:33 +02:00
Griatch
83af02c21d Update issue templates 2019-09-22 14:00:05 +02:00
Griatch
88e8e88594 Change about command to put relevant version info first, as per #1945 2019-09-22 13:32:12 +02:00
Griatch
96b3cd049c Clarify command-help for set command. Resolve #1944. 2019-09-22 13:25:27 +02:00
Greg Taylor
ac810054aa Add auto-formatting via black
Introduce black, a Python code formatter. Also a Makefile that
includes two common targets:

* fmt (auto-format the code)
* lint (lint the code and return non-zero if out of spec)

We can re-use the latter in CI.

By introducing a code formatter, we can cut down on stylistic
variations across a now-large codebase. We can also avoid most style
discussions in PR if we just have this thing enforce it for us.
2019-09-22 10:23:28 +02:00
Griatch
bce118ca93 Merge pull request #1939 from gtaylor/u-str-removal
Remove a couple of lingering u strings
2019-09-19 19:28:47 +02:00
Griatch
741dc652d6 Merge pull request #1938 from gtaylor/builtins-removal
Remove builtins imports
2019-09-19 19:27:55 +02:00
Griatch
bde0f26496 Update changelog with removal of pillow lib requirement 2019-09-19 19:26:42 +02:00
Griatch
1b873e1c6e Merge pull request #1936 from gtaylor/remove-pillow
Remove pillow from requirements
2019-09-19 19:22:07 +02:00
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
f55b16a500 Remove a couple of lingering u strings
These are not needed in Python 3.
2019-09-15 20:41:42 -07:00
Greg Taylor
5e1a672fc2 Remove builtins imports
This module is not intended to be used directly in most cases, per:
https://docs.python.org/3/library/builtins.html

None of our usages warrant the explicit import. We also avoid some
confusion as folks dig to see what we are doing to require
importing builtins directly.
2019-09-15 20:29:59 -07: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
Greg Taylor
ba895ce703 Remove pillow from requirements
This was originally suggested due to an imagefield, but that is
no longer present. Since Pillow is not required to run Evennia,
we should remove it and let the users opt into it if they end
up wanting/needing it for their custom code.
2019-09-15 17:28:10 -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