Skip to content

Commit

Permalink
Merge pull request #10 from lifewatch/dependencies
Browse files Browse the repository at this point in the history
Boosted dependencies to newer versions and dropped support for python <=3.7
  • Loading branch information
cparcerisas authored Aug 9, 2023
2 parents 08ad295 + 42b601b commit a9eb9b7
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci

on:
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
test:
strategy:
fail-fast: false
matrix:
python-versions: ["3.8", "3.9"]
os: [ ubuntu-20.04 ]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-versions }}

- name: Install dependencies
run: |
sudo apt-get install libsndfile1
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run unit tests
run: |
python -m unittest
2 changes: 1 addition & 1 deletion pyhydrophone/soundtrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def read_HFfolder(self, main_folder_path, zip_mode=False, include_dirs=False):
glob_str = '*.wav'
for file_name in main_folder_path.glob(glob_str):
clicks_file = self.read_HFclicks_file(file_name, zip_mode)
clicks = clicks.append(clicks_file)
clicks = pd.concat([clicks, clicks_file])
else:
if include_dirs:
for zipped_dir in main_folder_path.glob('*'):
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pandas==1.0.3
pandas==2.0.2
requests==2.31.0
scipy==1.10.0
soundfile==0.10.3.post1
scipy==1.9.3
soundfile==0.12.1
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers =

[options]
packages = find:
python_requires = >=3.6
python_requires = >=3.8

[options.packages.find]
where = pyhydrophone

0 comments on commit a9eb9b7

Please sign in to comment.