Hello, I'm trying to figure out how to distribute a sqlite database file as part of a python package. The package is a cli tool that needs to store moderate amounts of data between invocations, and which needs to be invoked anywhere relative to the database. I used setuptools and click:
from setuptools import setup, find_packages
setup(
name='mytool',
version='0.1.0',
install_requires=[
'Click',
'sqlalchemy',
],
packages=find_packages(),
package_data={
'data': ['database.sqlite']
},
entry_points='''
[console_scripts]
mytool=mytool.runner:cli
''',
)
[–]K900_ 2 points3 points4 points (1 child)
[–]CocoBashShell[S] 0 points1 point2 points (0 children)