Extract the test about cross support in two separate test cases in
tests.api-python.project:
* check-cross-api.py
* check-cross-api-override.py
Change-Id: I7a2e3de80f0193553a5879bad55032f6b2bd5abd
TN: O909-050
* add support in GNAThub for --target and --RTS command line
switches.
* add support for Target and Runtime attributes defined in the project
file.
* add tests to cover the new API methods (Project.target &
Project.runtime).
Change-Id: I42a88471598fefec16a7505ad70cd24b08f3dd8b
TN: O909-050
Provide a default implementation to the GNAThub.Plugin.name property:
return type(self).__name__
Use plugin().name along with plugin.__name__ to discriminate plugins
from their name in the plugin-runner.py.
Change-Id: Ie478427ffd78c45cdab8dd1e842b3736020cd710
TN: N623-022
The lack of such support was uncovered by a customer that wants to
access the "Main" attribute of the project file. Generalizing the
"Property_As_String" and "Property_As_List" routine is simple enough and
does not break backward compatibility.
src/gnathub/ChangeLog:
* gnathub-project.ad? (GNATdashboard_Package): Rename the constant for
consistency with GNATCOLL.Project and make its declaration public so
that it can be referenced from other packages (in particular:
GNAThub.Python).
(Property_As_List, Property_As_String): New optional parameter
"Package_Name". Defaults to GNATdashboard_Package.
* gnathub-pyhton.adb (Register_Project_Class): Register the optional
parameter "package" to Python static methods property_as_list and
property_as_string.
src/lib/GNAThub/ChangeLog:
* __init__.py (property_as_list, property_as_string): Update
documentation.
testsuite/tests/api-python/project/*:
* Add a new test to extract the "main" attribute from the project
file.
features-10: New features file to keep track of enhancements.
Change-Id: I2f6808b95f76581432e0893847b951183d4ca341
TN: N623-022