Skip to content
Commits on Source (10)
......@@ -123,3 +123,4 @@ e2e5c91996d68c248416c90127347233 ./slpkg-3.3.6.tar.gz
2f62cfc87b130310490ff0b76eb17b74 ./slpkg-3.4.3.tar.gz
deb10f0e2597ef8b201c039af2bd9c36 ./slpkg-3.7.0.tar.gz
04a0e87c5ed0a70b4aa9682b9d2a8cc9 ./slpkg-3.7.1.tar.gz
6740e8213bbaa8f8d674144f61954366 ./slpkg-3.7.2.tar.gz
3.7.3 - 11/12/2019
FIxed:
- Bugfix: Slackware-current from Alien Bob 20191130 #119
- Improving call class methods for reposiory updating
- Replace requests dependency with urllib3
- Code style to python3 compatibility
3.7.2 - 06/12/2019
Fixed:
- Bugfix handle requests raise ConnectionError
......
# slpkg 3.7.2
# slpkg 3.7.3
Slpkg is a powerful software package manager that installs, updates, and removes packages on
[Slackware](http://www.slackware.com/) based systems. It automatically computes dependencies and
......@@ -16,7 +16,7 @@ display warning messages, etc.
#### Asciicast:
[<img src="https://asciinema.org/a/3uFNAOX8o16AmKKJDIvdezPBa" width="250"/>](https://asciinema.org/a/3uFNAOX8o16AmKKJDIvdezPBa)
[<img src="https://asciinema.org/a/3uFNAOX8o16AmKKJDIvdezPBa" width="250">](https://asciinema.org/a/3uFNAOX8o16AmKKJDIvdezPBa)
##### Copyright
......
......@@ -11,4 +11,4 @@
# perl 5 language and graph-easy >= 0.75 (drawing dependencies ascii diagram)
# python3-pythondialog >= 3.5.0 (Python interface to the UNIX dialog utility)
python-requests >= 2.22.0
urllib3 >= 1.25.7
......@@ -37,7 +37,7 @@ except ImportError:
docs_requires = []
tests_requires = []
install_requires = [
"requests>=2.22.0"
"urllib3>=1.25.7"
]
optional_requires = [
"pythondialog>=3.5.0",
......
......@@ -74,11 +74,11 @@ def select_slack_release(slack_rel):
return slack_rel
class MetaData(object):
class MetaData:
__all__ = "slpkg"
__author__ = "dslackw"
__version_info__ = (3, 7, 2)
__version_info__ = (3, 7, 3)
__version__ = "{0}.{1}.{2}".format(*__version_info__)
__license__ = "GNU General Public License v3 (GPLv3)"
__email__ = "d.zlatanidis@gmail.com"
......
......@@ -30,7 +30,7 @@ from slpkg.__metadata__ import MetaData as _meta_
from slpkg.pkg.manager import PackageManager
class Auto(object):
class Auto:
"""Select Slackware command to install packages
"""
def __init__(self, packages):
......
......@@ -30,7 +30,7 @@ from slpkg.__metadata__ import MetaData as _meta_
from slpkg.binary.greps import Requires
class Dependencies(object):
class Dependencies:
"""Resolving binary dependencies
"""
def __init__(self, repo, black):
......
......@@ -144,7 +144,7 @@ def ktown_filter(name, location, size, unsize):
return [fname, flocation, fsize, funsize]
class Requires(object):
class Requires:
def __init__(self, name, repo):
self.name = name
......
......@@ -50,7 +50,7 @@ from slpkg.binary.dependency import Dependencies
from slpkg.slack.slack_version import slack_ver
class BinaryInstall(object):
class BinaryInstall:
"""Install binaries packages with all dependencies from
repository
"""
......
......@@ -30,7 +30,7 @@ from slpkg.slack.mirrors import mirrors
from slpkg.slack.slack_version import slack_ver
class RepoInit(object):
class RepoInit:
"""Return PACKAGES.TXT and mirror by repository
"""
def __init__(self, repo):
......
......@@ -29,7 +29,7 @@ from slpkg.splitting import split_package
from slpkg.__metadata__ import MetaData as _meta_
class BlackList(object):
class BlackList:
"""Blacklist class to add, remove or listed packages
in blacklist file."""
def __init__(self):
......
......@@ -28,7 +28,7 @@ from slpkg.init import Initialization
from slpkg.__metadata__ import MetaData as _meta_
class Updates(object):
class Updates:
"""Checking for news in ChangeLog.txt
"""
def __init__(self, repo):
......
......@@ -30,7 +30,7 @@ from slpkg.utils import Utils
from slpkg.__metadata__ import MetaData as _meta_
class Config(object):
class Config:
"""Print or edit slpkg configuration file
"""
def __init__(self):
......
......@@ -29,7 +29,7 @@ from slpkg.__metadata__ import MetaData as _meta_
from slpkg.sbo.greps import SBoGrep
class PkgDesc(object):
class PkgDesc:
"""Print package description from the repository
"""
def __init__(self, name, repo, paint):
......
......@@ -27,7 +27,7 @@ from __future__ import unicode_literals
import os
class DialogUtil(object):
class DialogUtil:
"""Create dialog checklist
"""
def __init__(self, *args):
......
......@@ -32,7 +32,7 @@ from slpkg.slack.slack_version import slack_ver
from slpkg.__metadata__ import MetaData as _meta_
class Download(object):
class Download:
"""Downloader manager. Slpkg use wget by default but support
curl, aria2 and httpie
"""
......
......@@ -23,23 +23,23 @@
import os
import requests
import urllib3
class FileSize(object):
class FileSize:
"""Check local or remote file size
"""
def __init__(self, registry):
self.registry = registry
self.http = urllib3.PoolManager()
def server(self):
"""Returns the size of remote files
"""
try:
r = requests.head(self.registry)
r = self.http.request("GET", self.registry)
return int(r.headers["Content-Length"])
except (requests.exceptions.Timeout,
requests.exceptions.ConnectionError):
except urllib3.exceptions.NewConnectionError:
return " "
def local(self):
......
......@@ -26,7 +26,7 @@ import os
import subprocess
class Graph(object):
class Graph:
"""Drawing dependencies diagram
"""
def __init__(self, image):
......
......@@ -30,7 +30,7 @@ from slpkg.__metadata__ import MetaData as _meta_
from slpkg.pkg.find import find_package
class PackageHealth(object):
class PackageHealth:
"""Health check installed packages
"""
def __init__(self, mode):
......