-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (37 loc) · 1.21 KB
/
setup.py
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
from setuptools import setup, find_packages
import os
here = os.path.dirname(os.path.realpath(__file__))
def get_install_requires():
with open(os.path.join(here, 'requirements.txt'), 'r') as f:
return f.read().splitlines()
def get_version():
with open(os.path.join(here, 'version.txt'), 'r') as f:
return f.readline().split()[0] # Filter out other junk
setup(
name='tlx',
version=get_version(),
description='Frequently used utilities and code.',
url='https://github.com/eL0ck/tlx',
author='eL0ck',
author_email='[email protected]',
license='Apache',
python_requires='>=3.6, <4',
packages=find_packages(),
install_requires=get_install_requires(),
entry_points={
'console_scripts': [
'get-aws-creds=tlx.util.cli_apps.get_aws_creds:main',
'dynamo-batch-write=tlx.dynamodb.cli_apps.dynamodb_batch_write:dbw',
'dynamo-clear-table=tlx.dynamodb.cli_apps.dynamodb_clear_table:dct',
],
},
scripts=[
# This is the only tool that is used outside of an aws account context.
"tools/aws-list-accounts",
],
data_files=[
'version.txt',
'requirements.txt',
],
zip_safe=False,
)