python_check_updates

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 13 Imported by: 0

README

Python Check Updates

PCU

Find the latest version of your requirements.txt current dependency package.

Usage

Show any new dependencies for the project in the current directory:

$ pcu
Checking /opt/requirements_test.txt
11 / 11 [------------] 100.00% 1 p/s
pytest            →     6.1.2
pytest-cov        →    2.10.1
pytest-httpbin    →     1.0.0
pytest-mock       →     3.3.1
httpbin           →     0.7.0
wheel             →    0.35.1
alembic           →     1.4.3
appnope           →     0.1.0
astroid           →     2.4.2
attrs             →    20.3.0
backcall          →     0.2.0

Done in  3 s.

Options

-f, --file                   Specify the file name of the check dependency
 package, default 'requirements.txt'
-v, --version                output the version number
-h, --help                   display help for command

Example

$ pcu -f=requirements_test.txt

$ pcu -v

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EchoPrintVersion

func EchoPrintVersion(pkgList []PackageInfo)

Types

type PackageInfo

type PackageInfo struct {
	Name       string
	NewVersion string
	OldVersion string
}

func GetNewVersion

func GetNewVersion(pkgList []PackageInfo) []PackageInfo

func ReadRequirements

func ReadRequirements(fileName string) []PackageInfo

ReadRequirements("requirements.txt")

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL