Skip to content

Commit

Permalink
Conda build recipe updates for first attempt at PyBERT v4.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
capn-freako committed Mar 9, 2023
1 parent 822a578 commit a4f93fa
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 27 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[submodule "PyAMI"]
path = PyAMI
url = https://github.com/capn-freako/PyAMI.git
[submodule "enable"]
path = enable
url = https://github.com/enthought/enable.git
[submodule "chaco"]
path = chaco
url = https://github.com/enthought/chaco.git
Expand Down
2 changes: 1 addition & 1 deletion 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: 1
number: 2
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "

requirements:
Expand Down
12 changes: 7 additions & 5 deletions conda.recipe/pybert/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "pybert" %}
{% set version = "4.0.5" %}
{% set version = "4.1.0" %}

package:
version: '{{ version }}'
Expand All @@ -20,19 +20,21 @@ requirements:
- kiwisolver
- numpy x.x
- pyibis-ami >=4.0.5
- pyside6
# - pyside6 # Not available in Anaconda, yet.
- pyside2
- python x.x
- pyyaml
# - qt >=5
- qt >=5
- scikit-rf >=0.24.1
build:
- kiwisolver
- numpy x.x
- pyibis-ami >=4.0.5
- pyside6
# - pyside6 # Not available in Anaconda, yet.
- pyside2
- python x.x
- pyyaml
# - qt >=5
- qt >=5
- scikit-rf >=0.24.1
- setuptools

Expand Down
25 changes: 18 additions & 7 deletions conda.recipe/pyibis-ami/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{% set name = "pyibis-ami" %}
{% set version = "4.0.5" %}
{% set version = "4.0.6" %}

package:
version: '{{ version }}'
name: '{{ name|lower }}'

source:
path: ../../PyAMI/
# path: ../../PyAMI
# git_url: ../../PyAMI
git_url: ../../PyAMI_pruned
# git_url: https://github.com/capn-freako/PyAMI.git
# git_rev: {{ version }}
# git_depth: 1 # (Defaults to -1/not shallow)
Expand All @@ -18,26 +20,35 @@ build:
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "

requirements:
run:
build:
# host:
- chaco >=5.1.0
- click
- cmake
- Cython
- empy
- git
- importlib_resources
- matplotlib
- numpy x.x
- numpy 1.23.*
- parsec >=3.13
- python
- scipy
- setuptools
- swig
- vs2019_win-64 # Uncomment for Windows build only.
# - {{ compiler('c') }} # Would like to get one of these working, instead of above hack.
# - {{ compiler('cxx') }}

build:
run:
- chaco >=5.1.0
- click
- empy
- matplotlib
- numpy x.x
- numpy 1.23.*
- parsec >=3.13
- python
- scipy
- setuptools

test:
imports:
Expand Down
1 change: 0 additions & 1 deletion enable
Submodule enable deleted from 78d2e4
11 changes: 11 additions & 0 deletions src/pybert/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@
__date__ = "February 13, 2023"
__authors__ = "David Banas & David Patterson"
__copy__ = "Copyright (c) 2014 David Banas, 2019 David Patterson"

# fmt: off
# isort: off
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = 'qt4' # Yields unacceptably small font sizes in plot axis labels.
# ETSConfig.toolkit = 'qt4.celiagg' # Yields unacceptably small font sizes in plot axis labels.
# ETSConfig.toolkit = 'qt.qpainter' # Was causing crash on Mac.
# ETSConfig.toolkit = 'qt.image' # Program runs, but very small fonts in plot titles and axis labels.
# ETSConfig.toolkit = 'wx' # Crashes on launch.
# fmt: on
# isort: on
11 changes: 1 addition & 10 deletions src/pybert/pybert.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@
Copyright (c) 2014 by David Banas; All rights reserved World wide.
"""
# fmt: off
# isort: off
from traits.etsconfig.api import ETSConfig
# ETSConfig.toolkit = 'qt4' # Yields unacceptably small font sizes in plot axis labels.
# ETSConfig.toolkit = 'qt4.celiagg' # Yields unacceptably small font sizes in plot axis labels.
# ETSConfig.toolkit = 'qt.qpainter' # Was causing crash on Mac.
# ETSConfig.toolkit = 'qt.image' # Program runs, but very small fonts in plot titles and axis labels.
# ETSConfig.toolkit = 'wx' # Crashes on launch.
# fmt: on
# isort: on
import platform
import time
from datetime import datetime
Expand Down Expand Up @@ -1751,6 +1741,7 @@ def clear_reference_from_plots(self):

def log_information(self):
"""Log the system information."""
from traits.etsconfig.api import ETSConfig
self.log(f"System: {platform.system()} {platform.release()}")
self.log(f"Python Version: {platform.python_version()}")
self.log(f"PyBERT Version: {VERSION}")
Expand Down

0 comments on commit a4f93fa

Please sign in to comment.