0 points

setup.py for command-line tool


dashboard

Tue Jun 30 2020 22:39:10 GMT+0000 (UTC)

Posted by @noahtren #python #command

from setuptools import setup, find_packages

setup(
  name="package-name",
  version="0.0.0",
  packages=find_packages(),
  entry_points = {
    'console_scripts':
      ["command = package_name.module_name:function_name"],
    },
)
content_copy Copy