From 70f6ee5d4542ebe2f3c05e2733617613f542397d Mon Sep 17 00:00:00 2001 From: jhrdt <4043420-jhrdt@users.noreply.gitlab.com> Date: Sun, 4 Oct 2020 23:43:49 +0200 Subject: [PATCH 1/5] Add flask_template dir to wheel dist --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ebab99c..b53acab 100644 --- a/setup.py +++ b/setup.py @@ -35,6 +35,11 @@ long_description_content_type="text/markdown", url="https://github.com/deekshithanand/flask-create.git", packages=find_packages(), + package_data={ + "flask_create": [ + "flask_template/**/*.py" + ], + }, license="MIT", classifiers=[ "Programming Language :: Python :: 3", @@ -48,4 +53,3 @@ include_package_data=True, ) - From 3fb3ba9507d20f92a411dedb0ad0da04b1dae052 Mon Sep 17 00:00:00 2001 From: jhrdt <4043420-jhrdt@users.noreply.gitlab.com> Date: Sun, 4 Oct 2020 23:44:10 +0200 Subject: [PATCH 2/5] Add build instructions --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 65e4da4..cf2240a 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,21 @@ To int db run this from outside src(i.e., root project folder): ##### Note : - The default config is provided for dev. Production config can be modified by user in config.py + +# Build Instructions + +Build a python package: + +``` +python3 -m venv venv +source venv/bin/activate + +pip install wheel + +python setup.py bdist_wheel +# Produces a .whl file in dist/ +``` + # Note for Contributing We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: From 7664bee6f37a8c39ea58d1e92514b6a15adfec37 Mon Sep 17 00:00:00 2001 From: jhrdt <4043420-jhrdt@users.noreply.gitlab.com> Date: Tue, 6 Oct 2020 20:46:30 +0200 Subject: [PATCH 3/5] Remove parameter package_data --- setup.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/setup.py b/setup.py index b53acab..b0fa262 100644 --- a/setup.py +++ b/setup.py @@ -35,11 +35,6 @@ long_description_content_type="text/markdown", url="https://github.com/deekshithanand/flask-create.git", packages=find_packages(), - package_data={ - "flask_create": [ - "flask_template/**/*.py" - ], - }, license="MIT", classifiers=[ "Programming Language :: Python :: 3", From 267d34b757bc7cbb2265130a001a3883ee31d5b3 Mon Sep 17 00:00:00 2001 From: jhrdt <4043420-jhrdt@users.noreply.gitlab.com> Date: Tue, 6 Oct 2020 20:46:40 +0200 Subject: [PATCH 4/5] Remove blank line --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index b0fa262..e10cc76 100644 --- a/setup.py +++ b/setup.py @@ -46,5 +46,4 @@ 'console_scripts': ['flask-create=flask_create.create:create'], }, include_package_data=True, - ) From 9e0561547376578a890830cd59c7b329fff7a03e Mon Sep 17 00:00:00 2001 From: jhrdt <4043420-jhrdt@users.noreply.gitlab.com> Date: Tue, 6 Oct 2020 20:48:17 +0200 Subject: [PATCH 5/5] Fix manifest to include flask_template files --- MANIFEST.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 090c27c..4447061 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,3 @@ -recursive-include flask_template * +recursive-include flask_create *.py include LICENSE include README.md