Skip to content

Commit

Permalink
feat: Implemented single source versioning of dependencies. (#126)
Browse files Browse the repository at this point in the history
* Implemented single source versioning of dependencies.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
* Bumped PyAMI submodule commit.

Fixes #125
  • Loading branch information
capn-freako authored Apr 21, 2023
1 parent d50d944 commit 1559923
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 66 deletions.
2 changes: 1 addition & 1 deletion PyAMI
Submodule PyAMI updated 1 files
+0 −2 pyproject.toml
45 changes: 22 additions & 23 deletions conda.recipe/chaco/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,42 @@ package:
source:
git_url: https://github.com/enthought/chaco.git
git_rev: {{ version }}

build:
number: 1
number: 3
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "
script_env:
- ETS_QT4_IMPORTS=1

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ cdt('libx11-devel') }} # [linux]
- {{ cdt('xorg-x11-proto-devel') }} # [linux]
- {{ cdt('mesa-libgl-devel') }} # [linux]
- {{ cdt('mesa-libglu-devel') }} # [linux]
- {{ cdt('mesa-dri-drivers') }} # [linux]
- {{ cdt('mesa-dri1-drivers') }} # [linux]
- {{ cdt('libselinux') }} # [linux]
- {{ cdt('libxdamage') }} # [linux]
- {{ cdt('libxxf86vm') }} # [linux]
- {{ cdt('libxext') }} # [linux]
- cmake
- git
- swig
host:
- Cython
- enable ={{ enable_version }}
- git
- importlib_resources
- numpy x.x
- numpy {{ numpy }}
- pyface >=7.4.2
- python
- python {{ python }}
- setuptools
# - vs2019_win-64 # Uncomment for Windows build only.
# - {{compiler('c')}} # Would like to get one of these working, instead of above hack.
# - {{compiler('cxx')}}

run:
- Cython
- enable ={{ enable_version }}
- importlib_resources
- numpy x.x
- {{ pin_compatible('numpy') }}
- pyface >=7.4.2
- python

Expand All @@ -41,19 +53,6 @@ test:
imports:
- chaco
- chaco.api
# - chaco.contour
# - chaco.downsample
# - chaco.downsample.tests
# - chaco.layers
# - chaco.overlays
# - chaco.plugin
# - chaco.scales
# - chaco.scales.tests
# - chaco.shell
# - chaco.tests
# - chaco.tools
# - chaco.tools.tests
# - chaco.tools.toolbars
- chaco.ui

# commands:
Expand Down
11 changes: 5 additions & 6 deletions conda.recipe/enable/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ source:
git_rev: {{version}}

build:
number: 3
number: 5
script: " {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "
script_env:
- CFLAGS=-Wno-c++11-narrowing
Expand Down Expand Up @@ -41,17 +41,19 @@ requirements:
- pyface >=7.4.2
- pyparsing
- python {{ python }}
- qt >=5
- setuptools
- six
- traitsui
- xorg-libxfixes # [linux]
run:
- fonttools
- numpy {{ numpy }}
- {{ pin_compatible('numpy') }}
- pillow >=9.4
- pyface >=7.4.2
- pyparsing
- python {{ python }}
- python
- qt >=5
- six
- traitsui

Expand All @@ -63,7 +65,6 @@ test:
- enable.layout
- enable.null
- enable.primitives
# - enable.pyglet_backend
- enable.qt4
- enable.savage
- enable.savage.compliance
Expand All @@ -83,7 +84,6 @@ test:
- enable.tests.primitives
- enable.tests.qt4
- enable.tests.tools
# - enable.tests.tools.apptools
- enable.tests.wx
- enable.tools
- enable.tools.apptools
Expand All @@ -93,7 +93,6 @@ test:
- enable.trait_defs.ui
- enable.trait_defs.ui.qt4
- enable.trait_defs.ui.wx
# - enable.vtk_backend
- enable.wx
- kiva
- kiva.agg
Expand Down
29 changes: 11 additions & 18 deletions conda.recipe/pybert/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% set name = "pybert" %}
{% set pyproject = load_file_data('../../pyproject.toml', from_recipe_dir=true, recipe_dir="conda.recipe/pybert") %}
{% set pyproject = load_file_data('../../pyproject.toml', from_recipe_dir=true, recipe_dir="conda.recipe/{{ name }}") %}
{% set version = pyproject.get('project', {}).get('version') %}
{% set deps = pyproject.get('project', {}).get('dependencies', []) %}

package:
version: '{{ version }}'
Expand All @@ -10,7 +11,7 @@ source:
path: ../../

build:
number: 1
number: 3
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "
entry_points:
- pybert = pybert.cli:cli
Expand All @@ -23,26 +24,18 @@ requirements:
- git
- swig
host:
- kiwisolver
- numpy {{ numpy }}
- pyibis-ami >=4.1
# - pyside6 # Not available in Anaconda, yet.
- pyside2
- python {{ python }}
- pyyaml
- qt >=5
- scikit-rf >=0.24.1
- setuptools
{% for dep in deps %}
- {{ dep }}
{% endfor %}
run:
- kiwisolver
- numpy {{ numpy }}
- pyibis-ami >=4.1
# - pyside6 # Not available in Anaconda, yet.
- pyside2
- python {{ python }}
- pyyaml
- qt >=5
- scikit-rf >=0.24.1
- {{ pin_compatible('numpy') }}
- python
{% for dep in deps %}
- {{ dep }}
{% endfor %}

test:
imports:
Expand Down
33 changes: 15 additions & 18 deletions conda.recipe/pyibis-ami/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% set name = "pyibis-ami" %}
{% set pyproject = load_file_data('../../PyAMI/pyproject.toml', from_recipe_dir=true, recipe_dir="conda.recipe/pyibis-ami") %}
{% set pyproject = load_file_data('../../PyAMI/pyproject.toml', from_recipe_dir=true, recipe_dir="conda.recipe/{{ name }}") %}
{% set version = pyproject.get('project', {}).get('version') %}
{% set deps = pyproject.get('project', {}).get('dependencies', []) %}
{% set build_reqs = pyproject.get('build-system', {}).get('requires', []) %}

package:
version: '{{ version }}'
Expand All @@ -15,7 +17,7 @@ source:
# git_depth: 1 # (Defaults to -1/not shallow)

build:
number: 0
number: 2
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "

requirements:
Expand All @@ -25,28 +27,23 @@ requirements:
- cmake
- git
- swig
{% for req in build_reqs %}
- {{ req }}
{% endfor %}
host:
- chaco >=5.1.1
- click >=8.1.3
- Cython
- empy >=3.3.4
- importlib_resources
- matplotlib >=3.6.1
- numpy {{ numpy }}
- parsec >=3.15
- python {{ python }}
- scipy >=1.9
- setuptools

{% for dep in deps %}
- {{ dep }}
{% endfor %}
run:
- chaco >=5.1.1
- click >=8.1.3
- empy >=3.3.4
- matplotlib >=3.6.1
- numpy {{ numpy }}
- parsec >=3.15
- python {{ python }}
- scipy >=1.9
- {{ pin_compatible('numpy') }}
- python
{% for dep in deps %}
- {{ dep }}
{% endfor %}

test:
imports:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ readme = "README.md"
requires-python = ">=3.8"
license = {text = "BSD"}
dependencies = [
"kiwisolver",
"PyIBIS-AMI>=4.1",
"pyside2",
"pyyaml>=6",
Expand Down

0 comments on commit 1559923

Please sign in to comment.