Skip to content

elifesciences/update-python-dependencies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

update python dependencies

A bash script for Python projects using Pipenv that will update all dependencies or a single dependency.

requisites

  • Python project
  • Pipenv file
  • requirements.txt file

Note: Python projects that already have a version of the update-dependencies.sh script that must also support single dependency updates can replace their script with this:

#!/bin/bash
bash <( curl "https://raw.githubusercontent.com/elifesciences/update-python-dependencies/master/update-dependencies.sh" ) $@

usage

update all dependencies:

./update-dependencies.sh

update single dependency

./update-dependencies.sh <name> <version> [lock-constraint]

For example, to update elife-tools to version 0.15.0 you would do:

./update-dependencies.sh elifetools 0.15.0

The optional lock-constraint is either "semver" (default) or "exact".

Using the default lock-constraint and the above example, the updated Pipfile will have:

elifetools = "~=0.15.0"

If lock-constraint is "exact", then the updated Pipfile will have:

elifetools = "==0.15.0"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages