Skip to content

Commit

Permalink
Merge branch 'white/master' of gitlab.com:faradaysec/faraday into whi…
Browse files Browse the repository at this point in the history
…te/master
  • Loading branch information
EricHorvat committed Jul 2, 2021
2 parents 589eeff + 8aa735a commit b57d086
Show file tree
Hide file tree
Showing 13 changed files with 75 additions and 15 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG/3.16.1/community.md
@@ -0,0 +1,2 @@
* MOD only show settings of this version in faraday-manage settings
* FIX update minimum version of click dependency
1 change: 1 addition & 0 deletions CHANGELOG/3.16.1/date.md
@@ -0,0 +1 @@
Jul 2nd, 2021
13 changes: 11 additions & 2 deletions CHANGELOG/README.md
Expand Up @@ -9,8 +9,9 @@ The **RELEASE.md** generation process is as follows:
* _header.md_, md format lines at the beginning of the release file
* _footer.md_, md format lines at the ending of the release file
* _changelog.py_, a python file, which will generate the release file
* The python file process is:
* Iterate over all the version folder in sorted order, joining all .md files in only one ( _white/pink/black.md_ ) in the proper version folder.
* The python file process is:
* Iterate over all the version folder in sorted order, joining all .json files in only one .md (
_community/prof/corp.md_ ) in the proper version folder.
* Generate the release file as header/v0file.md/.../vnfile.md/footer
* The release step-by-step generation should be:
1. Checkout white/master and go to CHANGELOG/
Expand All @@ -30,3 +31,11 @@ The **RELEASE.md** generation process is as follows:
1. Replace _old **RELEASE.md**_ with new generated file
1. Git add CHANGELOG/
1. Commit & push

As for faraday 3.15.0, the changelog file changed to .json format with this structure:
```json
{
"level": "community|prof|corp",
"md": "<changelog text>"
}
```
5 changes: 5 additions & 0 deletions CHANGELOG/RELEASE.md
Expand Up @@ -2,6 +2,11 @@ New features in the latest update
=====================================


3.16.1 [Jul 2nd, 2021]:
---
* MOD only show settings of this version in faraday-manage settings
* FIX update minimum version of click dependency

3.16.0 [Jun 29th, 2021]:
---
* BREAKING CHANGE: API V2 discontinued
Expand Down
5 changes: 5 additions & 0 deletions RELEASE.md
Expand Up @@ -2,6 +2,11 @@ New features in the latest update
=====================================


3.16.1 [Jul 2nd, 2021]:
---
* MOD only show settings of this version in faraday-manage settings
* FIX update minimum version of click dependency

3.16.0 [Jun 29th, 2021]:
---
* BREAKING CHANGE: API V2 discontinued
Expand Down
2 changes: 1 addition & 1 deletion faraday/__init__.py
Expand Up @@ -2,5 +2,5 @@
# Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/)
# See the file 'doc/LICENSE' for the license information

__version__ = '3.16.0'
__version__ = '3.16.1'
__license_version__ = __version__
8 changes: 6 additions & 2 deletions faraday/settings/__init__.py
Expand Up @@ -13,5 +13,9 @@ def get_all_settings() -> List:


def load_settings():
import faraday.settings.smtp # pylint: disable=import-outside-toplevel
import faraday.settings.dashboard # pylint: disable=import-outside-toplevel # noqa: F401
from faraday.settings.smtp import init_setting as smtp_init # pylint: disable=import-outside-toplevel
smtp_init()
from faraday.settings.dashboard import init_setting as dashboard_init # pylint: disable=import-outside-toplevel
dashboard_init()
from faraday.settings.reports import init_setting as reports_init # pylint: disable=import-outside-toplevel
reports_init()
3 changes: 0 additions & 3 deletions faraday/settings/dashboard.py
Expand Up @@ -24,6 +24,3 @@ def get_default_config(self):

def init_setting():
DashboardSettings()


init_setting()
3 changes: 0 additions & 3 deletions faraday/settings/reports.py
Expand Up @@ -35,6 +35,3 @@ def get_default_config(self):

def init_setting():
ReportsSettings()


init_setting()
3 changes: 0 additions & 3 deletions faraday/settings/smtp.py
Expand Up @@ -44,6 +44,3 @@ def get_default_config(self):

def init_setting():
SMTPSettings()


init_setting()
5 changes: 5 additions & 0 deletions pynixify/nixpkgs.nix
Expand Up @@ -72,6 +72,11 @@ let
./packages/bleach
{ };

click =
self.callPackage
./packages/click
{ };

faraday-agent-parameters-types =
self.callPackage
./packages/faraday-agent-parameters-types
Expand Down
38 changes: 38 additions & 0 deletions pynixify/packages/click/default.nix
@@ -0,0 +1,38 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.

{ buildPythonPackage
, fetchPypi
, importlib-metadata
, lib
}:

buildPythonPackage rec {
pname =
"click";
version =
"8.0.1";

src =
fetchPypi {
inherit
pname
version;
sha256 =
"0ymdyf37acq4qxh038q0xx44qgj6y2kf0jd0ivvix6qij88w214c";
};

propagatedBuildInputs =
[
importlib-metadata
];

# TODO FIXME
doCheck =
false;

meta =
with lib;
{ };
}
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -3,7 +3,7 @@ autobahn>=17.10.1
alembic>=0.9.9
bcrypt>=3.1.4
colorama>=0.3.9
click>=5.1
click>=8.0.1
flask>=1.1
Flask-SQLAlchemy>=2.3.1
flask-classful>=0.14
Expand Down

0 comments on commit b57d086

Please sign in to comment.