-
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
Open
pellem
wants to merge
14
commits into
master
Choose a base branch
from
refactor
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
436d211
add pyproject.toml
dbfc484
update meta.yaml
5d3cddc
update meta.yaml
d4915bb
meta.yaml update
0cc0df6
update pyproject.toml
7d626d0
meta.yaml python version
87f7de5
moved from "test" to "tests"
1ccd1d8
update meta.yaml to user pip instead of setup.py
9b81518
pyproject.toml: dynamic version
7b01804
meta.yaml: pip flag --no-deps
9f3eab3
pyproject.toml: added dependencies
bb761f9
test update version
8e485dc
added namespaces to pyproject.toml
4796c7e
tests => test
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "openalea.mtg" | ||
dynamic = ["version"] | ||
description = "Multiscale Tree Graph datastructure and interfaces" | ||
readme = "README.rst" | ||
authors = [ | ||
{ name = "Christophe Pradal", email = "[email protected]" } | ||
] | ||
license = { text = "CeCILL-C" } | ||
keywords = ["OpenAlea", "MTG", "Plant Architecture", "Tree Graph"] | ||
|
||
dependencies = [ | ||
"openalea.plantgl", | ||
"matplotlib", | ||
"pandas" | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest", | ||
"path", | ||
"openalea.lpy" | ||
] | ||
|
||
[project.urls] | ||
homepage = "http://github.com/openalea/mtg" | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
namespaces = true | ||
|
||
#[tool.setuptools] | ||
#packages = ["find_namespace:src"] | ||
#namespace_packages = ["openalea"] | ||
#package_dir = {"" = "src"} | ||
|
||
#[tool.setuptools.entry-points.wralea] | ||
#mtg = "openalea.mtg_wralea" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
|
||
#[tool.setuptools.dynamic] | ||
#version = {file = "src/openalea/mtg/version.py"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,10 @@ | |
major = 2 | ||
"""(int) Version major component.""" | ||
|
||
minor = 2 | ||
minor = 3 | ||
"""(int) Version minor component.""" | ||
|
||
post = 0 | ||
post = 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2.3.0 is better |
||
"""(int) Version post or bugfix component.""" | ||
|
||
__version__ = ".".join([str(s) for s in (major, minor, post)]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
# Dressing file for apple trees | ||
#SMBPath = D:/Documents/pradal/devlp/vplants/aml/databases/SMBFiles | ||
SMBPath = ../../../databases/SMBFiles | ||
SMBModel entrenoeud = nentn105 | ||
SMBModel entrenoeud2 = nentn104 | ||
SMBModel Feuille = feui146 #feui113 | ||
SMBModel Fruit = pommecyl | ||
Class U = entrenoeud | ||
Class B = entrenoeud | ||
Class E = entrenoeud | ||
Class Z = Feuille | ||
Class A = Fruit | ||
LeafClass = Z | ||
FruitClass = A | ||
LeafAlpha = 45 | ||
LeafBeta = 120 | ||
LeafLength = 100 | ||
LeafTopDiameter = 1000 | ||
LeafBottomDiameter = 1000 | ||
Phyllotaxy = 150 | ||
MinTopDiameter I = 50 | ||
MinBottomDiameter I = 50 | ||
MinTopDiameter U = 500 | ||
MinBottomDiameter U = 500 | ||
MinTopDiameter E = 500 | ||
MinBottomDiameter E = 500 | ||
MinTopDiameter B = 1 | ||
MinBottomDiameter B = 1 | ||
MinLength C = 5 | ||
MinLength E = 1 | ||
MinLength F = 0 | ||
MinLength B = 5 | ||
MinLength I = 5 | ||
MinLength U = 5 | ||
DiameterUnit = 10 | ||
LengthUnit = 1 | ||
Alpha = Relative | ||
# Dressing file for apple trees | ||
|
||
#SMBPath = D:/Documents/pradal/devlp/vplants/aml/databases/SMBFiles | ||
SMBPath = ../../../databases/SMBFiles | ||
|
||
SMBModel entrenoeud = nentn105 | ||
SMBModel entrenoeud2 = nentn104 | ||
SMBModel Feuille = feui146 #feui113 | ||
SMBModel Fruit = pommecyl | ||
|
||
Class U = entrenoeud | ||
Class B = entrenoeud | ||
Class E = entrenoeud | ||
|
||
Class Z = Feuille | ||
Class A = Fruit | ||
|
||
LeafClass = Z | ||
FruitClass = A | ||
|
||
LeafAlpha = 45 | ||
LeafBeta = 120 | ||
LeafLength = 100 | ||
LeafTopDiameter = 1000 | ||
LeafBottomDiameter = 1000 | ||
|
||
|
||
Phyllotaxy = 150 | ||
|
||
MinTopDiameter I = 50 | ||
MinBottomDiameter I = 50 | ||
|
||
MinTopDiameter U = 500 | ||
MinBottomDiameter U = 500 | ||
|
||
MinTopDiameter E = 500 | ||
MinBottomDiameter E = 500 | ||
|
||
MinTopDiameter B = 1 | ||
MinBottomDiameter B = 1 | ||
|
||
MinLength C = 5 | ||
MinLength E = 1 | ||
MinLength F = 0 | ||
MinLength B = 5 | ||
MinLength I = 5 | ||
MinLength U = 5 | ||
|
||
|
||
DiameterUnit = 10 | ||
LengthUnit = 1 | ||
|
||
Alpha = Relative | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
SMBPath = D:/Documents/pradal/devlp/vplants/aml/databases/SMBFiles | ||
#SMBPath = ../../../databases/SMBFiles | ||
SMBModel feuille = feui136 #feui113 | ||
# Geometry = ../../../databases/GEOMFiles/leaf.geom | ||
# contains symbol a_leaf | ||
Class F = feuille | ||
SMBPath = D:/Documents/pradal/devlp/vplants/aml/databases/SMBFiles | ||
#SMBPath = ../../../databases/SMBFiles | ||
|
||
SMBModel feuille = feui136 #feui113 | ||
|
||
# Geometry = ../../../databases/GEOMFiles/leaf.geom | ||
# contains symbol a_leaf | ||
|
||
Class F = feuille |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# Dressing file for WalnuTree trees | ||
#SMBPath = D:/Documents/pradal/devlp/vplants/aml/databases/SMBFiles | ||
#SMBPath = ../../databases/SMBFiles | ||
#SMBModel entrenoeud = nentn105 | ||
DiameterUnit = 10 | ||
# Dressing file for WalnuTree trees | ||
|
||
#SMBPath = D:/Documents/pradal/devlp/vplants/aml/databases/SMBFiles | ||
#SMBPath = ../../databases/SMBFiles | ||
|
||
#SMBModel entrenoeud = nentn105 | ||
|
||
DiameterUnit = 10 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# Dressing file for oak trees | ||
SMBPath = D:/Documents/pradal/devlp/vplants/aml/databases/SMBFiles | ||
#SMBPath = ../../databases/SMBFiles | ||
SMBModel node = nentn105 | ||
SMBModel leaf = fchene | ||
Class Z = leaf | ||
LeafClass = Z | ||
MinTopDiameter E = 1 | ||
MinBottomDiameter E = 1 | ||
MinLength E = 10 | ||
DiameterUnit = 10 | ||
LengthUnit = 1 | ||
# Dressing file for oak trees | ||
|
||
SMBPath = D:/Documents/pradal/devlp/vplants/aml/databases/SMBFiles | ||
#SMBPath = ../../databases/SMBFiles | ||
|
||
SMBModel node = nentn105 | ||
SMBModel leaf = fchene | ||
|
||
Class Z = leaf | ||
|
||
LeafClass = Z | ||
|
||
MinTopDiameter E = 1 | ||
MinBottomDiameter E = 1 | ||
|
||
MinLength E = 10 | ||
|
||
DiameterUnit = 10 | ||
LengthUnit = 1 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
MinTopDiameter E = 10 | ||
MinBottomDiameter E = 10 | ||
MinLength E = 10 | ||
MinTopDiameter E = 10 | ||
MinBottomDiameter E = 10 | ||
MinLength E = 10 | ||
|
||
|
||
|
||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?