-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (52 loc) · 1.97 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
59
60
61
62
import os
# To use a consistent encoding
from codecs import open
from os import path
from setuptools import setup
# The directory containing this file
HERE = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(HERE, "README.md"), encoding="utf-8") as f:
long_description = f.read()
def get_dependencies():
"""
The get_external_reqs function reads the requirements.txt file and returns a list of strings,
where each string is an external requirement for this project.
:return: A list of strings
The get_internal_reqs function is used to get the internal requirements for the project.
This function will read from a file called "internal-requirements.txt" and parse it into a list of strings that can be passed to pip install as dependencies.
:return: A list of dependencies
"""
with open("requirements.txt", "r") as f:
return [x for x in f.read().split("\n") if x]
# This call to setup() does all the work
setup(
name="quickgrpc",
version="0.1.3",
description="quickgrpc lib library",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ashupednekar",
author="Ashutosh Pednekar",
author_email="[email protected]",
license="",
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent",
],
project_urls={
"Source": "https://github.com/ashupednekar/quickgrpc",
"Documentation": "https://ashupednekar.github.io/quickgrpc",
"Bug Tracker": "https://github.com/ashupednekar/quickgrpc/issues",
},
packages=["quickgrpc"],
scripts=[
"scripts/create_grpc_service",
"scripts/publish_grpc_service",
"scripts/servegrpc",
],
include_package_data=True,
install_requires=get_dependencies(),
)