convert to setuptools / setup.py

This commit is contained in:
Gilles Grandou 2023-12-04 21:37:30 +01:00
parent ca93b8f56d
commit 88e070d88c
3 changed files with 22 additions and 6 deletions

0
runon/__init__.py Normal file
View File

View File

@ -1,5 +1,3 @@
#!/usr/bin/env python3
import sys
import argparse
import docker
@ -210,7 +208,3 @@ def main():
ret = run_container(client, container)
return ret
if __name__ == '__main__':
ret = main()
sys.exit(ret)

22
setup.py Normal file
View File

@ -0,0 +1,22 @@
from setuptools import find_packages, setup
setup(
name = "runon",
version = "2.0.0.dev0",
maintainer = "Gilles Grandou",
maintainer_email = "gilles@grandou.net",
description = "Run your commands on any systems",
packages = find_packages(),
python_requires = ">=3.6",
install_requires = [
"docker",
"dockerpty",
"pyxdg",
],
entry_points={
"console_scripts": [
"runon=runon.runon:main",
],
}
)