From 0e7565d077211312de5b28226db12391eabff18d Mon Sep 17 00:00:00 2001 From: "ken@arch" Date: Sun, 19 Jun 2022 14:22:43 +0800 Subject: [PATCH] moved include_data_package to setup.cfg --- .gitignore | 2 +- setup.cfg | 6 +++++- setup.py | 3 --- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 45e278f..817fc0b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -*/**.egg-info +*.egg-info config.yaml .idea/* .coverage diff --git a/setup.cfg b/setup.cfg index 587b6b8..6450975 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,4 +30,8 @@ project_urls = Docker Code=https://hub.docker.com/repository/docker/kenho811/database-version-control# YouTube=https://www.youtube.com/watch?v=9l3m7zBxN4Y classifiers = - Programming Language :: Python :: 3 \ No newline at end of file + Programming Language :: Python :: 3 + +[options.package_data] +# If any package or subpackage contains *.sql. +* = *.sql \ No newline at end of file diff --git a/setup.py b/setup.py index e24829a..5337df6 100644 --- a/setup.py +++ b/setup.py @@ -44,9 +44,6 @@ author_email='kenho811@gmail.com', packages=(find_packages(where="src")), package_dir={"": "src"}, - # Include SQL files (seen as data by setup tools) - package_data={'': ['*.sql']}, - include_package_data=True, install_requires=[ 'psycopg2', 'typer[all]',