Browse Source

Fix reference error

- fix setup.py error
- fix service import error

Signed-off-by: JoeyHwong <joeyhwong@gknow.cn>
Signed-off-by: joeyhwong <joeyhwong@gknow.cn>
Signed-off-by: JoeyHwong <joeyhwong@gknow.cn>
tags/v0.4.2^2
JoeyHwong 4 years ago
parent
commit
25e21e888a
3 changed files with 18 additions and 6 deletions
  1. +1
    -1
      lib/MANIFEST.in
  2. +0
    -1
      lib/sedna/service/server/base.py
  3. +17
    -4
      lib/setup.py

+ 1
- 1
lib/MANIFEST.in View File

@@ -1,2 +1,2 @@
include OWNERS requirements.txt sedna/VERSION README.md
include OWNERS requirements.txt sedna/VERSION sedna/README.md
recursive-include examples *.txt *.py

+ 0
- 1
lib/sedna/service/server/base.py View File

@@ -15,7 +15,6 @@
import contextlib
import time
import threading
import asyncio

import uvicorn
from fastapi.middleware.cors import CORSMiddleware


+ 17
- 4
lib/setup.py View File

@@ -19,7 +19,8 @@ import os

assert sys.version_info >= (3, 6), "Sorry, Python < 3.6 is not supported."

with open("README.md", "r") as fh:
with open(os.path.join(os.path.dirname(__file__), "sedna", "README.md"),
"r", encoding="utf-8") as fh:
long_desc = fh.read()

with open(os.path.join(os.path.dirname(__file__), 'sedna', 'VERSION'),
@@ -30,6 +31,18 @@ with open("requirements.txt", "r", encoding="utf-8") as fh:
install_requires = [line.strip() for line in
fh.readlines() if line.strip()]

with open("OWNERS", "r", encoding="utf-8") as fh:
check, approvers = False, set()
for line in fh:
if not line.strip():
continue
if check:
approvers.add(line.strip().split()[-1])
check = (line.startswith("approvers:") or
(line.startswith(" -") and check))

maintainer = ",".join(approvers) or "sedna"

setup(
name='sedna',
version=__version__,
@@ -38,9 +51,9 @@ setup(
on Sedna project",
packages=find_packages(exclude=["tests", "*.tests",
"*.tests.*", "tests.*"]),
author="",
author_email="",
maintainer="",
author=maintainer,
author_email="pujie2@huawei.com",
maintainer=maintainer,
maintainer_email="",
include_package_data=True,
python_requires=">=3.6",


Loading…
Cancel
Save