Commit graph

5875 commits

Author SHA1 Message Date
Aaron McMillin
2f5ebaeafb [#1928] change to plus for append/insert 2019-09-29 21:01:04 -04:00
Aaron McMillin
08d967d174 [#1928] Special handling for lists and tuples 2019-09-29 21:01:04 -04:00
Aaron McMillin
1826d61161 [#1928] Fix deleting non-existent items 2019-09-29 21:01:04 -04:00
Aaron McMillin
f76affa6a7 [#1928] Edit existing nested 2019-09-29 21:01:04 -04:00
Aaron McMillin
727df07907 [#1928] fix nested delete bug 2019-09-29 21:01:04 -04:00
Aaron McMillin
eda1f5fd85 [#1928] Delete nested 2019-09-29 21:01:04 -04:00
Aaron McMillin
6edc7d2cb9 [#1928] Create and access data structures 2019-09-29 21:01:04 -04:00
Aaron McMillin
2b40d94a44 [#1928] Helper functions and tests 2019-09-29 20:58:48 -04:00
Griatch
4c9f623caa Extend setup.py file with all needed info 2019-09-29 16:52:39 +02:00
Griatch
b7adc92c7f Fix typo in makefile 2019-09-28 19:09:38 +02:00
Griatch
e18c438608 Shift where in travis run black runs 2019-09-28 18:54:16 +02:00
Griatch
9f7e5f5c50 Tweak travis build format to run black 2019-09-28 18:27:31 +02:00
Griatch
21fe2c0e2c Format code with black. Add makefile to run fmt/tests 2019-09-28 18:18:11 +02:00
Griatch
50d0292291 Set up black on travis 2019-09-25 19:11:30 +02:00
Griatch
127b768a17 Merge branch 'master' into black-format 2019-09-25 18:48:05 +02:00
Griatch
541a6fa855 Show warnings on start -l if settings contains production-unsafe values. Resolves #1732 2019-09-23 23:22:56 +02:00
Griatch
35a8282db0 Add create_msg alias to create_message 2019-09-23 22:46:18 +02:00
Griatch
c4d24a03d1 Catch tracebacks when leaving the py console with exit/exit() 2019-09-22 19:54:23 +02:00
Griatch
22e87ba6db Add simplified Korean translation by aceamro in #1947 2019-09-22 19:41:24 +02:00
Griatch
725e9c3652 Enforce LINEMODE state for vanilla telnet. Resolve #1942 2019-09-22 19:22:48 +02:00
Griatch
ecae28b51d 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
8a5fbc3931 Add default title for doc-issues 2019-09-22 14:42:52 +02:00
Griatch
a010a8716a Further issue-template fixes 2019-09-22 14:41:07 +02:00
Griatch
e4a04af46d Some more fixes to issue templates 2019-09-22 14:39:44 +02:00
Griatch
68cd1f5584 Remove unnecessary issue template 2019-09-22 14:02:33 +02:00
Griatch
b98d377a26 Update issue templates 2019-09-22 14:00:05 +02:00
Griatch
e4407fd33b Change about command to put relevant version info first, as per #1945 2019-09-22 13:32:12 +02:00
Griatch
6fbcb941f9 Clarify command-help for set command. Resolve #1944. 2019-09-22 13:25:27 +02:00
Greg Taylor
8cb5b4cefe 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
d0b762775a
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
abc0fa67c7
Merge pull request #1938 from gtaylor/builtins-removal
Remove builtins imports
2019-09-19 19:27:55 +02:00
Griatch
ad5007c288 Update changelog with removal of pillow lib requirement 2019-09-19 19:26:42 +02:00
Griatch
5d49500e33
Merge pull request #1936 from gtaylor/remove-pillow
Remove pillow from requirements
2019-09-19 19:22:07 +02:00
Griatch
9687708029
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
9ace617cf7 Remove a couple of lingering u strings
These are not needed in Python 3.
2019-09-15 20:41:42 -07:00
Greg Taylor
095ef9df93 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
bb3db818cf 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
3e152a3b57 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
013c5a1884 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
cdb9e3290a Fix MSSP connect traceback. Resolve #1930. Also add mock external_discord_hello inputfunc for Mudlet. 2019-09-15 14:09:47 +02:00
Griatch
5cb98e5a92 Messed up the merge; now removed win-req file 2019-09-15 13:03:38 +02:00
Griatch
c8e7a77d18 Resolve merge conflicts 2019-09-15 13:02:35 +02:00
Griatch
495cc92d8b
Merge pull request #1927 from gtaylor/futures-removal
Remove Python 2.7 compatibility shims
2019-09-15 13:00:43 +02:00
Griatch
92446d4e8c
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
b026b65b08 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
efaa4ee535 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
97f8bf8a6f 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
aa43da1cf3 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
8eae0c13b9 Remove py3.6 handler for ModuleImportError
We require 3.7+ now, no need.
2019-09-15 00:18:56 -07:00
Greg Taylor
c62cc1f530 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