Skip to content

Commit

Permalink
Merge pull request #48 from pradal/refactor
Browse files Browse the repository at this point in the history
Refactor to have deploy compatible with conda
  • Loading branch information
pradal authored Apr 1, 2022
2 parents 705bf65 + b47e908 commit 4bcd292
Show file tree
Hide file tree
Showing 36 changed files with 34 additions and 9,346 deletions.
21 changes: 3 additions & 18 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
.. image:: https://img.shields.io/badge/License-CeCILL_C-blue.svg
:target: http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html

.. image:: https://travis-ci.org/openalea/deploy.svg?branch=master
:target: https://travis-ci.org/openalea/deploy

.. image:: https://ci.appveyor.com/api/projects/status/8d3qs5f00wriryo2/branch/master?svg=true
:target: https://ci.appveyor.com/project/fredboudon/deploy

Expand Down Expand Up @@ -36,24 +33,20 @@ About
OpenAlea.Deploy support the installation of OpenAlea packages via the network and manage
their dependencies .
It is an extension of Setuptools_.

The last version is only available for Python 3.


**Additional Features** :
* Discover and manage packages in EGG format
* Declare shared libraries directory and include directories
* Call SCons scripts
* Create namespaces if necessary
* Support post_install scripts
* Support 'develop' command
* OpenAlea GForge upload

It doesn't include any GUI interface (See [[packages:compilation_installation:deploygui:deploygui|OpenAlea.DeployGui]] for that).

Requirements
-------------

* Python_ <= 2.7
* Python_ >= 3.7
* Setuptools_

Download
Expand All @@ -71,7 +64,7 @@ Installation
OpenAlea.Deploy can be automatically installed with the *alea_setup.py* script.


.. _Setuptools: http://pythonhosted.org/setuptools
.. _Setuptools: https://setuptools.pypa.io/
.. _Python: http://www.python.org


Expand All @@ -87,7 +80,6 @@ as you do with setuptools.
Setup keywords
###############

* create_namespace = [True|False] : if **True** create the namespaces in *namespace_packages*
* scons_scripts = [list of Scons scripts] : if not empty, call scons to build extensions
* scons_parameters = [list of Scons parameters] : such as ``build_prefix=...``
* postinstall_scripts = [list of strings] : Each string corresponds to a python module to execute at installation time. The module may contain a install function ``def install():``.
Expand All @@ -98,10 +90,7 @@ Setup keywords
Additional setup.py commands
#############################

* *create_namespace* : create_namespace declared in *namespace_packages*, usage : ``python setup.py create_namespace``.
* *scons* : call scons scripts, usage : ``python setup.py scons``.
* *alea_install* : wrap easy_install command, usage : ``python setup.py alea_install``.
* *alea_upload* : upload distribution forge on the openalea gforge

For more information see : ``python setup.py --help-commands``

Expand Down Expand Up @@ -134,7 +123,6 @@ Setup.py example

# Packages
namespace_packages = ["openalea"],
create_namespaces = True,
packages = ['openalea.fakepackage', ],

package_dir = {
Expand All @@ -148,7 +136,6 @@ Setup.py example
lib_dirs = { 'lib' : pj(build_prefix, 'lib'), },
inc_dirs = { 'include' : pj(build_prefix, 'include') },
share_dirs = { 'share' : 'share' },
postinstall_scripts = ['openalea.fakepackage.postinstall',],

# Scripts
entry_points = { 'console_scripts': [
Expand All @@ -158,8 +145,6 @@ Setup.py example

# Dependencies
setup_requires = ['openalea.deploy'],
dependency_links = ['http://openalea.gforge.inria.fr/pi'],
#install_requires = [],

)

Expand Down
3 changes: 0 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
platform:
- x86
- x64

environment:
matrix:
- CONDA_RECIPE: conda
CONDA_VERSION: 2
- CONDA_RECIPE: conda
CONDA_VERSION: 3

Expand Down
8 changes: 2 additions & 6 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% set version = "2.2.0" %}
{% set data = load_setup_py_data() %}

package:
name: openalea.deploy
version: {{ version }}
version: {{ data.get('version') }}

source:
path: ..
Expand All @@ -17,14 +17,10 @@ requirements:
- python {{PY_VER}}* [not win]
- python {{PY_VER}} [win]
- setuptools
- pywin32 [win]
- six
run:
- python {{PY_VER}}* [not win]
- python {{PY_VER}} [win]
- setuptools
- pywin32 [win]
- six
- path.py

test:
Expand Down
Loading

0 comments on commit 4bcd292

Please sign in to comment.