Florent Rougon
e105274de4
Update catalog/README.md (and fix a typo)
2020-06-22 00:41:05 +02:00
Florent Rougon
8028ce2888
Python: move test modules and data to python3-flightgear/flightgear/meta/tests/
...
- Move test_catalog.py, test_sgprops.py and catalog/testData/ to
python3-flightgear/flightgear/meta/tests/.
- Copy catalog/fgaddon-catalog/ to the same place (it is needed by
test_catalog.py).
- Adapt test_catalog.py and test_sgprops.py accordingly.
- Remove the executable bits from test_catalog.py and test_sgprops.py:
this is because test_catalog.py can't be run directly anymore; well,
it can but 3 tests would fail in this setup. No time to investigate
why (sorry), but this commit adds a README.txt in
python3-flightgear/flightgear/meta/tests/README.txt that explains how
to run the tests in a way that works (basically, run
'python3 -m unittest' from the python3-flightgear directory).
For a bit more context, see
<https://sourceforge.net/p/flightgear/mailman/message/37042247/ >.
2020-06-22 00:30:51 +02:00
Automatic Release Builder
cef19a8b13
Catalog I18N support
...
Read I18N satrings form aircraft data and add to the catalog
2020-06-21 19:25:18 +01:00
Florent Rougon
1c2d17d869
Reorganize catalog modules
...
- Move the support modules inside python3-flightgear/flightgear/ and
remove their shebang, if any.
- Accordingly adapt the import statements.
- Change shebangs from e.g. '#! /usr/bin/python' to
'#! /usr/bin/env python3'.
- Small changes to make Python 3 happy with all scripts.
catalog/check_aircraft.py should be run under Python 3 from now on.
2020-06-19 18:15:25 +02:00
Automatic Release Builder
14b3950d44
Script to create default translation for weather
2020-06-17 17:03:25 +01:00
Automatic Release Builder
a80917705d
Update trunk FGaddon catalog metadata
...
Ensure next is usable for trunk FGaddon.
2020-06-16 12:54:11 +01:00
James Turner
cc76052038
Trunk FGAddon hangar: support 2020.* versions
2020-04-29 14:58:14 +01:00
James Turner
14ee759409
Fix Python3 compatability
2020-03-24 14:27:27 +00:00
James Turner
aff1ac0f69
Add more catalog tags based on what’s used
2020-03-24 14:24:29 +00:00
James Turner
9453e085b3
Add Mespieler aircraft mirror
2020-03-21 18:41:45 +00:00
Edward d'Auvergne
4dffeeb56e
Catalogs: Addition of an initial README.md file.
2019-11-18 11:23:27 +01:00
Edward d'Auvergne
ed7075f4ba
Catalogs: Python 3 compatibility for reading binary data.
...
IO data needs to be decoded, and the binary zip file needs to be opened in 'rb'
binary mode.
2019-11-18 10:26:40 +01:00
Edward d'Auvergne
185a10f7c5
Catalogs: Python3 does not have a 'long' integer type.
2019-11-18 10:10:22 +01:00
Edward d'Auvergne
5d3fcd3ba0
Catalogs: Converted all print statements into Python 3 compatible functions.
2019-11-18 10:06:24 +01:00
Edward d'Auvergne
3b1a3c51b1
Catalogs: Default to Python 3.
2019-11-18 09:58:58 +01:00
Edward d'Auvergne
ea18939738
Catalogs: Addition of example configuration files for testing a single craft.
...
This is useful for aircraft authors to see what will be packed into the zip
archive.
2019-11-14 12:00:02 +01:00
Edward d'Auvergne
d22ff42e42
Catalogs: The scm <update> XML tag is now used.
...
The tag can be overridden on the command line with the --update and --no-update options.
2019-11-14 11:59:56 +01:00
Edward d'Auvergne
190d789a54
Catalogs: Support for <include> tags to allow a subset of craft to be cataloged.
2019-11-13 22:26:11 +01:00
Edward d'Auvergne
8534a8aba4
Catalogs: Modification of the template file parsing.
...
The code is now a function in the 'catalog' module and checks for the existence
of the file are now performed.
2019-11-13 22:26:11 +01:00
Edward d'Auvergne
9ec3e015b2
Catalogs: Modification of the configuration file parsing.
...
The code is now a function in the 'catalog' module and checks for the existence
of the file are now performed.
2019-11-13 22:26:10 +01:00
Edward d'Auvergne
b8c05410e3
Catalogs: Rewrite of the craft zip creation using the Python zipfile module.
...
If a 'zip-excludes.lst' file is found in the craft's base directory, that will
overwrite the global catalog exclusion list.
Three new unit tests have been created to test the functionality.
2019-11-13 22:25:49 +01:00
Edward d'Auvergne
fd6fae3858
Catalogs: Expansion of the zip archive exclusion file.
...
This includes addition of the craft development directories 'dev', 'Dev',
'development', 'src', and 'Resources' and handling the common compressed gimp
file *.xcf.gz, a capitalised gimp file, and Blender *.blend[1-9] files.
2019-11-13 22:18:43 +01:00
Edward d'Auvergne
ca4a2ca813
Catalogs: Bug fixes allowing the unit tests to pass again.
...
3 of the tests have been broken since 70dfd6b8d4
,
the change to LXML.
2019-11-12 14:26:24 +01:00
James Turner
bd7ccccda6
Catalog configs from UKmirror
2018-10-23 12:01:58 +00:00
James Turner
f0f047e6c5
Fix mirror URLs
2018-10-18 12:42:17 +00:00
James Turner
271f103ae3
Update catalogs config after discussion
...
Legacy catalog keeps the existing ID and URL, to avoid any problems
with older client versions
2018-10-18 13:37:17 +01:00
James Turner
99b893368b
Catalogs: multiple download URLs (mirrors) supported
2018-10-17 14:16:40 +01:00
James Turner
e4007bae99
Remove MD5 sum files from Git
2018-10-17 13:00:10 +00:00
James Turner
6e8b4c3ee7
Sharing logic tweaks
2018-10-17 13:00:10 +00:00
James Turner
ccb35c7707
Catalog spec tweaks
2018-10-17 13:00:10 +00:00
James Turner
391ceaea11
Update-catalog.py: —quiet option
2018-10-17 11:04:11 +01:00
James Turner
feae4a2d56
Tweaked catalog definitions
2018-10-17 09:26:08 +00:00
James Turner
70dfd6b8d4
Use LXML everywhere
2018-10-17 09:19:10 +00:00
James Turner
a1f8e52ae8
Add three catalog setups, for UK mirror
...
The fgaddon-catalog was duplicated to avoid disturbing Curt’s config
he runs locally, until the new setup is working.
2018-10-15 11:39:56 +01:00
James Turner
5be72a84d3
Check-aircraft helper script
...
Tool to validate aircraft meta-data - basic for now, will expand
to be smarter over time.
2018-07-25 13:42:13 +01:00
James Turner
0b46052259
Catalog generation enhancements
2018-07-25 11:38:52 +01:00
James Turner
68dee3f3a4
Catalog support for multiple author tags
...
This will enable richer author meta-data in aircraft, and hence
nicer GUI presentation of author information. Client-side support
still to be added before this can be used
2018-04-25 21:07:57 +01:00
Curtis L. Olson
c548c55274
Add compatibility with 2018 releases.
2018-02-27 05:54:06 -06:00
James Turner
6034143788
Catalogs:-set.xml files cam exclude themselves
...
Re-add the old feature, that -set.xml files can explicitly opt-out of
being included in the catalog. Useful for some development and helper /
included files in some aircraft.
2017-11-27 17:59:37 +00:00
James Turner
7ad60c4471
Catalogs: skip set files with missing description
...
This occurs for at least the A320 copilot, for example. We also log a
warning in the catalog creation script
2017-11-27 17:53:46 +00:00
Curtis L. Olson
018f0907c2
Template tweaks.
2017-09-26 06:32:38 -05:00
Curtis L. Olson
f2a27e592d
error catching ++
2017-09-26 06:31:58 -05:00
Curtis L. Olson
89d526e740
Check if thumbnail exists in package before building thumbnail_url (which
...
is never actually used by the way.)
2017-09-26 06:30:50 -05:00
Curtis L. Olson
68e2df9db6
verbocity--
2017-09-26 06:27:47 -05:00
Curtis L. Olson
87c11e7e2f
Fix a return bug when len(setDicts) is zero.
2017-09-26 06:26:49 -05:00
James Turner
89948603de
Catalog support for minimum-fg-version
...
Extend test coverage with a minimal aircraft to exercise more
code paths for this.
2017-07-30 10:38:04 -07:00
James Turner
3e3b63181b
Fixing line-endings
2017-06-21 23:00:53 +01:00
Stuart Buchanan
91ea5ba877
Add North American (manufacturer of the P-51 and F-86)
2017-06-16 22:55:28 +01:00
Stuart Buchanan
b2754b573a
Add Republic as manufacturer
2017-06-16 20:29:27 +01:00
Florent Rougon
f16831a51d
Rewrite catalog/testData/bad-index.xml with consistent line endings.
...
This file had a mix of LF and CRLF line endings.
2017-05-18 19:34:29 +02:00