diff --git a/MANIFEST.in b/MANIFEST.in index 646a98d66..7e9c24caa 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -7,4 +7,6 @@ include *.adoc recursive-include src *.css *.js *.py *.robot *.txt *.png *.gif *.ico *.cfg *.html recursive-include doc *.rst recursive-include rtest *.py *.txt -recursive-include src/robotide/postinstall/RIDE.app +recursive-include src/robotide/postinstall/RIDE.app *.* +recursive-include src/robotide/locale *.py *.adoc *.pot *.po *.mo + diff --git a/setup.cfg b/setup.cfg index 8d81797b7..23e9d9d42 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,11 +1,11 @@ [sdist] -force-manifest=1 +force_manifest=1 [bdist_wininst] bitmap=robot.bmp -install-script=ride_postinstall.py +install_script=ride_postinstall.py [pycodestyle] count = False -max-line-length = 90 +max_line_length = 90 statistics = True diff --git a/setup.py b/setup.py index a934d41ba..0e62aa931 100644 --- a/setup.py +++ b/setup.py @@ -38,6 +38,16 @@ 'RIDE.app/Contents/MacOS/RIDE', 'RIDE.app/Contents/Resources/*.icns'] } +my_list = [] +for curr_dir, _, files in os.walk('./src/robotide/locale'): + for item in files: + if '.' in item: + my_list.append(os.path.join(curr_dir, item).replace('\\', '/').replace('./src/robotide/locale/', '')) + +PACKAGE_DATA['robotide.locale'] = my_list + +print(f"DEBUG: setup.py {PACKAGE_DATA=}") + LONG_DESCRIPTION = """ Robot Framework is a generic test automation framework for acceptance level testing. RIDE is a lightweight and intuitive editor for Robot diff --git a/src/robotide/locale/__init__.py b/src/robotide/locale/__init__.py new file mode 100644 index 000000000..def210be8 --- /dev/null +++ b/src/robotide/locale/__init__.py @@ -0,0 +1,14 @@ +# Copyright 2024- Robot Framework Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +