Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct package definition for setup.py #2688

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions src/robotide/locale/__init__.py
Original file line number Diff line number Diff line change
@@ -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.

Loading