Skip to content

Commit 5adb5be

Browse files
authored
Merge pull request #35 from pradal/namespace
Namespace
2 parents 38ef408 + 05d242d commit 5adb5be

File tree

4 files changed

+20
-77
lines changed

4 files changed

+20
-77
lines changed
Lines changed: 15 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,20 @@
1-
name: build_publish_anaconda
1+
name: Building Package
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches:
6+
- '**'
7+
tags:
8+
- 'v*'
69
pull_request:
7-
branches: [ master ]
8-
9-
jobs:
10-
build-and-publish:
11-
name: ${{ matrix.os }}, Python 3.${{ matrix.python-minor-version }} for conda deployment
12-
runs-on: ${{ matrix.os }}
13-
strategy:
14-
fail-fast: false
15-
max-parallel: 3
16-
matrix:
17-
os: [ ubuntu-latest]
18-
python-minor-version: [9]
19-
isMaster:
20-
- ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/dev') }}
21-
exclude:
22-
- isMaster: false
23-
os: ubuntu-latest
24-
python-minor-version: 7
25-
- isMaster: false
26-
os: ubuntu-latest
27-
python-minor-version: 8
28-
- isMaster: false
29-
os: macos-latest
30-
python-minor-version: 7
31-
- isMaster: false
32-
os: macos-latest
33-
python-minor-version: 8
34-
- isMaster: false
35-
os: macos-latest
36-
python-minor-version: 9
37-
- isMaster: false
38-
os: windows-latest
39-
python-minor-version: 7
40-
- isMaster: false
41-
os: windows-latest
42-
python-minor-version: 8
43-
- isMaster: false
44-
os: windows-latest
45-
python-minor-version: 9
10+
branches:
11+
- '**'
12+
4613

47-
steps:
48-
- name: Chekout
49-
uses: actions/checkout@v3
50-
- name: Determine publish
51-
uses: haya14busa/action-cond@v1
52-
id: publish
53-
with:
54-
cond: ${{ contains(github.ref, 'master') || startsWith(github.ref, 'refs/heads/v') }}
55-
if_true: 'true'
56-
if_false: 'false'
57-
- name: Build and Publish
58-
uses: openalea/action-build-publish-anaconda@v0.1.4
59-
with:
60-
conda: conda
61-
mamba: true
62-
python: ${{ matrix.python-minor-version }}
63-
numpy: '20'
64-
channels: openalea3, conda-forge
65-
token: ${{ secrets.ANACONDA_TOKEN }}
66-
publish: ${{ steps.publish.outputs.value }}
67-
label: main
14+
jobs:
15+
build:
16+
uses: openalea/github-action-conda-build/.github/workflows/conda-package-build.yml@main
17+
with:
18+
conda-channels: openalea3, conda-forge
19+
secrets:
20+
anaconda_token: ${{ secrets.ANACONDA_TOKEN }}

setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# -*- coding: utf-8 -*-
2-
__revision__ = "$Id$"
1+
# -*- coding: utf-8 -*-
32

43
import sys
54
from os.path import join as pj
65

7-
from setuptools import setup, find_packages
6+
from setuptools import setup, find_namespace_packages
87

98
# find version number in src/openalea/core/version.py
109
_version = {}
@@ -26,7 +25,7 @@
2625

2726

2827
namespace = 'openalea'
29-
packages = find_packages('src')
28+
packages = find_namespace_packages(where='src', include=['openalea.*'])
3029
package_dir = {'': 'src'}
3130

3231
setup(

src/openalea/__init__.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/openalea/visualea/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
MAJOR = 2
99
"""(int) Version major component."""
1010

11-
MINOR = 3
11+
MINOR = 4
1212
"""(int) Version minor component."""
1313

14-
POST = 3
14+
POST = 0
1515
"""(int) Version post or bugfix component."""
1616

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

0 commit comments

Comments
 (0)