-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
56 lines (49 loc) · 1.68 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import base64
import requests
from setuptools import setup
from os import path
PROJECT_URLS = {
'Source Code': 'https://github.com/alfredsasko/' \
'advanced-principle-component-analysis',
'Documentation': 'https://pypi.org/project/advanced-pca/#description'
}
# read the contents of your README file
readme_url = ('https://api.github.com/repos/alfredsasko/'
'advanced-principle-component-analysis/contents/README.md')
req = requests.get(readme_url)
if req.status_code == requests.codes.ok:
req = req.json()
long_description = base64.b64decode(req['content']).decode('u8')
else:
long_description = 'Long Description Source File Not Found'
print(type(long_description))
setup(
name = 'advanced_pca',
packages = ['advanced_pca'],
version = '0.1.4',
license='MIT',
description = 'PCA with varimax rotation and feature selection ' \
'compatible with scikit-learn',
long_description=long_description,
long_description_content_type='text/markdown',
author = 'Alfred Sasko',
author_email = 'alfred.sasko@gmail.com',
url = 'https://github.com/alfredsasko',
project_urls=PROJECT_URLS,
keywords = ['Principle Component Analysis',
'Matrix rotation',
'Feature selection',
'PCA',
'scikit-learn'],
install_requires=['rpy2'],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
zip_safe=False,
)