Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

a script for updating a Pipfile.lock and generating a requirements.txt

Notifications You must be signed in to change notification settings

lsh-0/update-python-dependencies

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 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

a script for updating a Pipfile.lock and generating a requirements.txt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%