-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
48 lines (43 loc) · 1.57 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
import setuptools
from setuptools import setup
import io
import os
import re
with open("README.md", "r") as fh:
long_description = fh.read()
def read(path, encoding='utf-8'):
path = os.path.join(os.path.dirname(__file__), path)
with io.open(path, encoding=encoding) as fp:
return fp.read()
def version(path):
version_file = read(path)
version_match = re.search(r"""^__version__ = ['"]([^'"]*)['"]""",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(name='py4openag',
version=version('py4openag/__init__.py'),
description='This open-source package aims to establish the ML4Ops pipeline from public databases to integrated analytics for agriculture. It provides a variety of functions to study climate trends and simplify the calculation of commonly used metrics in agriculture. ',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/niveditapatel/py4openag',
author='Nivedita Patel',
author_email='[email protected]',
license='MIT',
packages=setuptools.find_packages(),
install_requires=[
'pandas',
'datetime',
'sklearn',
'matplotlib',
'ipyleaflet>=0.13.0',
'ipywidgets>=7.5.0',
'random2'
],
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
zip_safe=False)