-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
71 lines (65 loc) · 2.06 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
from setuptools import setup, find_packages
import subprocess
import os
# Get the version from git tags
version = (
subprocess.run(["git", "describe", "--tags"], stdout=subprocess.PIPE)
.stdout.decode("utf-8")
.strip()
)
if "-" in version:
v, i, s = version.split("-")
version = v + "+" + i + ".git." + s
assert "-" not in version
assert "." in version
# Write the version to a file
with open("VERSION", "w", encoding="utf-8") as fh:
fh.write("%s\n" % version)
# Read the long description from the README file
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
# Setup function
setup(
name='robustbase',
version=version,
description='A Python Based Library to Calculate Estimators (Sn, Qn, MAD, IQR, covComed)',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/deepak7376/robustbase',
author='Deepak Yadav',
author_email='[email protected]',
license='MIT',
packages=find_packages(), # Automatically find packages
include_package_data=True,
project_urls={
'Source': 'https://github.com/deepak7376/robustbase',
'Tracker': 'https://github.com/deepak7376/robustbase/issues',
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
keywords='robust statistics robustness Sn Qn MAD IQR',
python_requires='>=3.0',
install_requires=[
'certifi>=2019.11.28',
'docutils>=0.15.2',
'numpy>=1.18.0',
'scipy>=1.13.1',
'statistics>=1.0.3.5',
],
extras_require={
'dev': [
'pytest>=6.0.0',
'pytest-cov>=2.10.0',
'coverage>=5.0',
'flake8>=3.8.0',
],
},
)