-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (48 loc) · 1.52 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 os
import re
import setuptools
NAME = "discopula"
AUTHOR = "Dhyey Mavani"
AUTHOR_EMAIL = "ddmavani2003@gmail.com"
DESCRIPTION = "This package is for discrete copula modeling and implementation of new scoring methods pertaining to ordinal and categorical discrete data."
LICENSE = "MIT"
KEYWORDS = "discrete-copula"
URL = "https://github.com/dmavani25/" + NAME
README = ".github/README.md"
CLASSIFIERS = [
"Programming Language :: Cython",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
INSTALL_REQUIRES = ["numpy", "scipy", "matplotlib"]
ENTRY_POINTS = {}
SCRIPTS = []
HERE = os.path.dirname(__file__)
def read(file):
with open(os.path.join(HERE, file), "r") as fh:
return fh.read()
VERSION = re.search(
r'__version__ = [\'"]([^\'"]*)[\'"]', read(NAME.replace("-", "_") + "/__init__.py")
).group(1)
LONG_DESCRIPTION = read(README)
if __name__ == "__main__":
setuptools.setup(
name=NAME,
version=VERSION,
packages=setuptools.find_packages(),
author=AUTHOR,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
license=LICENSE,
keywords=KEYWORDS,
url=URL,
classifiers=CLASSIFIERS,
install_requires=INSTALL_REQUIRES,
entry_points=ENTRY_POINTS,
scripts=SCRIPTS,
include_package_data=True,
python_requires=">=3.8",
)