-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (81 loc) · 2.72 KB
/
pyproject.toml
File metadata and controls
90 lines (81 loc) · 2.72 KB
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
88
89
# ============================================================
# pyproject.toml
# ------------------------------------------------------------
# Metadados e configuração do pacote "prepbufr-tools"
# Permite instalação local via:
# pip install -e .
#
# Inclui pontos de entrada (CLI), dependências e ferramentas
# auxiliares (black, ruff, pytest).
# ============================================================
[project]
name = "prepbufr-tools"
version = "1.0.0"
description = "Python tools for generating, reading and validating PREPBUFR files (GSI-compatible)."
authors = [
{ name = "João Gerd Zell de Mattos", email = "joao.gerd@inpe.br" }
]
license = "LGPL-3.0"
readme = "README.md"
requires-python = ">=3.9"
# ------------------------------------------------------------
# Dependências principais
# ------------------------------------------------------------
dependencies = [
"numpy",
"tqdm",
"nceplibs-bufr"
]
# ------------------------------------------------------------
# Scripts (Entry Points)
# ------------------------------------------------------------
# Permitem executar os scripts diretamente no terminal após
# instalação com `pip install -e .`:
#
# check-prepbufr arquivo.prepbufr
# read-prepbufr arquivo.prepbufr
# write-prepbufr
# prepbufr-cptec-gsi --type adpsfc ...
# ------------------------------------------------------------
[project.scripts]
check-prepbufr = "scripts.check_prepbufr:main"
read-prepbufr = "scripts.read_prepbufr_min:main"
write-prepbufr = "scripts.write_prepbufr_min:main"
prepbufr-cptec-gsi = "scripts.prepbufr_cptec_gsi:main"
# ------------------------------------------------------------
# Sistema de build
# ------------------------------------------------------------
# "setuptools" é suficiente, pois o projeto é leve e baseado
# em scripts independentes.
# ------------------------------------------------------------
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
# ------------------------------------------------------------
# Ferramentas auxiliares de desenvolvimento
# ------------------------------------------------------------
[tool.black]
line-length = 100
target-version = ['py311']
[tool.ruff]
line-length = 100
select = ["E", "F", "W"]
ignore = ["E501"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
# ============================================================
# Dicas rápidas:
#
# 1. Instalar no modo desenvolvedor:
# pip install -e .
#
# 2. Executar scripts:
# check-prepbufr arquivo.prepbufr
#
# 3. Atualizar ambiente:
# mamba env update -f environment.yml
#
# 4. Desinstalar:
# pip uninstall prepbufr-tools
# ============================================================