Skip to content

Commit

Permalink
Merge pull request #82 from dbeatty10/feature/namespace-packages
Browse files Browse the repository at this point in the history
Find namespace packages
  • Loading branch information
dbeatty10 authored Mar 13, 2022
2 parents 3da17c1 + e285ce9 commit cf1117a
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,41 @@
import os
import sys

from setuptools import setup


if sys.version_info < (3, 6, 2):
print('Error: dbt-mysql does not support this version of Python.')
print('Please upgrade to Python 3.6.2 or higher.')
sys.exit(1)


this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md')) as f:
long_description = f.read()
from setuptools import setup
try:
from setuptools import find_namespace_packages
except ImportError:
# the user has a downlevel version of setuptools.
print('Error: dbt-mysql requires setuptools v40.1.0 or higher.')
print('Please upgrade setuptools with "pip install --upgrade setuptools" '
'and try again')
sys.exit(1)


package_name = "dbt-mysql"
package_version = "0.19.1"
description = """The MySQL adapter plugin for dbt (data build tool)"""

this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md')) as f:
long_description = f.read()

setup(
name=package_name,
version=package_version,

description=description,
long_description=long_description,
long_description_content_type='text/markdown',

author="Doug Beatty",
author_email="[email protected]",
url="https://github.com/dbeatty10/dbt-mysql",
packages=[
'dbt.adapters.mysql',
'dbt.include.mysql',
'dbt.adapters.mysql5',
'dbt.include.mysql5',
],
packages=find_namespace_packages(include=['dbt', 'dbt.*']),
package_data={
'dbt.include.mysql': [
'macros/*.sql',
Expand All @@ -51,13 +50,18 @@
'dbt_project.yml',
'sample_profiles.yml',
],
'dbt.include.mariadb': [
'macros/*.sql',
'macros/materializations/**/*.sql',
'dbt_project.yml',
'sample_profiles.yml',
],
},
install_requires=[
"dbt-core==0.19.2",
'dbt-core=={}'.format(package_version),
"mysql-connector-python>=8.0.0,<8.1",
# dbt's 3rd level dependency broken, so restricting said dependency "agate" to working versions
"agate>=1.6,<1.6.2",
],
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',

Expand Down

0 comments on commit cf1117a

Please sign in to comment.