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

1657 Commits

Author SHA1 Message Date
A_D
536f2ff393 Add config for autopep8 2020-07-30 08:51:21 +01:00
A_D
26a94f247b Add flake8 and autopep8 to requirements.txt 2020-07-30 08:51:21 +01:00
Athanasius
9e18dde834 Update PLUGINS.md
Adds missing blank line that caused acciental underline/heading
2020-07-30 08:51:21 +01:00
A_D
1053abaf00 Add TODO regarding type config 2020-07-27 18:26:49 +01:00
A_D
c5766b9b33 Dont crash when journal_dir is None
Ensures that journal_dir is always at least an empty string.

Fixes #639
2020-07-27 18:26:49 +01:00
Athanasius
6d40d9dcdf Use SemVer for sparkle:version
Else it thinks 4.0.3.0 > 4.0.3 and keeps offering the upgrade.
2020-07-24 14:20:29 +01:00
Athanasius
f57ee880aa Change \xd7 character to a normal 'x' so that 3.46 EDMC.exe finds newer versions. 2020-07-24 12:59:41 +01:00
Athanasius
4131ab87c6 Release 4.0.3: edmarketconnector.xml updated 2020-07-24 12:55:12 +01:00
Athanasius
5c4ea273f4 Release 4.0.3: ChangeLog.md: Translations status Release/4.0.3 2020-07-24 12:42:47 +01:00
Athanasius
c3882705e9 Translations: Update to latest
This includes some having the new 'Use alternate URL method' phrase.
2020-07-24 12:37:17 +01:00
Athanasius
cb0c65d947 Release 4.0.3: ChangeLog - fully cite shipyard.html location 2020-07-24 12:21:28 +01:00
Athanasius
a67d0488d0 Release 4.0.3: ChangeLog - tweak Linux ~ text 2020-07-24 12:16:47 +01:00
Athanasius
93e4adb8c7 Release 4.0.3: Version and ChangeLog 2020-07-24 12:07:42 +01:00
Athanasius
5fb6e49690 Changelog.md: Fix missing % in LOCALDATAAPP ready for 4.0.3 2020-07-23 20:25:55 +01:00
Athanasius
d06104ec6e Release 4.0.3-rc3: ChangeLog and version string Release/4.0.3-rc3 2020-07-23 15:02:56 +01:00
Athanasius
0135c73f6f Merge branch 'fix/614-ship-name-underscore' into release-4.0.3-rc3 2020-07-23 14:43:15 +01:00
Athanasius
f9de137105 Add import of os.path.expanduser 2020-07-23 14:40:53 +01:00
Athanasius
b61645ab06 shipyard: Add UI to toggle option for alternate URL opening
* Added checkbox next to shipyard choice dropdown.
* Also a TODO for using an incrementing 'row' variable throughout.
2020-07-23 14:36:02 +01:00
A_D
99014dd970 Added a config to use the new file based shipyard
This also reverts commenting out the old solution for long URLs
2020-07-23 14:36:02 +01:00
A_D
b818922193 Fixed issues with super long links for shipyards
This works by creating a temp file at config.app_dir and storing the
link in there, followed by directing the local browser to open the file.

HTML meta tags are then used to direct the browser to refresh to a URL
of our choosing (which is HTML escaped, just in case someone tries
something clever)

This should work everywhere, and on any browser (as the file:// format
is defined at https://tools.ietf.org/html/rfc1738 which was posted in
1994).

The URI used (`file://localhost/path`) ensures that we only ever
ask for a localhost file at our path.

The HTML format should be completely compliant with all major browsers
as well, ensuring that behaviour is consistent (assuming they support
HTML meta tags)
2020-07-23 14:36:02 +01:00
A_D
aa95573f3d Fix ~ not being expanded on linux 2020-07-23 14:35:57 +01:00
Athanasius
58ad7156b4 monitor.py: Add comment about why this new check is there 2020-07-22 14:48:34 +01:00
Athanasius
ab5e94a7c8 monitor.py: Don't record '' or ' ' as ShipName
Doing so causes the ShipType to not be used in the UI, so you get a
'link' with just a space for the text.

Any user who purposefully sets their ship's name to a single space
can live with seeing the model name instead.  Yes, I checked, the game
allows it.
2020-07-22 14:43:45 +01:00
Athanasius
98e20b4568 Pre-Release 4.0.3-rc2 Release/4.0.3-rc2 2020-07-21 18:27:09 +01:00
Athanasius
b6f6365566 plugins/edsm: Fix missing line of code
Bad paste or something, who knows ?
2020-07-21 18:25:03 +01:00
Athanasius
d3e74bba39 Pre-Release 4.0.3-rc1
version and changelog updated.
Release/4.0.3-rc1
2020-07-21 17:42:31 +01:00
Athanasius
29e3cba67e plugins/edsm: Align with code tested in inara plugin
* Use same state logic as Inara plugin now has.
* this.system_link for the Tk item, this.system is the system name.
* Ensure station text+link set on prefs change.
# Add a set of future TODO items.
2020-07-21 17:29:03 +01:00
Athanasius
99d1578780 plugins/eddb: Align with code tested in inara plugin
* Use same state logic as Inara plugin now has.
* this.system_link for the Tk item, this.system is the system name.
* List some tests to pass (and later to be implemented as unittests).
* Be paranoid about URIs, quote them.
* Ensure station text+link set on prefs change.
2020-07-21 17:29:03 +01:00
Athanasius
01d4c12027 plugins/inara: population recording fix, and misc cleanups 2020-07-21 17:29:03 +01:00
Athanasius
4c4511a66d plugins/eddb: Remove misleading comments about 'Only use CAPI...'
This is needed for "not even running the game" CAPI update to be useful.
2020-07-21 17:29:03 +01:00
Athanasius
e2c74ed11d plugins/inara: Removed commented out inara_notify_location() code 2020-07-21 17:29:03 +01:00
Athanasius
f7896f3b6a plugins/inara: Track more system/station info, fix URLs
* Track all of: this.system_address, this.system_population,
 this.system_marketid
