-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·65 lines (60 loc) · 1.88 KB
/
setup.py
File metadata and controls
executable file
·65 lines (60 loc) · 1.88 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
65
import pathlib, os
from setuptools import setup, find_packages
# from pathlib import Path
from typing import List
def parse_requirements(filename: str) -> List[str]:
"""Return requirements from requirements file."""
# Ref: https://stackoverflow.com/a/42033122/
requirements: list = ""
with open(os.getcwd() + '/' + filename) as file:
requirements = file.readlines()
requirements = [r.strip() for r in requirements]
requirements = [r for r in sorted(requirements) if r and not r.startswith('#')]
return requirements
# CyGRPC version
VERSION: str = '1.0.4.post6'
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README: str = (HERE / "README.md").read_text()
packages = find_packages()
packages.append("cygrpc")
# Setup
setup(
name='cygrpc',
version=VERSION,
packages=packages,
# package_dir={"": "src"},
include_package_data=True,
python_requires=">=3.6",
url='https://github.com/cuemby/python-cygrpc',
license='MIT',
author='Fabio Moreno',
author_email='fabio.moreno@cuemby.com',
description='gRPC Micro framework',
long_description=README,
long_description_content_type='text/markdown',
setup_requires=['wheel', 'twine'],
install_requires=[
'wheel',
'twine',
'bottle',
'Paste',
'grpcio==1.23.0',
'grpcio-tools==1.23.0',
'bottle-cors'
],
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
entry_points={
'console_scripts': [
'cygrpc = cygrpc.cli:main',
]
},
# scripts=['bin/cygrpc.py']
)