python_check_updates

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 18 Imported by: 0

README

This project is pure entertainment.

这个项目纯碎出于娱乐, pip 是更好的包管理工具。

Python Check Updates

PCU

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

Installation

Deno ships as a single executable with no dependencies. You can install it using the installers below, or download a release binary from the releases page.

Shell (Mac, Linux):

curl -fsSL https://raw.githubusercontent.com/xjh22222228/python-check-updates/main/install.sh | bash

Usage

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

$ pcu
Checking /opt/requirements_test.txt
13 / 13 [--------------------------] 100.00% 1 p/s
 pytest-cov                                       →   2.10.1
 pytest-mock                           ==2.0.0    →    3.3.1
 httpbin                               ==0.7.0    →    0.7.0
 pytest-httpbin                           <1.0    →    1.0.0
 MySQL-python                          ==1.2.5    →    1.2.5
 aliyun-python-sdk-cdn                 ==2.3.1    →    3.5.8
 XlsxWriter                            ==0.9.3    →    1.3.7
 aliyun-python-sdk-core                ==2.3.2    →  2.13.29
 wheel                                            →   0.35.1
 service-identity                     ==16.0.0    →   18.1.0
 pytest                       >=2.8.0,<=3.10.1    →    6.1.2
 zope.interface                        ==4.3.2    →    5.2.0

Done in  1 s.

Options

-f, --file                   Specify the file name of the check dependency
 package, default 'requirements.txt'
-u, --upgrade                Upgrade python-check-updates
-v, --version                Output the version number
-c, --check                  Check the latest version
-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 CheckLastVersion added in v1.1.0

func CheckLastVersion() string

func EchoPrintVersion

func EchoPrintVersion(pkgList []PackageInfo)

func Upgrade added in v1.2.0

func Upgrade()

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