From 5e02284d753b4eb7c8a3bef36f2cef8314f3654d Mon Sep 17 00:00:00 2001 From: suqingdong <1078595229@qq.com> Date: Wed, 11 Jan 2023 13:44:32 +0800 Subject: [PATCH] update setup --- docs/source/conf.py | 6 ++++-- setup.py | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index af7a934..333d021 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,8 +1,10 @@ import os import sys -BASE_DIR = os.path.dirname(os.path.realpath(__file__)) -PKG_DIR = os.path.dirname(os.path.dirname(BASE_DIR)) +from pathlib import Path + +BASE_DIR = Path(__file__).resolve().parent +PKG_DIR = BASE_DIR.parent.parent print(PKG_DIR) diff --git a/setup.py b/setup.py index 342b1ef..2bc316d 100644 --- a/setup.py +++ b/setup.py @@ -15,6 +15,10 @@ long_description=BASE_DIR.joinpath('README.md').read_text(), long_description_content_type='text/markdown', url=version_info['url'], + project_urls={ + 'Documentation': 'https://impact_factor.readthedocs.io', + 'Tracker': 'https://github.com/suqingdong/impact_factor/issues', + }, license='MIT License', install_requires=BASE_DIR.joinpath('requirements.txt').read_text().strip().split(), packages=find_packages(),