Giter Site home page Giter Site logo

update-python-dependencies's Introduction

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"

update-python-dependencies's People

Contributors

lsh-0 avatar

Watchers

Scott Aubrey avatar Nathan Lisgo avatar Dave avatar Daniel Ecer avatar Graham Nott avatar David Moulton avatar  avatar

Forkers

lsh-0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.