-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (56 loc) · 2.26 KB
/
setup.py
File metadata and controls
64 lines (56 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright (c) 2020 Bounkong Khamphousone
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
from glob import glob
from io import TextIOWrapper
from os import path
from os.path import basename, splitext
import yaml
from setuptools import find_packages, setup
this_directory = path.abspath(path.dirname(__file__))
def read(filename: str) -> TextIOWrapper:
"""
Open the filename relative to this directory.
Args:
filename (str): filename to open
Returns:
TextIOWrapper: file reader
"""
return open(path.join(this_directory, filename), encoding='utf-8')
with read('README.md') as f:
long_description = f.read()
with read('requirements.txt') as r:
install_requires = r.read()
with read('.cz.yaml') as cz:
cz_content = yaml.load(cz, Loader=yaml.SafeLoader)
setup(
name='bq-test-kit',
version=cz_content['commitizen']['version'],
url='https://github.com/tiboun/python-bigquery-test-kit',
author='Bounkong Khamphousone',
author_email='bounkong@gmail.com',
py_modules=[splitext(basename(p))[0] for p in glob('src/*.py')],
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
zip_safe=False,
description=("BigQuery test kit"),
license="MIT",
long_description=long_description,
install_requires=install_requires,
long_description_content_type='text/markdown',
extras_require={
'shell': ["varsubst"],
'jinja2': ["varsubst[jinja2]"]
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Testing',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3'
],
keywords='bigquery testing test-kit bqtk dataset table isolation dsl immutability sql test',
python_requires='>=3'
)