Skip to content
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

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Packaging - Moving to pyproject.toml #38

wants to merge 14 commits into from

Conversation

pellem
Copy link

@pellem pellem commented Jun 13, 2024

No description provided.

@pellem pellem linked an issue Jun 13, 2024 that may be closed by this pull request
Copy link
Contributor

@pradal pradal left a 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 .
Copy link
Contributor

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?

Copy link
Author

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
Copy link
Contributor

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 = []
Copy link
Contributor

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

pyproject.toml Outdated Show resolved Hide resolved
#version = {file = "src/openalea/mtg/version.py"}

#[tool.setuptools.entry-points.wralea]
#mtg = "openalea.mtg_wralea"
Copy link
Contributor

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

# contains symbol a_leaf

Class F = feuille
SMBPath = D:/Documents/pradal/devlp/vplants/aml/databases/SMBFiles
Copy link
Contributor

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

Copy link
Author

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",
Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Contributor

@pradal pradal left a 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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Moving from Setup.py to pyproject.toml
2 participants