Skip to content

Commit

Permalink
Merge pull request #255 from labgem/support_py3.12
Browse files Browse the repository at this point in the history
Add support for python 3.11 and 3.12
  • Loading branch information
axbazin authored Jul 25, 2024
2 parents e10b28a + dc8e439 commit 019342b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-13']
python-version: ['3.8', '3.10']

python-version: ['3.8', '3.12']
steps:

# Get number of cpu available on the current runner
Expand Down
4 changes: 2 additions & 2 deletions docs/user/install.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Installation

```{warning}
Supported python version are 3.8, 3.9 and 3.10
```{info}
Supported python version are 3.8, 3.9, 3.10, 3.11 and 3.12
```

## Installing PPanGGOLiN with Conda (recommended)
Expand Down
2 changes: 1 addition & 1 deletion ppanggolin/nem/rarefaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def make_rarefaction_curve(pangenome: Pangenome, output: Path, tmpdir: Path = No
all_samples = []
for i in range(min_sampling, max_sampling): # each point
for _ in range(depth): # number of samples per points
all_samples.append(set(random.sample(set(pangenome.organisms), i + 1)))
all_samples.append(set(random.sample(list(pangenome.organisms), i + 1)))
logging.getLogger("PPanGGOLiN").info(f"Done sampling genomes in the pan, there are {len(all_samples)} samples")
samp_nb_per_part = []

Expand Down
4 changes: 2 additions & 2 deletions ppanggolin_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ dependencies:
- scipy=1
- plotly=5
- gmpy2=2
- pandas=2.0
- pandas=2
- colorlover=0.3
- numpy=1.24
- numpy=1
- bokeh=3
# Tool that are not in python
- infernal=1
Expand Down

0 comments on commit 019342b

Please sign in to comment.