* Use this.system_address if set (only from journal) for no-dupes Inara
 system URL.
* Added the "'x' if undocked and show system info" functionality from
  EDDB plugin.
* This version will set target station name/link if you request docking
 with it, whether that succeeds or not.  Cleared not only on Undock, but
 also FSDJump and SupercruiseEntry (in case you never actually docked).
* No longer bothering setting system and station URLs from Inara API
 response as we have working ones anyway.  So even those without Inara
 API Key set get the functionality now.
2020-07-21 17:29:03 +01:00
Athanasius
bb28a4fa2f plugins/inara.py: Add two TODOs
* Artie added a 'by-systemaddress' system lookup, use it.
* This means we probably no longer need to update URLs in the
 inara_notify_location() function.
2020-07-21 17:29:03 +01:00
Athanasius
4da1ae331d plugins/inara.py: Track system and station in cmdr_data, and update links
NB: Still need to ensure journal_entry() updates them and links
properly.
2020-07-21 17:29:03 +01:00
Athanasius
9e4fcdc497 Releasing.md: Fixups
* Contributing.md is in parent directory.
2020-07-19 15:14:16 +01:00
Athanasius
329ef42867 Contributing.md: Fixups
* Reference to Version Strings doesn't need 'URL' as text.
* We're in docs, so just 'Contributing.md'.
* Changelog.md is in parent directory.
2020-07-19 15:11:17 +01:00
Athanasius
bdec515ee2 Contributing.md: We're now using Semantic Version strings.
* Add/correct links to Releasing.md.
* Pre-releases must have tags of the correct form now.
* Misc formatting changes, mostly adding a <hr/> between sections.
2020-07-19 15:04:22 +01:00
Athanasius
ead292ee3a Releasing.md: Fix section headings
Why does ##Header only work in the Wiki :P ?
2020-07-19 14:48:25 +01:00
Athanasius
4d39b704cb Releasing.md: Update for fully using Semantic Versions now
* Lots of re-flow formatting for correct line-wrap.
* Change version 'number' to 'string' throughout.
* Example version is now `4.0.2`.
* #Version-Strings here is now *the* definition of the format and rules
 we use.
* Advise forks to use `+<myversion>` to differentiate.
* Point out the extra `edmarketconnector.xml` commit to update `length`.
2020-07-19 14:45:20 +01:00
Athanasius
84da527587 Changed to 'Version Strings' in Releasing.md 2020-07-19 12:40:50 +01:00
Athanasius
3138407e98 Contributing.md: Reference Releasing.md for version string format 2020-07-19 12:38:19 +01:00
Athanasius
bd81f05514 Utilise 'return None' to reduce check_appcast() indentation 2020-07-19 12:06:59 +01:00
Athanasius
739dfec114 Only import tkinter if we're type checking. 2020-07-19 12:05:37 +01:00
Athanasius
3abd4455df Releasing.md: Cursory update for Semantic Versions 2020-07-19 11:45:07 +01:00
Athanasius
4435bb004a Technically could still be frozen with darwin and thus non-Win Sparkle 2020-07-19 11:45:07 +01:00
Athanasius
35f573bc14 Updater class now used for all updates checking
* Updater.__init__() now takes 'provider' argument to specify if we use
 the internal checking code, or the available external code.
* EDMC.py changed to utilise this with internal provider.
* EDMarketConnector.py changed to use internal provider if not frozen,
 else the internal provider.
* Corrected the darwin/MacOS toggling of auto updates checking to actually
 use the Sparkle, not WinSparkle, API call.
* Updater.check_appcast() does the internal checking:
    * class EDMCVersion to hold the information.
    * Returns None on any error, or if it didn't find a newer version.
    * Returns an EDMCVersion object if it found a newer version.
2020-07-19 11:45:07 +01:00
Athanasius
76a6eec69d Updater.check_appcast() added to 'run from source' version
Tested as working with EDMarketConnector.py.
2020-07-19 11:45:07 +01:00
Athanasius
508ed78a25 Use semantic_version.truncate() for appversion_nobuild 2020-07-19 11:45:07 +01:00
Athanasius
ea2c7f6894 Revert accidental change to test update_feed. 2020-07-19 11:45:07 +01:00
Athanasius
1ee8756983 Re-engineering of EDMC.py version update check
* Uses semantic_version.
* Filters on sparkle:os.
* Catches specific exceptions.
2020-07-19 11:45:07 +01:00