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

v1.1.6 unpin python packages #212

Merged
merged 6 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Reference: common-changelog.org

## 1.1.6 - 2023-10-06

- Use latest minor versions of Python packages in auto-cite script.

## 1.1.5 - 2023-05-19

### Changes
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# citation metadata for the template itself

title: "Lab Website Template"
version: 1.1.5
date-released: 2023-05-19
version: 1.1.6
date-released: 2023-10-06
url: "https://github.com/greenelab/lab-website-template"
authors:
- family-names: "Rubinetti"
Expand Down
Binary file modified _cite/.cache/cache.db
Binary file not shown.
13 changes: 7 additions & 6 deletions _cite/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
manubot==0.5.5
PyYAML==6.0
diskcache==5.4.0
rich==12.6.0
python-dotenv==0.21.0
google-search-results==2.4.1
manubot==0.*
PyYAML==6.*
diskcache==5.*
rich==12.*
python-dotenv==0.*
google-search-results==2.*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I apologize if you already know this and have a good reason for specifying them as you have, but anyway...

What you have here will typically select the most recent minor version, but I could imagine a few reasons for keeping the explicit minor version around:

  • minor version changes can introduce new functions which you or another package you're using might rely on, and adding a new package with older dependencies could cause your existing versions to slip back to a prior minor release
  • it's helpful to know from looking at the file that you at least got it to work at the versions specified there

The ~= specifies that the version can be at or after the least significant field, i.e. ~=1.1.5 would allow anything >= 1.1.5 but <1.2.0 (i.e. all patches >= current), and ~=1.1 would allow anything >=1.1 but <2.0 (i.e. all minor versions >= current).

Suggested change
manubot==0.*
PyYAML==6.*
diskcache==5.*
rich==12.*
python-dotenv==0.*
google-search-results==2.*
manubot~=0.5
PyYAML~=6.0
diskcache~=5.4
rich~=12.6
python-dotenv~=0.21
google-search-results~=2.4

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good idea. I'm not sure if I'm using any functions from any of the previous minor versions, but it's better to be safe. I just wanted to make sure the user is always on the latest non-major version without having to update, and this will satisfy that.

I'm also going to take to opportunity to update to the latest versions of all of them, and test that the citation process still works.

Copy link
Collaborator Author

@vincerubinetti vincerubinetti Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tested greenelab.com locally with the new packages, both from scratch and with cached. Various orcid and id types (300+ citations), so probably the best stress test.

Only major version jump was for "rich", and their changelog doesn't mention any breaking changes that would affect us. dotenv has a major version upgrade, but apparently it drops support for python 3.7 and that's something I'd like to still provide.


22 changes: 22 additions & 0 deletions _data/citations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,28 @@
orcid: 0000-0002-4655-3773
plugin: orcid.py
file: orcid.yaml
- id: doi:10.1093/gigascience/giad047
title: Hetnet connectivity search provides rapid insights into how biomedical entities
are related
authors:
- Daniel S Himmelstein
- Michael Zietz
- Vincent Rubinetti
- Kyle Kloster
- Benjamin J Heil
- Faisal Alquaddoomi
- Dongbo Hu
- David N Nicholson
- Yun Hao
- Blair D Sullivan
- Michael W Nagle
- Casey S Greene
publisher: GigaScience
date: '2022-12-28'
link: https://doi.org/gsd85n
orcid: 0000-0002-4655-3773
plugin: orcid.py
file: orcid.yaml
- id: doi:10.1186/s13059-020-02021-3
title: Compressing gene expression data using multiple latent space dimensionalities
learns complementary biological representations
Expand Down