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