From d1d93e02bb35f0461bc83071cc9b002153565ba9 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 24 Oct 2019 15:00:30 +0200 Subject: [PATCH] First commit --- .gitignore | 9 +++++++++ README.md | 5 +++++ requirements.txt | 0 setup.py | 24 ++++++++++++++++++++++++ to_pypi.bat | 3 +++ {packname}/__init__.py | 7 +++++++ {packname}/commands/__init__.py | 10 ++++++++++ {packname}/tables/__init__.py | 10 ++++++++++ 8 files changed, 68 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 requirements.txt create mode 100644 setup.py create mode 100644 to_pypi.bat create mode 100644 {packname}/__init__.py create mode 100644 {packname}/commands/__init__.py create mode 100644 {packname}/tables/__init__.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..68d69529 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +config.ini +.idea/ +.vscode/ +__pycache__ +*.egg-info/ +.pytest_cache/ +dist/ +build/ +venv/ diff --git a/README.md b/README.md new file mode 100644 index 00000000..aef4366f --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# `{packname}` [![PyPI](https://img.shields.io/pypi/v/{packname}.svg)](https://pypi.org/project/{packname}/) + +{Replace everything surrounded by braces with your own data, including this description!} + +{Files to be changed are the package folder, setup.py and this README!} diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..e69de29b diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..e625dbff --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +import setuptools + +with open("README.md", "r") as f: + long_description = f.read() + +with open("requirements.txt", "r") as f: + install_requires = f.readlines() + +setuptools.setup( + name="{packname}", + version="0.1", + author="{packauthorname}", + author_email="{packauthoremail}", + description="{packdescription}", + long_description=long_description, + long_description_content_type="text/markdown", + url="{packgithublink}", + packages=setuptools.find_packages(), + install_requires=install_requires, + python_requires=">=3.7", + classifiers=[ + "Programming Language :: Python :: 3.7", + ], +) diff --git a/to_pypi.bat b/to_pypi.bat new file mode 100644 index 00000000..beb035bc --- /dev/null +++ b/to_pypi.bat @@ -0,0 +1,3 @@ +del /f /q /s dist\*.* +python setup.py sdist bdist_wheel +twine upload dist/* diff --git a/{packname}/__init__.py b/{packname}/__init__.py new file mode 100644 index 00000000..4d839b28 --- /dev/null +++ b/{packname}/__init__.py @@ -0,0 +1,7 @@ +# This is a template Pack __init__. You can use this without changing anything in other packages too! + +from .commands import available_commands +from .tables import available_tables + +__all__ = ["commands", "tables", "available_commands", "available_tables"] + diff --git a/{packname}/commands/__init__.py b/{packname}/commands/__init__.py new file mode 100644 index 00000000..3e6d10ca --- /dev/null +++ b/{packname}/commands/__init__.py @@ -0,0 +1,10 @@ +# Imports go here! + + +# Enter the commands of your Pack here! +available_commands = [ + +] + +# Don't change this, it should automatically generate __all__ +__all__ = [command.__class__.__qualname__ for command in available_commands] diff --git a/{packname}/tables/__init__.py b/{packname}/tables/__init__.py new file mode 100644 index 00000000..23bc7c24 --- /dev/null +++ b/{packname}/tables/__init__.py @@ -0,0 +1,10 @@ +# Imports go here! + + +# Enter the tables of your Pack here! +available_tables = [ + +] + +# Don't change this, it should automatically generate __all__ +__all__ = [table.__class__.__qualname__ for table in available_tables]