Skip to content

Commit 31b814e

Browse files
authored
Merge pull request #467 from pepkit/dev
Release 0.40.0
2 parents d4cfc63 + a9f3fb4 commit 31b814e

19 files changed

+1899
-198
lines changed

.github/workflows/run-pytest.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on:
44
push:
55
branches: [dev]
66
pull_request:
7-
branches: [master]
7+
branches: [master, dev]
88

99
jobs:
1010
pytest:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
python-version: ["3.8", "3.9", "3.10"]
14+
python-version: ["3.8", "3.12"]
1515
os: [ubuntu-20.04]
1616

1717
steps:
@@ -22,10 +22,10 @@ jobs:
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

25-
- name: Install dev dependancies
25+
- name: Install dev dependencies
2626
run: if [ -f requirements/requirements-dev.txt ]; then pip install -r requirements/requirements-dev.txt; fi
2727

28-
- name: Install test dependancies
28+
- name: Install test dependencies
2929
run: if [ -f requirements/requirements-test.txt ]; then pip install -r requirements/requirements-test.txt; fi
3030

3131
- name: Install package

docs/changelog.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format.
44

5+
## [0.40.0] -- 2023-XX-XX
6+
7+
**This version introduced backwards-incompatible changes.**
8+
9+
### Changed
10+
- Replaced `attmap` with `MutableMapping` (which removes some attributes)
11+
- Replaced OrderedDict with dict
12+
- Deprecated support for Python versions <= 3.7
13+
14+
_Due to the changes mentioned above, a few functionalities may be disabled. For example, the `name` and `description` project properties can no longer be accessed with `getitem`; use the `getattr` syntax instead_
15+
16+
### Added
17+
- Constructor methods: `Project.from_dict`, `Project.from_pandas`, `Project.from_sample_yaml`, `Project.from_pep_config`
18+
19+
520
## [0.35.7] -- 2023-07-19
621
### Fixed
722
- incorrect setting of sample and subsample indexes using from_dict function (#452)
@@ -17,6 +32,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1732
### Changed
1833
- Reduced the number of items returned in the to_dict(extended=True) method to 3, with the name and description now stored in the config key.
1934

35+
2036
## [0.35.5] -- 2023-03-27
2137
### Fixed
2238
- A [bug](https://github.com/pepkit/peppy/issues/435) with custom sample ids
@@ -33,8 +49,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
3349

3450
## [0.35.2] -- 2022-09-13
3551
### Fixed
36-
3752
- Returning `NaN` value within `to_dict` method was fixed and method now returns `None` instead
53+
3854
## [0.35.1] -- 2022-09-07
3955
### Changed
4056
- Organization of test files. Separated unittests from smoketests.
@@ -67,7 +83,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
6783
### Changed
6884

6985
- Way of initialization project from dictionary. Now it's possible as follows: `Project().from_dict()`
70-
-
86+
7187
### Fixed
7288

7389
- Fix error that was raised when duplicated sample in `sample_table` had different read types (single-end mixed with paired-end).

docs/hello-world.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ project = peppy.Project("example_basic/project_config.yaml") # instantiate in-me
4040
samples = project.samples # grab the list of Sample objects defined in this Project
4141

4242
# Find the input file for the first sample in the project
43-
samples[0].file
43+
samples[0]["file"]
4444
```
4545

4646
That's it! You've got `peppy` running on an example project.

0 commit comments

Comments
 (0)