-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
import re | ||
from setuptools import setup, find_packages, Extension | ||
|
||
|
||
NAME = 'scorecardpipeline' | ||
|
||
|
||
|
@@ -11,39 +10,39 @@ def get_version(): | |
return re.search(r'__version__ = "(.*?)"', f.read()).group(1) | ||
|
||
|
||
def get_requirements(stage = None): | ||
def get_requirements(stage=None): | ||
file_name = 'requirements' | ||
|
||
if stage is not None: | ||
file_name = f"{file_name}-{stage}" | ||
|
||
requirements = [] | ||
with open(f"{file_name}.txt", 'r') as f: | ||
for line in f: | ||
line = line.strip() | ||
if not line or line.startswith('-'): | ||
continue | ||
|
||
requirements.append(line) | ||
|
||
return requirements | ||
|
||
|
||
setup( | ||
name = NAME, | ||
version = get_version(), | ||
description = '评分卡pipeline建模包,封装toad、scorecardpy、optbinning等评分卡建模相关组件,API风格与sklearn高度一致,自持自定义模型报告输出', | ||
long_description = open('README.md', encoding = 'utf-8').read(), | ||
long_description_content_type = 'text/markdown', | ||
url = 'https://github.com/itlubber/scorecardpipeline', | ||
author = 'itlubber', | ||
author_email = '[email protected]', | ||
packages = find_packages(), | ||
include_package_data = True, | ||
python_requires = '>=3.6', | ||
install_requires = get_requirements(), | ||
license = 'MIT', | ||
classifiers = [ | ||
name=NAME, | ||
version=get_version(), | ||
description='评分卡pipeline建模包,封装toad、scorecardpy、optbinning等评分卡建模相关组件,API风格与sklearn高度一致,自持自定义模型报告输出', | ||
long_description=open('README.md', encoding='utf-8').read(), | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/itlubber/scorecardpipeline', | ||
author='itlubber', | ||
author_email='[email protected]', | ||
packages=find_packages(), | ||
include_package_data=True, | ||
python_requires='>=3.6', | ||
install_requires=get_requirements(), | ||
license='MIT', | ||
classifiers=[ | ||
'Operating System :: POSIX', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: MacOS :: MacOS X', | ||
|
@@ -55,4 +54,4 @@ def get_requirements(stage = None): | |
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
], | ||
) | ||
) |