forked from gro-intelligence/api-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
62 lines (56 loc) · 2.26 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
[tool.poetry]
name = "groclient"
# Note: we use poetry-dynamic-versioning to set the version from git tags.
version = "0.0.0"
description = "Python client library for accessing Gro Intelligence's agricultural data platform"
authors = ["Gro Intelligence developers <dev@gro-intelligence.com>"]
readme = "README.md"
homepage = "https://www.gro-intelligence.com/products/gro-api"
repository = "https://github.com/gro-intelligence/api-client"
documentation = "https://developers.gro-intelligence.com/"
license = "MIT"
# TODO: remove once we remove the old api directory completely.
packages = [
{ include = "groclient" },
{ include = "api" },
]
[tool.poetry.scripts]
gro_client = 'groclient.__main__:main'
[tool.poetry.dependencies]
python = "^3.6.1"
numpy = "*"
requests = "*"
pandas = "*"
tornado = "*"
unicodecsv = "*"
# 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 = { version = "~3.1.0", optional = true }
recommonmark = { version = "*", optional = true }
sphinx_rtd_theme = { version = "*", optional = true }
sphinx-multiversion = { version = "*", optional = true }
[tool.poetry.dev-dependencies]
mock = "*"
pytest = "*"
pytest-cov = "*"
[tool.poetry.extras]
docs = ["sphinx", "recommonmark", "sphinx_rtd_theme", "sphinx-multiversion"]
[build-system]
requires = ["poetry-core>=1.0.0", "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.
#
# Note that 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: only uploading release packages
# - TestPyPI: only uploading packages when commits are merged to development
format-jinja = "{% if distance == 0 %}{{ base }}{% else %}{{ base }}.dev{{ distance }}{% endif %}"