Skip to content

Commit

Permalink
💚 - bug fixes
Browse files Browse the repository at this point in the history
* Update badges in README. Fixes #20
* Fix error in pyOSinfo
* Bumped internal script versions to match current
* Added __main__ to pip-search
* Added screenshot of pip-search using regex

Changes:
	modified:   README.md
	modified:   __init__.py
	new file:   docs/screen3.png
	modified:   pip-date.py
	modified:   pip-search.py
	modified:   pyOSinfo.py
  • Loading branch information
E3V3A committed Jan 24, 2022
1 parent 03a4594 commit a4bc930
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 22 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ Example Output:

![Full](./docs/screen2.png)


Using `pip-search <RegEx>`:

![Full](./docs/screen3.png)

---

**Q:** *What does **`pip-date`** do?*
Expand Down Expand Up @@ -233,7 +238,7 @@ Feel free to fork, break, fix and contribute. Enjoy!

#### Additional Badges

[![build status][11]][12] [![Codacy Badge][13]][14] [![codecov][15]][16]
[![build status][11]][12] [![codecov][13]][14]

---

Expand All @@ -246,10 +251,8 @@ A license to :sparkling_heart:!

[11]: https://ci.appveyor.com/api/projects/status/github/pip-date/pip-date?branch=master&svg=true
[12]: https://ci.appveyor.com/project/pip-date/pip-date
[13]: https://api.codacy.com/project/badge/Grade/176ceaabe43d4113b535f2fbd0487a9e
[14]: https://www.codacy.com/app/E3V3A/pip-date?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=E3V3A/pip-date&amp;utm_campaign=Badge_Grade
[15]: https://codecov.io/gh/pip-date/pip-date/branch/master/graph/badge.svg
[16]: https://codecov.io/gh/pip-date/pip-date
[13]: https://codecov.io/gh/E3V3A/pip-date/branch/master/graph/badge.svg?token=wHBDKVmtPk
[14]: https://codecov.io/gh/pip-date/pip-date

[21]: https://img.shields.io/github/license/E3V3A/pip-date.svg
[22]: https://github.com/E3V3A/pip-date/blob/master/LICENSE.txt
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name = "pip-date"
__version__ = "1.0.3"
__version__ = "1.0.5"
Binary file added docs/screen3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions pip-date.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
#----------------------------------------------------------------------
# Author: E:V:A
# Date: 2018-02-15
# Version: 1.0.4
# Change: 2022-01-24
# Version: 1.0.5
# License: GPLv3
# URL: https://github.com/E3V3A/pip-date/
# Description Show the install date of all pip-installed python3 packages
Expand Down Expand Up @@ -50,7 +51,7 @@
__author__ = "E:V:A (E3V3A)"
__copyright__ = "GPLv3 2022"
#__credits__ = ["https://github.com/E3V3A/pip-date/"]
__version__ = '1.0.4'
__version__ = '1.0.5'

#----------------------------------------------------------
# OS Check-1
Expand Down
24 changes: 14 additions & 10 deletions pip-search.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#----------------------------------------------------------------------
# File Name : pip-search.py
# Author : E:V:A
# Last Modified : 2022-01-23
# Version : 1.0.2
# Last Modified : 2022-01-24
# Version : 1.0.3
# License : GPLv3
# URL : https://github.com/E3V3A/pip-date
# Description : Getting a list of pip packages matching a string
Expand Down Expand Up @@ -41,7 +41,7 @@

__author__ = "E:V:A (E3V3A)"
__copyright__ = "GPLv3 2022"
__version__ = '1.0.2'
__version__ = '1.0.3'

debug = 0
showline = ' '+'-'*60
Expand Down Expand Up @@ -176,16 +176,20 @@ def print_matches(name_list):
# Main
#----------------------------------------------------------------------

print_warn()
def main_func():
print_warn()

name_list = load_list(filename)
if not (name_list):
name_list = download_pip_list()
save_list(filename, name_list)
name_list = load_list(filename)
if not (name_list):
name_list = download_pip_list()
save_list(filename, name_list)

print_matches(name_list)
print('ok\n')
print_matches(name_list)
print('ok\n')

if __name__ == "__main__":
main_func()
sys.exit(0)

#----------------------------------------------------------------------
# EOF
Expand Down
15 changes: 11 additions & 4 deletions pyOSinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# File Name : pyOSinfo
# Author : E:V:A
# Date : 2018-02-08
# Last Modified : 2022-01-23
# Version : 1.0.2
# Last Modified : 2022-01-24
# Version : 1.0.5
# License : GPLv3
# URL : https://github.com/E3V3A/pip-date/
# Description : Show some system, os and platform information as seen by python3
Expand All @@ -21,7 +21,7 @@
import os, sys, platform, site
from os.path import join

__version__ = '1.0.2'
__version__ = '1.0.5'

TRUECOLOR = "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m"

Expand Down Expand Up @@ -63,6 +63,13 @@ def hasUname():
print('\tarchitecture (2): (%s,%s)' % platform.architecture() ) # (bits, linkage)
#print('\twin32_ver (4): (%s,%s,%s,%s)' % platform.win32_ver() ) # (release, version, csd, ptype)

# python -c "import os, sys; print(sys.implementation);"
# (_multiarch='x86_64-cygwin', cache_tag='cpython-38', hexversion=50856116, name='cpython', version=sys.version_info(major=3, minor=8, micro=0, releaselevel='beta', serial=4))
# (name='cpython', cache_tag='cpython-310', version=sys.version_info(major=3, minor=10, micro=0, releaselevel='final', serial=0), hexversion=50987248)
print('\nsys:')
#print('\timplementation (7) : {}'.format(sys.implementation()) ) #
print('\timplementation (7) : WIP') #

print("\nsite:")
print("\tgetusersitepackages: %s" % site.getusersitepackages())
i=0
Expand All @@ -72,7 +79,7 @@ def hasUname():
print()
print("\tPREFIXES (2) : %s" % site.PREFIXES)
print("\tUSER_SITE : %s" % site.USER_SITE)
print("\tUSER_BASE : %s" % site.USER_BASE)
print("\tUSER_BASE : %s" % site.USER_BASE)

print('\nsys.path:\n\t%s\n' % ('\n\t'.join(sys.path)) )

Expand Down

0 comments on commit a4bc930

Please sign in to comment.