Skip to content

Commit

Permalink
Merge pull request #30 from openalea/namespace
Browse files Browse the repository at this point in the history
New namespaces
  • Loading branch information
pradal authored Jan 23, 2024
2 parents 894baa4 + 8a387c3 commit 1a2673b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 70 deletions.
73 changes: 12 additions & 61 deletions .github/workflows/conda-package-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,66 +2,17 @@ name: build_publish_anaconda

on:
push:
branches: [ master ]
branches:
- '**'
tags:
- 'v*'
pull_request:
branches: [ master ]

jobs:
build-and-publish:
name: ${{ matrix.os }}, Python 3.${{ matrix.python-minor-version }} for conda deployment
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
os: [ ubuntu-latest]
python-minor-version: [9]
isMaster:
- ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/dev') }}
exclude:
- isMaster: false
os: ubuntu-latest
python-minor-version: 7
- isMaster: false
os: ubuntu-latest
python-minor-version: 8
- isMaster: false
os: macos-latest
python-minor-version: 7
- isMaster: false
os: macos-latest
python-minor-version: 8
- isMaster: false
os: macos-latest
python-minor-version: 9
- isMaster: false
os: windows-latest
python-minor-version: 7
- isMaster: false
os: windows-latest
python-minor-version: 8
- isMaster: false
os: windows-latest
python-minor-version: 9
branches:
- '**'


steps:
- name: Chekout
uses: actions/checkout@v3
- name: Determine publish
uses: haya14busa/action-cond@v1
id: publish
with:
cond: ${{ contains(github.ref, 'master') || startsWith(github.ref, 'refs/heads/v') }}
if_true: 'true'
if_false: 'false'
- name: Build and Publish
uses: openalea/action-build-publish-anaconda@v0.1.4
with:
conda: conda
mamba: false
python: ${{ matrix.python-minor-version }}
numpy: '20.0'
channels: openalea3, conda-forge
token: ${{ secrets.ANACONDA_TOKEN }}
publish: ${{ steps.publish.outputs.value }}
label: main
jobs:
build:
uses: openalea/github-action-conda-build/.github/workflows/conda-package-build.yml@main
secrets:
anaconda_token: ${{ secrets.ANACONDA_TOKEN }}
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# format setup arguments

from setuptools import setup, find_packages
from setuptools import setup, find_namespace_packages
from io import open


Expand All @@ -19,7 +19,7 @@
version = _version["__version__"]

# find packages
pkgs = find_packages('src')
pkgs = find_namespace_packages('src', include=['openalea.*'])

setup_kwds = dict(
name='openalea.core',
Expand All @@ -29,7 +29,7 @@
author="Christophe Pradal",
author_email="christophe dot pradal at cirad dot fr",
url='https://github.com/openalea/core',
license='cecill-c',
license='CeCILL-C',
zip_safe=False,

packages=pkgs,
Expand Down
4 changes: 0 additions & 4 deletions src/openalea/__init__.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/openalea/core/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
MAJOR = 2
"""(int) Version major component."""

MINOR = 3
MINOR = 4
"""(int) Version minor component."""

POST = 1
POST = 0
"""(int) Version post or bugfix component."""

__version__ = ".".join([str(s) for s in (MAJOR, MINOR, POST)])
Expand Down

0 comments on commit 1a2673b

Please sign in to comment.