-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: changed code to be compliant with black
Major code change affecting the way the code is formatted. New year, 2024!
- Loading branch information
Showing
82 changed files
with
3,385 additions
and
4,233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ easypay.shelve* | |
|
||
/.vscode/settings.json | ||
|
||
/.venv | ||
|
||
/dist | ||
/build | ||
/src/budy.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# -*- coding: utf-8 -*- | ||
|
||
# Hive Budy | ||
# Copyright (c) 2008-2020 Hive Solutions Lda. | ||
# Copyright (c) 2008-2024 Hive Solutions Lda. | ||
# | ||
# This file is part of Hive Budy. | ||
# | ||
|
@@ -22,7 +22,7 @@ | |
__author__ = "João Magalhães <[email protected]>" | ||
""" The author(s) of the module """ | ||
|
||
__copyright__ = "Copyright (c) 2008-2020 Hive Solutions Lda." | ||
__copyright__ = "Copyright (c) 2008-2024 Hive Solutions Lda." | ||
""" The copyright for the module """ | ||
|
||
__license__ = "Apache License, Version 2.0" | ||
|
@@ -32,41 +32,35 @@ | |
import setuptools | ||
|
||
setuptools.setup( | ||
name = "budy", | ||
version = "0.8.10", | ||
author = "Hive Solutions Lda.", | ||
author_email = "[email protected]", | ||
description = "Budy E-commerce System", | ||
license = "Apache License, Version 2.0", | ||
keywords = "budy e-commerce engine web json", | ||
url = "http://budy.hive.pt", | ||
zip_safe = False, | ||
packages = [ | ||
name="budy", | ||
version="0.8.10", | ||
author="Hive Solutions Lda.", | ||
author_email="[email protected]", | ||
description="Budy E-commerce System", | ||
license="Apache License, Version 2.0", | ||
keywords="budy e-commerce engine web json", | ||
url="http://budy.hive.pt", | ||
zip_safe=False, | ||
packages=[ | ||
"budy", | ||
"budy.controllers", | ||
"budy.controllers.api", | ||
"budy.controllers.web", | ||
"budy.models", | ||
"budy.test" | ||
"budy.test", | ||
], | ||
test_suite = "budy.test", | ||
package_dir = { | ||
"" : os.path.normpath("src") | ||
}, | ||
package_data = { | ||
"budy" : [ | ||
test_suite="budy.test", | ||
package_dir={"": os.path.normpath("src")}, | ||
package_data={ | ||
"budy": [ | ||
"static/js/*.js", | ||
"templates/*.tpl", | ||
"templates/order/*.tpl", | ||
"templates/partials/*.tpl" | ||
"templates/partials/*.tpl", | ||
] | ||
}, | ||
install_requires = [ | ||
"appier", | ||
"appier-extras", | ||
"commons-py" | ||
], | ||
classifiers = [ | ||
install_requires=["appier", "appier-extras", "commons-py"], | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Topic :: Utilities", | ||
"License :: OSI Approved :: Apache Software License", | ||
|
@@ -81,8 +75,10 @@ | |
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7" | ||
"Programming Language :: Python :: 3.7", | ||
], | ||
long_description = open(os.path.join(os.path.dirname(__file__), "README.md"), "rb").read().decode("utf-8"), | ||
long_description_content_type = "text/markdown" | ||
long_description=open(os.path.join(os.path.dirname(__file__), "README.md"), "rb") | ||
.read() | ||
.decode("utf-8"), | ||
long_description_content_type="text/markdown", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# -*- coding: utf-8 -*- | ||
|
||
# Hive Budy | ||
# Copyright (c) 2008-2020 Hive Solutions Lda. | ||
# Copyright (c) 2008-2024 Hive Solutions Lda. | ||
# | ||
# This file is part of Hive Budy. | ||
# | ||
|
@@ -22,20 +22,22 @@ | |
__author__ = "João Magalhães <[email protected]>" | ||
""" The author(s) of the module """ | ||
|
||
__copyright__ = "Copyright (c) 2008-2020 Hive Solutions Lda." | ||
__copyright__ = "Copyright (c) 2008-2024 Hive Solutions Lda." | ||
""" The copyright for the module """ | ||
|
||
__license__ = "Apache License, Version 2.0" | ||
""" The license for the module """ | ||
|
||
import logging | ||
|
||
class Bot(object): | ||
|
||
class Bot(object): | ||
def __init__(self, *args, **kwargs): | ||
self.owner = kwargs.get("owner", None) | ||
|
||
@property | ||
def logger(self): | ||
if self.owner: return self.owner.logger | ||
else: return logging.getLogger() | ||
if self.owner: | ||
return self.owner.logger | ||
else: | ||
return logging.getLogger() |
Oops, something went wrong.