1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-22 03:40:46 +03:00

2299 Commits

Author SHA1 Message Date
Athanasius
f3667dc09c Merge branch 'release-4.1.1' into releases 2020-10-06 16:38:07 +01:00
Athanasius
4ee2957913 Release 4.1.1 Release/4.1.1 2020-10-06 16:29:04 +01:00
Athanasius
97d42e8806
Merge pull request #738 from EDCD/fix/revert-unicode-changes
Fix/revert unicode changes
2020-10-06 16:22:32 +01:00
Athanasius
58bf8466ae locale: Remove conditional on locale setting & comments cleanup
* We're using try/except so can just attempt the setting of a UTF-8
  encoding.  In cases where it doesn't work we'll have some obvious log
  output to help diagnose any issues it causes later.

* Cleaned up the comments to be more 'why' than 'what'.
2020-10-06 16:16:21 +01:00
Athanasius
2b65bbd768 Re-instate the non-tkinter file dialog.
* This will be gated behind win32 *and* not a UTF-8 encoding.  This way
  where we should be able to use tkinter.filedialog, we do.
2020-10-06 15:49:17 +01:00
Athanasius
b235684dd6 Only attempt locale changes if *not* running frozen on win32.
Any running from source, or on a non-win32 platform will attempt to
force UTF-8 encoding.

For frozen win32 we'll rely on the windows manifest setting.  On too-old
versions of Windows we'll have to ensure all code works with non-UTF-8
encodings.
2020-10-06 15:16:15 +01:00
Athanasius
fb21cdfa94 Add reporting of Windows version at startup. 2020-10-06 15:03:51 +01:00
Athanasius
2cb1309015 Update appcast 'length' for 4.1.0.msi 2020-10-05 11:57:12 +01:00
Athanasius
8a09430d92 Release 4.1.0
* Re-used -rc2 changelog with minor edits.
Release/4.1.0
2020-10-05 11:43:32 +01:00
Athanasius
bf375da1f1 Pre-Release 4.1.0-rc2 Release/4.1.0-rc2 2020-10-01 12:09:31 +01:00
Athanasius
4b814867d5
Merge pull request #727 from EDCD/fix/edsm-carrierjump
EDSM: Finer-grained and more detailed logging of API results
2020-10-01 11:57:18 +01:00
Athanasius
f7fdb9c3a4
Merge pull request #726 from EDCD/fix/725-locale-LC_ALL-invalid
Locale: Use LC_CTYPE as source of language for setting UTF-8 encoding
2020-10-01 11:55:46 +01:00
Athanasius
3d3baaea8e EDSM: Finer-grained and more detailed logging of API results 2020-10-01 11:47:31 +01:00
Athanasius
3063b237b6 Locale: Use LC_CTYPE as source of language for setting UTF-8 encoding
See #725 - LC_ALL is actually invalid here, but is allowed in Python
3.7.9, but not in later 3.8.x.
2020-10-01 11:00:11 +01:00
Athanasius
25ee03a1b6 Another minor format edit to Changelog Release/4.1.0-rc1 2020-09-29 14:15:24 +01:00
Athanasius
d9e158136f Minor edits to 4.1.0-rc1 changelog 2020-09-29 14:08:36 +01:00
Athanasius
974aa7530b Pre-Release 4.1.0-rc1 2020-09-29 14:00:28 +01:00
Athanasius
8afe6140cc Update debug log file name in bug report template. 2020-09-29 13:29:45 +01:00
Athanasius
27e6aaf0c7
Merge pull request #723 from EDCD/fix/edsm-carrierjump
EDSM: When we API call a Location event, log all events in that call.
2020-09-29 13:25:49 +01:00
Athanasius
969773b169 Debug log file name now EDMarketConnector-debug..log 2020-09-29 13:22:15 +01:00
Athanasius
a4b334dcfb EDSM: When we API call a Location event, log all events in that call. 2020-09-28 15:34:39 +01:00
Athanasius
1a6e88f210 docs/Releasing.md: Document how to add a new file to py2exe and installer.
Also switched all the section headings to # anchors.
2020-09-28 14:37:44 +01:00
Athanasius
20ee46a9d3 Add TRACE bat file to the installer configuration. 2020-09-28 14:37:25 +01:00
Athanasius
ea09271ece Pre-Release 4.1.0-beta9 Release/4.1.0-beta9 2020-09-28 14:08:53 +01:00
Athanasius
611db09fd0 Re-order imports so stdout/err redirect works for logging too.
Else the StreamHandler gets created with old stdout/err and causes
py2exe to attempt to write log file to CWD, which doesn't work when
installed.
2020-09-28 14:04:51 +01:00
Athanasius
87324661d9 Pre-Release 4.1.0-beta8 Release/4.1.0-beta8 2020-09-28 13:39:14 +01:00
Athanasius
c45c6cda58 setup.py: Add EDMarketConnector - TRACE.bat to data files. 2020-09-28 13:12:58 +01:00
Athanasius
a27297e36c
Merge pull request #722 from EDCD/fix/721-fc-empty-market
Send empty market data over EDDN
2020-09-28 13:06:00 +01:00
Athanasius
abc1507aa0 Also allow sending empty commodities from Market.json 2020-09-28 13:02:10 +01:00
Athanasius
dea7b3660a Minor formatting cleanups 2020-09-28 12:48:53 +01:00
Athanasius
e908cce242 Change the multi-line conditional to using () not \\n 2020-09-28 12:41:44 +01:00
Athanasius
ca4214fff8 EDDN: Catch and log 'we tried to send empty market'.
Very tight check on this to be sure we don't ignore other errors.

	r.status_code == 400  # Not a different code
	$schemaRef == commodities
	The message had empty commodities list
	r.text == expected return from EDDN Gateway
