-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packaging - Moving to pyproject.toml #38
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see the interest of renaming test into tests and doc into docs.
I recommend to stay with test and doc (singular for directories).
conda/meta.yaml
Outdated
@@ -11,15 +11,16 @@ build: | |||
noarch: python | |||
preserve_egg_dir: True | |||
number: 2 | |||
script: {{PYTHON}} setup.py install #--single-version-externally-managed --record=record.txt | |||
#script: {{PYTHON}} setup.py install #--single-version-externally-managed --record=record.txt | |||
script: {{ PYTHON }} -m pip install . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need other options to pip install?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would sugger to use:
--no-deps Don't install package dependencies.
conda/meta.yaml
Outdated
|
||
requirements: | ||
build: | ||
- python {{PY_VER}} | ||
- setuptools | ||
- openalea.deploy | ||
run: | ||
- python >=3.6 | ||
- python >=3.10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is Python 3.10 mandatory? Or can we have Python 3.7 or 3.8 as a minimal version?
pyproject.toml
Outdated
] | ||
license = { text = "CeCILL-C" } | ||
keywords = ["OpenAlea", "MTG", "Plant Architecture", "Tree Graph"] | ||
dependencies = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the dependencies.
Document needed vs optional dependencies
#version = {file = "src/openalea/mtg/version.py"} | ||
|
||
#[tool.setuptools.entry-points.wralea] | ||
#mtg = "openalea.mtg_wralea" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
entry-point are also important both in pyproject.toml and conda/meta.yaml
tests/data/leaf_axis.drf
Outdated
# contains symbol a_leaf | ||
|
||
Class F = feuille | ||
SMBPath = D:/Documents/pradal/devlp/vplants/aml/databases/SMBFiles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PATh are only valid on windows on a specific computer. Make this system independent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where should be located this folder (SMBFiles) ? It does not appear to be in the git repo
keywords = ["OpenAlea", "MTG", "Plant Architecture", "Tree Graph"] | ||
|
||
dependencies = [ | ||
"openalea.plantgl", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
openalea.plantgl is not pip installable. Is it a problem?
"""(int) Version minor component.""" | ||
|
||
post = 0 | ||
post = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.3.0 is better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few effort yet before merging...
No description provided.