-
Notifications
You must be signed in to change notification settings - Fork 20
/
pyproject.toml
87 lines (79 loc) · 2.82 KB
/
pyproject.toml
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
81
82
83
84
85
86
87
[tool.poetry]
name = "groclient"
# NOTE: We use poetry-dynamic-versioning to set the version from git
version = "0.0.0"
description = "Python client library for accessing Gro Intelligence's agricultural data platform"
authors = ["Gro Intelligence <[email protected]>"]
readme = "README.md"
homepage = "https://gro-intelligence.com/platform/api"
repository = "https://github.com/gro-intelligence/api-client"
documentation = "https://developers.gro-intelligence.com/"
license = "MIT"
# TODO: Update once we remove the old api/ directory
packages = [
{ include = "groclient" },
{ include = "api" },
]
exclude = [
"api/client/samples/analysis_kits",
"api/client/samples/anomaly_detection",
"api/client/samples/batch_queries",
"api/client/samples/crop_w_series",
"api/client/samples/drought",
"api/client/samples/prevented_plant",
"api/client/samples/analogous_years/get_started_with_analogous_years.ipynb",
"api/client/samples/crop_models/brazil_soybeans.ipynb",
"api/client/samples/crop_models/ethiopia_cereals.ipynb",
"api/client/samples/crop_models/kenya_cereals.ipynb",
"api/client/samples/crop_models/Sao_Paulo_brazil_sugar_content_modeling.ipynb",
"api/client/samples/at-time-query-examples.ipynb",
"api/client/samples/stage_environment_available_date.ipynb"
]
[tool.poetry.dependencies]
python = "^3.6.1"
numpy = "*"
requests = "*"
pandas = "*"
tornado = "*"
unicodecsv = "*"
[tool.poetry.group.test.dependencies]
mock = "*"
pytest = "*"
pytest-cov = "*"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
# TODO: Sphinx 3.2.0 added support for local link checking w/ -b linkcheck. Our
# docs currently fail at this though, due to the way we do local linking. See:
# https://www.sphinx-doc.org/en/master/changes.html
sphinx = "<3.2"
# Ref: https://github.com/sphinx-doc/sphinx/issues/9841
docutils = "<0.18"
recommonmark = "*"
sphinx-multiversion = "*"
sphinx-rtd-theme = "*"
[tool.poetry.scripts]
gro_client = "groclient.__main__:main"
[build-system]
requires = ["poetry-core", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"
pattern = "^v(?P<base>\\d+\\.\\d+(\\.\\d+)?$)"
# When packaging a version-tagged commit, the version is just the tag name
# (e.g. "1.84.0"). When the commit isn't version-tagged, we include a ".devN"
# suffix denoting how far from the last tagged version the commit is. The
# .devN suffixes are ambiguous (with different branches, there can be different
# commits that result in the same .devN suffix). We use this scheme because
# PyPI requires it. We avoid ambiguity by:
# - PyPI: uploading release packages
# - TestPyPI: uploading packages when commits are merged to main
format-jinja = """
{%- if distance == 0 -%}
{{ base }}
{%- else -%}
{{ base }}.dev{{ distance }}
{%- endif -%}
"""