Commit Graph

32 Commits

Author SHA1 Message Date
Pierre-Marie de Rodat
8beccff706 Introduce lkm, the replacement for manage.py scripts
This new command line tool has the same CLI as current manage.py
scripts, but automatically loads "langkit.yaml" files configurations, so
that language specs do not have to write Python code to subclass
ManageScript.
2025-01-07 15:09:51 +00:00
Pierre-Marie de Rodat
f1b86a360b setup.py: fix console_script description for generate-msvc-lib-file.py 2024-12-16 09:27:16 +00:00
Pierre-Marie de Rodat
e2fa718bb2 Create a cmdline script to handle MSVC/.lib file generation 2024-12-03 14:24:29 +00:00
Raphaël AMIARD
c03d2fee9f Add the pragma Extensions_Allowed (On) to $language.Analysis
This will allow its use from non gnatX clients.
2024-08-28 09:56:25 +02:00
Philipp Smirnov
369b9a89da setup.py: add missing langkit.scripts package to wheel
The "create-project.py" executable wrapper file created by setuptools
was crashing with an error:

    Traceback (most recent call last):
      File "<frozen runpy>", line 198, in _run_module_as_main
      File "<frozen runpy>", line 88, in _run_code
      File "C:/Users/User/Documents/Programs/msys64-1/msys64/ucrt64/bin/create-project.exe/__main__.py", line 4, in <module>
    ModuleNotFoundError: No module named 'langkit.scripts'

because the source file "langkit/scripts/create_project.py" was not
added to the wheel archive.
2024-02-16 14:28:52 +00:00
Pierre-Marie de Rodat
059030ba0e Transition "create-project.py" to setuptools' entry_point/console_script
Stop using setuptools' "scripts" feature, now obsolete and bound to
create issues in the future, and use the newer
entry_point/console_script mechanism instead to create the same
command-line tool.

Preserve the "scripts/create-script.py" executable source for
development environment convenience.
2023-12-05 11:45:37 +00:00
Pierre-Marie de Rodat
1440427585 setup.py: set Langkit's version number to a standard value
Fixes #660
2023-05-15 08:29:58 +00:00
Romain Beguet
311f163eb9 VB22-027: Inline AdaSAT in generated standalone libraries.
Add langkit/adasat to .gitignore, since we now expect langkit developers
to put it here.
2023-01-11 16:06:09 +01:00
Pierre-Marie de Rodat
1d791bbbb9 Add "py.typed" files in Python packages
These files will allow seamless integration between generated libraries
and Mypy.

TN: V201-012
2022-02-01 16:14:22 +01:00
Pierre-Marie de Rodat
f760a5f1a2 Reorganize build procedure for Langkit_Support
This commit stops considering Langkit_Support as a generated project:

* move the "langkit/support" directory to "support" (not
  "langkit_support" for convenience with tab-completion);

* move the meat of the "langkit_support_gpr.mako" template to the static
  "langkit_support.gpr" file, and remove the template;

* remove the "build-langkit_support.py" script and all the corresponding
  libmanage.py/langkit_support.py code;

* enhance the top-level "manage.py" script to build/setenv
  Langkit_Support and import the packaging tools from
  "build-langkit_support.py".

From now on, Langkit_Support is a really a standalone library project,
and thus a "real" dependency for Langkit-generated libraries.

TN: T914-012
2020-10-26 15:36:55 +01:00
Pierre-Marie de Rodat
6b66ad1f86 Register the build-langkit_support.py script and fix misc/link_two_libs
So far, this testcase assumed that the "langkit" package was in a source
tree, whereas in the Travis CI setup, it comes from the setup.py
installation. Register the build-langkit_support.py script and introduce
PATH lookup in the misc/link_two_libs testcase to make it work on
Travis CI.

TN: T511-017
2020-05-26 16:58:32 +02:00
Pierre-Marie de Rodat
8c7bdc05fe setup.py: remove enum packages
These are incorrect now that Langkit requires Python3.

TN: T511-017
2020-05-26 16:58:32 +02:00
Pierre-Marie de Rodat
2b9b33d6a0 Remove __future__ imports and adjust stylechecks
TN: T511-017
2020-05-26 12:33:48 +02:00
Pierre-Marie de Rodat
019ce34cd6 setup.py: add coverage.css to package_data
TN: T312-019
2020-03-12 14:45:52 +01:00
Pierre-Marie de Rodat
16bd0f6db8 Add e3-core as a dependency for Langkit
TN: T127-017
2020-02-03 14:38:44 +01:00
Pierre-Marie de Rodat
21f57e9404 Make docutils mandatory
We use docutils to reformat comments during code generation, so it is
very useful: require it.

TN: S315-028
2019-03-29 15:21:25 +01:00
Pierre-Marie de Rodat
21713be19e setup.py: ship the langkit.lexer package
TN: S315-028
For GitHub issue #149
2019-03-29 15:21:25 +01:00
Pierre-Marie de Rodat
db3ce263c5 setup.py: replace 'requires' with 'install_requires'
TN: S315-028
2019-03-29 15:21:25 +01:00
Pierre-Marie de Rodat
818c304b0e setup.py: remove the "coverage" dependency
coverage.py is not a dependency in order to use Langkit.

TN: S315-028
2019-03-29 15:21:25 +01:00
Pierre-Marie de Rodat
e2be01f2d2 setup.py: update the list of packages to install
For #9
(no-tn-check)
2018-01-02 12:58:58 +01:00
Emmanuel Briot
d07b9779f1 Need to install the langkit/utils/ package as well 2017-12-27 13:00:58 +01:00
Pierre-Marie de Rodat
e120004619 setup.py: remove obsolete paths for adalog
TN: minor
2017-04-25 14:25:17 +02:00
Pierre-Marie de Rodat
d11c8a5d4a Remove all unicode_literals imports from __future__
TN: Q223-029
2017-04-25 14:24:30 +02:00
Pierre-Marie de Rodat
9774baf84d repo scripts: update __future__ imports
TN: Q223-029
2017-02-24 10:44:00 +01:00
Pierre-Marie de Rodat
25f2319f97 Propagate REQUIREMENTS.dev to setup.py
Change-Id: Ifda1f4ee7fe4cabf50ff51398b66afd6c3213a2a
TN: minor
2016-05-25 18:02:15 -04:00