2020-09-28 12:26:09 +01:00
Athanasius
9564d8ab4f EDDN: Allow sending of empty market data for updating FCs. 2020-09-28 12:00:28 +01:00
Athanasius
ae82f27925
Merge pull request #719 from EDCD/enhancement/trace-logging
Implement a TRACE level of logging
2020-09-28 11:19:24 +01:00
Athanasius
9789c6fe7d Logging: Explicitly mention that we add trace/TRACE at runtime. 2020-09-28 11:18:25 +01:00
Athanasius
f5fad1c23d Add .mypy.ini and .pre-commit-config.yaml files
* With mypy we need to set some options for sane output.
* With pre-commit this defines the checks it performs.
2020-09-28 11:16:25 +01:00
Athanasius
9e6e718e23 Logging: Document trace/TRACE workaround & expand other docs. 2020-09-28 11:02:13 +01:00
Athanasius
4fb81e6e9d Add a BAT file to run with --trace 2020-09-25 16:17:17 +01:00
Athanasius
baebb2e91b Update main EDMarketConnector manifest to be dpiAware+gdiScaling
This addresses the issue of radio buttons not resizing when using
Windows OS scaling of the whole UI.
2020-09-25 16:13:22 +01:00
Athanasius
1da24f2026 Add specific manifest files for different configurations. 2020-09-25 15:33:18 +01:00
Athanasius
1aba1a0596 Trace: Change several calls from debug to trace. 2020-09-23 22:07:18 +01:00
Athanasius
3c0ac76f90 Trace: Add support to EDMC.py & misc cleanups
* EDMC: Add --trace (to match EDMarketConnector.py) and TRACE as option to
  --loglevel.
* EDMC: docstrings added.
* EDMCLogging: Set logger name based on if GUI or CLI.
* EDMarketConnector:
  * Re-order imports.
  * Misc. formatting cleanups.
  * f-strings not .format().
  * Removed un-necessary "# noqa: N806" comments.
2020-09-23 17:38:38 +01:00
Athanasius
46e3b3aff8 Implement a TRACE level of logging.
For things that are too spammy for DEBUG, but we might need them
sometimes.
2020-09-23 15:58:19 +01:00
Athanasius
d8ea6a0a94 monitor.py: Fix typo of info() 2020-09-23 15:32:36 +01:00
Athanasius
99ee6e0a57 Pre-Release 4.1.0-beta7 Release/4.1.0-beta7 2020-09-23 12:44:30 +01:00
Athanasius
68297918d3
Merge pull request #717 from EDCD/enhancement/logging-monitor.py
Change monitor.py to use logging, not `__debug__` & print
2020-09-23 12:27:33 +01:00
Athanasius
85d45aadd7 Place detailed logging for "Location" events.
To try and track down what's happening with #713
2020-09-23 11:45:48 +01:00
Athanasius
3afcac0dea monitor.py: Use logging for Journal Folder/File announcements 2020-09-22 18:49:07 +01:00
Athanasius
4b008b157e Bug Report Issue: Ask for *both* log files. 2020-09-22 17:37:49 +01:00
Athanasius
477ea5be42
Merge pull request #716 from A-UNDERSCORE-D/cleanup/prefs
Cleanup/prefs
2020-09-22 17:03:26 +01:00