-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
80 lines (70 loc) · 3.09 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
72
73
74
75
76
77
78
79
80
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
# Add the plugin dependencies here
requirements = []
# Add the packages needed to build the package.
setup_requirements = ['pytest-runner']
test_requirements = ['pytest>=3']
setup(
author="Faleu Kemajou Loic",
author_email='[email protected]',
python_requires='>=3.6',
classifiers=[
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
description="A deep learning model for nowcast predictions based on radar images",
install_requires=requirements,
license="BSD license",
long_description=readme,
test_suite='tests',
tests_require=test_requirements,
include_package_data=True,
keywords=['machine_learning_importer', 'pysteps' , 'plugin', 'importer'],
name='Machine Learning Model',
packages=find_packages(),
setup_requires=setup_requirements,
# Entry points
# ~~~~~~~~~~~~
#
# This is the most important part of the plugin setup script.
# Entry points are a mechanism for an installed python distribution to advertise
# some of the components installed (packages, modules, and scripts) to other
# applications (in our case, pysteps).
# https://packaging.python.org/specifications/entry-points/
#
# An entry point is defined by three properties:
# - The group that an entry point belongs indicate the kind of functionality that
# provides. For the pysteps importers use the "pysteps.plugins.importers" group.
# - The unique name that is used to identify this entry point in the
# "pysteps.plugins.importers" group.
# - A reference to a Python object. For the pysteps importers, the object should
# point to a importer function, and should have the following form:
# package_name.module:function.
# The setup script uses a dictionary mapping the entry point group names to a list
# of strings defining the importers provided by this package (our plugin).
# The general form of the entry points dictionary is:
# entry_points={
# "group_name": [
# "entry_point_name=package_name.module:function",
# "entry_point_name=package_name.module:function2",
# ]
# },
entry_points={
'pysteps.plugins.importers': [
'importer_dgmr_model=machine_learning_importer.importer_dgmr:importer_dgmr_model',
'importer_dgmr_generate_input=machine_learning_importer.importer_dgmr:importer_dgmr_generate_input',
'importer_dgmr_model_validation=machine_learning_importer.importer_dgmr:importer_dgmr_model_validation',
'importer_dgmr_generate_visualisation=machine_learning_importer.importer_dgmr:importer_dgmr_generate_visualisation'
# Add additional importers if needed.
]
},
version='0.1.0',
zip_safe=False,
)