Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file removed .pkglts/clean.no
Empty file.
62 changes: 0 additions & 62 deletions .pkglts/pkg_cfg.json

This file was deleted.

56 changes: 0 additions & 56 deletions .pkglts/pkg_hash.json

This file was deleted.

10 changes: 0 additions & 10 deletions .pkglts/pkg_version.json

This file was deleted.

Empty file removed .pkglts/regenerate.no
Empty file.
76 changes: 76 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# FB 2025-04-14: based on ADEL and hydroshoot, sphinx pkg in environment.yml
[build-system]
requires = [
"setuptools",
"six",
]
build-backend = "setuptools.build_meta"

# allow openalea to be a namespace package
[tool.setuptools.packages.find]
where = ["src"]


[project]
name = "pycropml"
dynamic = ["version", "readme"]
authors = [
{ name = "Cyrille Ahmed Midingoyi", email="cyrille_ahmed.midingoyi@cirad.fr" },
]
description = "A Python library to generate components from Crop2ML declarative language"
license-files = ["LICEN[CS]E*"]
requires-python = ">=3.8"
classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Framework :: OpenAlea",
"Framework :: Crop2ML",
]

dependencies = [
"ipykernel",
"configobj",
"six",
"setuptools",
]

[tool.setuptools.dynamic]
version = {attr = "pycropml.version.__version__"}
readme = {file = ["README.rst"]}

# section specific to conda-only distributed package (not used by pip yet)
[tool.conda.environment]
channels = [
"openalea3",
"conda-forge"
]
dependencies = [
]

[project.optional-dependencies]
test = ["pytest"]
doc = [
"sphinx-favicon",
"sphinx-rtd-theme",
"pydata-sphinx-theme",
"myst-parser",
"nbsphinx",
]

[project.urls]
Homepage = "https://github.com/AgriculturalModelExchangeInitiative/PyCrop2ML"
"Bug Tracker" = "https://github.com/AgriculturalModelExchangeInitiative/PyCrop2ML/issues"
Discussions = "https://github.com/AgriculturalModelExchangeInitiative/PyCrop2ML/discussions"
Changelog = "https://github.com/AgriculturalModelExchangeInitiative/PyCrop2ML/releases"

#[tool.setuptools.package-data]
#"pycropml_data" = ["*"]

[project.scripts]
cyml = " pycropml.main:main"
31 changes: 4 additions & 27 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,28 +1,5 @@
# {# pkglts, pysetup
# requirements are managed by pkglts, do not edit this file at all
# edit .pkglts/pkg_cfg instead
# section pysetup

# install


# run examples


# test
#pytest
#pytest-mock


# compile doc
#sphinx


# other dvlpt tools


# #}
path
path.py
#yaml
six
nbformat
numpy==2.0.2
Expand All @@ -31,9 +8,9 @@ nbsphinx
networkx
graphviz
pydot
pyyaml
#pyyaml
unyt
IPython
antlr4-python3-runtime==4.8
antlr4-python3-runtime==4.13.0
xmlformatter
pandas==2.2.3
2 changes: 1 addition & 1 deletion src/pycropml/transpiler/antlr_py/grammars/CMake.interp
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ compound_argument


atn:
[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 13, 42, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 3, 2, 7, 2, 12, 10, 2, 12, 2, 14, 2, 15, 11, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 7, 3, 23, 10, 3, 12, 3, 14, 3, 26, 11, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 7, 5, 35, 10, 5, 12, 5, 14, 5, 38, 11, 5, 3, 5, 3, 5, 3, 5, 2, 2, 6, 2, 4, 6, 8, 2, 3, 4, 2, 5, 6, 8, 9, 2, 42, 2, 13, 3, 2, 2, 2, 4, 18, 3, 2, 2, 2, 6, 29, 3, 2, 2, 2, 8, 31, 3, 2,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