From db4ce2af2c4764341aece272f710d62d5c3137bc Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Fri, 16 Jun 2023 14:11:27 +0200 Subject: [PATCH] Aggiunto template per file setup.py. --- vim/UltiSnips/python.snippets | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 vim/UltiSnips/python.snippets diff --git a/vim/UltiSnips/python.snippets b/vim/UltiSnips/python.snippets new file mode 100644 index 0000000..b5442ae --- /dev/null +++ b/vim/UltiSnips/python.snippets @@ -0,0 +1,29 @@ +snippet setup "Creates the base of a setup.py file." b +from setuptools import setup, find_packages + +setup( + name='${1:${VISUAL:package_name}}', + version="0.1.0", + packages=find_packages(), + license="MIT", + url="https://www.bgworld.it", + + # Metadata for pypi + author="BgWorld Unipersonale Srl", + author_email = "assistenza@bgworld.it", + description = "${2:description}", + scripts=[ + 'scripts/$1' + ], + install_requires = [ + 'click==7.1.2', + 'inotify==0.2.10', + 'nose==1.3.7', + 'PyPDF2==1.26.0', + 'python-magic==0.4.18', + ], + package_data={ + 'dagherroforo': [ 'dagherroforo_example.conf' ], + }, +) +endsnippet