Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release preparation #146

Merged
merged 12 commits into from
Apr 14, 2021
50 changes: 0 additions & 50 deletions .circleci/config.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .circleci/test_script.py

This file was deleted.

11 changes: 9 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
conda list
python --version

- name: Install MacOS Dependencies
- name: Install macOS Dependencies
shell: bash -l {0}
if: runner.os == 'macOS'
run: |
Expand Down Expand Up @@ -64,6 +64,13 @@ jobs:
name: unit-test-results-${{ matrix.os }}-${{ matrix.python-version }}
path: pytest.xml

- name: Run Examples
continue-on-error: true
shell: bash -l {0}
run: |
python -m pip install .
python pysap/test/test_examples.py

- name: Check Distribution
shell: bash -l {0}
run: |
Expand Down Expand Up @@ -98,7 +105,7 @@ jobs:
python-version: ${{ matrix.python-version }}
auto-activate-base: false

- name: Install MacOS Dependencies
- name: Install macOS Dependencies
shell: bash -l {0}
if: runner.os == 'macOS'
run: |
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*.log
*~
.coverage
.*

# Folders #
###########
Expand Down
112 changes: 0 additions & 112 deletions .travis.yml

This file was deleted.

26 changes: 13 additions & 13 deletions pysap/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Module current version
version_major = 0
version_minor = 0
version_micro = 4
version_micro = 5

# Expected by setup.py: string of form "X.Y.Z"
__version__ = "{0}.{1}.{2}".format(version_major, version_minor, version_micro)
Expand Down Expand Up @@ -67,20 +67,20 @@
VERSION = __version__
PROVIDES = ["pysap"]
REQUIRES = [
"scipy>=1.3.0",
"numpy>=1.16.4",
"matplotlib>=3.0.0",
"astropy>=3.0.0",
"nibabel>=2.3.2",
"pyqtgraph>=0.10.0",
"progressbar2>=3.34.3",
"modopt>=1.4.0",
"scikit-learn>=0.19.1",
"PyWavelets>=1.0.0"
"scipy==1.5.4",
"numpy==1.19.5",
"matplotlib==3.3.4",
"astropy==4.1",
"nibabel==3.2.1",
"pyqtgraph==0.11.1",
"progressbar2==3.53.1",
"modopt==1.5.0",
"scikit-learn==0.24.1",
"PyWavelets==1.1.1"
]
PREINSTALL_REQUIRES = [
"pybind11>=2.3.0",
"pyqt5>=5.12.2"
"pybind11==2.6.2",
"pyqt5==5.15.4"
]
EXTRA_REQUIRES = {
"gui": {
Expand Down
21 changes: 21 additions & 0 deletions pysap/test/test_examples.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import os
import subprocess

currentdir = os.path.dirname(__file__)
examplesdir = os.path.join(
currentdir, os.path.join(os.pardir, os.pardir), 'examples'
)

example_files = []
for root, dirs, files in os.walk(examplesdir):
for basneame in files:
if basneame.endswith('.py'):
example_files.append(os.path.abspath(
os.path.join(root, basneame)
))
print('"{0}" examples found!'.format(len(example_files)))

for path in example_files:
print('-- ', path)
cmd = ['python3', path]
subprocess.check_call(cmd, env=os.environ)
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ verbosity=2
nologcapture=0
cover-package=pysap
with-coverage=1
ignore-files=test_examples.py

[build_sphinx]
source-dir=doc
Expand All @@ -15,4 +16,3 @@ repository=http://pypi.python.org/pypi

[metadata]
description-file = README.rst