-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
42 lines (35 loc) · 1.45 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
import re
from setuptools import setup, find_packages
from codecs import open
from os import path
from bareml import __version__
here = path.abspath(path.dirname(__file__))
# Read README.md to use it as the long description
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
long_description = long_description.replace('![Logo](/logo.png)\n','') # remove logo
long_description = re.sub('!\[gif\].*\)', "", long_description) # remove gif
long_description = re.sub('!\[img\].*\)', "", long_description) # remove images
with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f:
reqs = f.read().split('\n')
reqs = [x.strip() for x in reqs if x.strip() != '']
setup(
name='bareml',
packages=find_packages(),
version=__version__,
license='MIT',
install_requires=reqs,
author='shotahorii',
author_email='[email protected]',
url='https://github.com/shotahorii/bareml',
description='A Python module containing various machine learning algorithms.',
long_description=long_description,
long_description_content_type='text/markdown',
keywords='machine-learning machine-learning-algorithms machine-learning-from-scratch data-science statistical-models',
classifiers=[
'License :: OSI Approved :: MIT License',
'Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)