File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed
Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,6 @@ exclude *
22include changelog.rst DEVELOP.rst License.txt pyproject.toml README.rst requirements-dev.txt setup.py
33include scripts/docparser.py scripts/README.rst tox.ini
44recursive-include pgspecial *.py
5+ recursive-include pgspecial *.sql
56recursive-include tests *.py
67recursive-include tests *.ini
Original file line number Diff line number Diff line change 11from __future__ import unicode_literals
22import logging
3+ from pathlib import Path
34import shlex
45import subprocess
56from collections import namedtuple
67
78import aiosql
89from .main import special_command
910
10- queries = aiosql .from_path ("pgspecial/dbcommands.sql" , "psycopg2" )
11+
12+ dir_path = Path (__file__ ).parent
13+ sql_path = dir_path / "sql" / "dbcommands.sql"
14+ queries = aiosql .from_path (sql_path , "psycopg2" )
1115
1216TableInfo = namedtuple (
1317 "TableInfo" ,
File renamed without changes.
Original file line number Diff line number Diff line change 2222 packages = find_packages (),
2323 description = description ,
2424 long_description = open ("README.rst" ).read (),
25+ package_data = {
26+ "pgspecial" : ["sql/dbcommands.sql" ],
27+ },
2528 install_requires = [
2629 "click >= 4.1" ,
2730 "sqlparse >= 0.1.19" ,
2831 "psycopg >= 3.0.10" ,
32+ "aiosql >= 9.0" ,
2933 ],
3034 classifiers = [
3135 "Intended Audience :: Developers" ,
You can’t perform that action at this time.
0 commit comments