forked from openalea/phenomenal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing removing setup.py for pyproject.toml
- Loading branch information
Aurelien Besnier
committed
Jan 24, 2024
1 parent
52b897f
commit 1cfcb84
Showing
5 changed files
with
106 additions
and
80 deletions.
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,53 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "openalea.phenomenal" | ||
authors = [ | ||
{name = "Simon Artzet", email = "[email protected]"}, | ||
{name = "Christian Fournier"}, | ||
{name = "Brichet Nicolas"}, | ||
{name = "Chopard Jerome"}, | ||
{name = "Mielewczik Michael"}, | ||
{name = "Christophe Pradal"}, | ||
] | ||
license = {file = "LICENSE.txt"} | ||
description = "" | ||
requires-python = ">=3.9" | ||
keywords = ["openalea"] | ||
classifiers = [ | ||
'Intended Audience :: Science/Research', | ||
'Intended Audience :: Developers', | ||
"Programming Language :: Python :: 3", | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
] | ||
dependencies = [ | ||
'numpy', | ||
'cython', | ||
'numba', | ||
'pandas', | ||
'opencv_python', | ||
'scipy', | ||
'scikit-image', | ||
'scikit-learn', | ||
'networkx', | ||
'matplotlib', | ||
'vtk', | ||
'pytest', | ||
] | ||
dynamic = ["version", "readme"] | ||
|
||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "openalea.phenomenal.__version__"} | ||
readme = {file = ["README.md"]} | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] # list of folders that contain the packages (["."] by default) | ||
include = ["openalea.phenomenal*"] # package names should match these glob patterns (["*"] by default) | ||
exclude = ["test*"] # exclude packages matching these glob patterns (empty by default) | ||
namespaces = false # to disable scanning PEP 420 namespaces (true by default) |
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,79 +1,46 @@ | ||
# -*- python -*- | ||
# | ||
# Copyright INRIA - CIRAD - INRA | ||
# | ||
# File author(s): | ||
# | ||
# File contributor(s): | ||
# | ||
# Distributed under the Cecill-C License. | ||
# See accompanying file LICENSE.txt or copy at | ||
# http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html | ||
# | ||
# OpenAlea WebSite : http://openalea.gforge.inria.fr | ||
# | ||
# ============================================================================== | ||
""" | ||
""" | ||
# ============================================================================== | ||
import numpy | ||
from Cython.Build import cythonize | ||
from setuptools import setup, find_packages, Extension, Command | ||
# ============================================================================== | ||
|
||
namespace = "openalea" | ||
pkg_root_dir = 'src' | ||
packages = [pkg for pkg in find_packages(pkg_root_dir)] | ||
top_pkgs = [pkg for pkg in packages if len(pkg.split('.')) <= 2] | ||
package_dir = dict([('', pkg_root_dir)] + | ||
[(pkg, pkg_root_dir + "/" + pkg.replace('.', '/')) | ||
for pkg in top_pkgs]) | ||
|
||
|
||
extentions = [ | ||
Extension('openalea.phenomenal.segmentation._c_skeleton', | ||
sources=['src/openalea/phenomenal/segmentation/src/skeleton.pyx', | ||
'src/openalea/phenomenal/segmentation/src/skel.cpp'], | ||
include_dirs=[numpy.get_include()], | ||
language="c++"), | ||
Extension('openalea.phenomenal.multi_view_reconstruction._c_mvr', | ||
sources=['src/openalea/phenomenal/multi_view_reconstruction/src/c_mvr.pyx', | ||
'src/openalea/phenomenal/multi_view_reconstruction/src/integral_image.cpp'], | ||
include_dirs=[numpy.get_include()], | ||
language="c++") | ||
] | ||
|
||
setup( | ||
name="openalea.phenomenal", | ||
version="1.8.1", | ||
description="", | ||
long_description="", | ||
|
||
author="* Simon Artzet\n" | ||
"* Christian Fournier\n" | ||
"* Mielewczik Michael\n" | ||
"* Brichet Nicolas\n" | ||
"* Chopard Jerome\n" | ||
"* Christophe Pradal\n", | ||
|
||
author_email="[email protected]", | ||
maintainer="Simon Artzet", | ||
maintainer_email="[email protected]", | ||
|
||
url="https://github.com/openalea/phenomenal", | ||
license="Cecill-C", | ||
keywords='', | ||
|
||
# package installation | ||
packages=packages, | ||
package_dir=package_dir, | ||
zip_safe=False, | ||
ext_modules=cythonize(extentions), | ||
|
||
entry_points={ | ||
"wralea": ["openalea.phenomenal = openalea.phenomenal_wralea", ], | ||
}, | ||
|
||
# See MANIFEST.in | ||
include_package_data=True, | ||
) | ||
# -*- python -*- | ||
# | ||
# Copyright INRIA - CIRAD - INRA | ||
# | ||
# File author(s): | ||
# | ||
# File contributor(s): | ||
# | ||
# Distributed under the Cecill-C License. | ||
# See accompanying file LICENSE.txt or copy at | ||
# http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html | ||
# | ||
# OpenAlea WebSite : http://openalea.gforge.inria.fr | ||
# | ||
# ============================================================================== | ||
""" | ||
""" | ||
# ============================================================================== | ||
import numpy | ||
from Cython.Build import cythonize | ||
from setuptools import setup, Extension | ||
# ============================================================================== | ||
|
||
|
||
extentions = [ | ||
Extension('openalea.phenomenal.segmentation._c_skeleton', | ||
sources=['src/openalea/phenomenal/segmentation/src/skeleton.pyx', | ||
'src/openalea/phenomenal/segmentation/src/skel.cpp'], | ||
include_dirs=[numpy.get_include()], | ||
language="c++"), | ||
Extension('openalea.phenomenal.multi_view_reconstruction._c_mvr', | ||
sources=['src/openalea/phenomenal/multi_view_reconstruction/src/c_mvr.pyx', | ||
'src/openalea/phenomenal/multi_view_reconstruction/src/integral_image.cpp'], | ||
include_dirs=[numpy.get_include()], | ||
language="c++") | ||
] | ||
|
||
setup( | ||
name="openalea.phenomenal", | ||
ext_modules=cythonize(extentions), | ||
entry_points={ | ||
"wralea": ["openalea.phenomenal = openalea.phenomenal_wralea", ], | ||
}, | ||
# See MANIFEST.in | ||
include_package_data=True, | ||
) |
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,5 @@ | ||
major = 1 | ||
minor = 8 | ||
post = 2 | ||
|
||
__version__ = ".".join([str(s) for s in (major, minor, post)]) |