nyaggle/setup.py

64 lines
1.6 KiB
Python
Raw Normal View History

2019-12-24 07:21:44 +08:00
from codecs import open
from os import path
2020-05-18 22:04:03 +08:00
from setuptools import find_packages, setup
2019-12-24 07:21:44 +08:00
def get_long_description():
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
return long_description
2020-01-13 22:47:45 +08:00
2019-12-24 07:21:44 +08:00
def get_version():
version_filepath = path.join(path.dirname(__file__), 'nyaggle', 'version.py')
with open(version_filepath) as f:
for line in f:
if line.startswith('__version__'):
return line.strip().split()[-1][1:-1]
2020-01-13 22:47:45 +08:00
2019-12-24 07:21:44 +08:00
setup(
name='nyaggle',
2020-01-24 17:41:38 +08:00
packages=find_packages(),
2019-12-24 07:21:44 +08:00
version=get_version(),
2020-01-24 17:41:38 +08:00
license='MIT',
2019-12-24 07:21:44 +08:00
install_requires=[
'category_encoders',
2019-12-29 07:57:09 +08:00
'matplotlib',
2019-12-31 11:10:02 +08:00
'more-itertools',
2019-12-24 07:21:44 +08:00
'numpy',
2020-01-21 23:13:52 +08:00
'optuna>=1.0.0',
2019-12-24 07:21:44 +08:00
'pandas',
2020-01-23 19:22:08 +08:00
'pyarrow',
2019-12-29 07:57:09 +08:00
'seaborn',
'scikit-learn',
2019-12-24 07:21:44 +08:00
'tqdm',
2020-02-17 19:59:39 +08:00
'transformers>=2.3.0',
2019-12-24 07:21:44 +08:00
],
2020-02-17 07:17:13 +08:00
extras_require={
'all': ['catboost>=0.17', 'lightgbm', 'xgboost', 'torch', 'mlflow']
},
2019-12-24 07:21:44 +08:00
author='nyanp',
author_email='Noumi.Taiga@gmail.com',
url='https://github.com/nyanp/nyaggle',
description='Code for Kaggle and Offline Competitions.',
long_description=get_long_description(),
long_description_content_type='text/markdown',
keywords='nyaggle kaggle',
classifiers=[
'License :: OSI Approved :: BSD License',
2023-07-12 21:32:11 +08:00
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11'
2020-01-13 22:47:45 +08:00
]
2020-01-02 21:40:19 +08:00
)