File: add-entrypoint.patch

package info (click to toggle)
python-portpicker 1.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 208 kB
  • sloc: python: 943; makefile: 21; sh: 7
file content (17 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/setup.cfg
+++ b/setup.cfg
@@ -30,8 +30,12 @@
 python_requires = >= 3.6
 package_dir = 
 	=src
-py_modules = portpicker
-scripts = src/portserver.py
+py_modules = portpicker,portserver
+#scripts = src/portserver.py
+
+[options.entry_points]
+console_scripts =
+    portserver = portserver:main
 
 [egg_info]
 tag_build =