Skip to content

Commit 050d076

Browse files
committed
Fix deprecation warning in setup script
Fixed using Google Gemini in VS Code - It removes the legacy scripts argument. - It adds the entry_points argument, defining argos-translate and argospm as console scripts that call the main function in their respective modules (argostranslate.cli and argostranslate.argospm).
1 parent 5022ec1 commit 050d076

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@
2424
python_requires=">=3.5",
2525
packages=find_packages(),
2626
install_requires=required_packages,
27+
entry_points={
28+
"console_scripts": [
29+
"argos-translate = argostranslate.cli:main",
30+
"argospm = argostranslate.argospm:main",
31+
]
32+
},
2733
include_package_data=True,
28-
scripts=["bin/argos-translate", "bin/argospm"],
2934
classifiers=[
3035
"License :: OSI Approved :: MIT License",
3136
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)