-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (53 loc) · 1.71 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Package installer script."""
from io import open
from os import environ, path
from setuptools import find_packages, setup
with open(path.join(path.abspath(path.dirname(__file__)), 'README.md'),
encoding='utf-8') as f:
long_description = f.read()
# Configure shell command
custom_shell_command = environ.get('PYPE_CUSTOM_SHELL_COMMAND', None)
shell_command = custom_shell_command if custom_shell_command else 'pype'
console_scripts = [f'{shell_command}=pype.__main__:main']
setup(
# Basic project information
name='pype-cli',
version='0.7.1',
# Authorship and online reference
author='Basti Tee',
author_email='basti.tee@posteo.de',
url='https://github.com/BastiTee/pype',
# Detailed description
description='A command-line tool for command-line tools',
long_description=long_description,
long_description_content_type='text/markdown',
keywords='development',
classifiers=[
'Natural Language :: English',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9'
],
# Package configuration
packages=find_packages(exclude=('tests',)),
include_package_data=True,
python_requires='>=3.7',
install_requires=[
'click',
'jsonschema',
'dacite',
'tabulate',
'colorama',
],
entry_points={
'console_scripts': console_scripts
},
# Licensing and copyright
license='Apache 2.0'
)