Skip to content

Commit

Permalink
Add MANIFEST.in to include helpers directory
Browse files Browse the repository at this point in the history
Rename tunnel.py to expose.py
  • Loading branch information
dormant-user committed Jan 3, 2022
1 parent a73ba75 commit 17cb46c
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Change Log
==========

0.1.9 (01/03/2022)
------------------
- Add MANIFEST.in to include helpers directory
- Rename tunnel.py to expose.py

0.1.8 (01/03/2022)
------------------
- Bump version
Expand Down
5 changes: 5 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
recursive-include expose *
recursive-exclude venv *
recursive-exclude docs *
recursive-exclude doc_generator *
exclude gen_docs.sh .gitignore .pre-commit-config.yaml
1 change: 0 additions & 1 deletion expose/helpers/nginx_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from inspect import currentframe, getframeinfo, getouterframes, stack

import paramiko

from helpers.auxiliary import sleeper

DATETIME_FORMAT = '%b-%d-%Y %I:%M:%S %p'
Expand Down
7 changes: 3 additions & 4 deletions expose/expose.py → expose/tunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
from botocore.exceptions import ClientError
from click import argument, command, pass_context, secho
from dotenv import load_dotenv
from psutil import Process
from urllib3 import disable_warnings
from urllib3.exceptions import InsecureRequestWarning

from helpers.auxiliary import get_public_ip, sleeper, time_converter
from helpers.nginx_server import DATETIME_FORMAT, prefix, run_interactive_ssh
from helpers.route_53 import change_record_set
from psutil import Process
from urllib3 import disable_warnings
from urllib3.exceptions import InsecureRequestWarning

disable_warnings(InsecureRequestWarning) # Disable warnings for self-signed certificates

Expand Down
10 changes: 10 additions & 0 deletions gen_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
# 'set -e' stops the execution of a script if a command or pipeline has an error.
# This is the opposite of the default shell behaviour, which is to ignore errors in scripts.
set -e

branch="$(git rev-parse --abbrev-ref HEAD)"
checker=$(git diff --name-only `git merge-base $branch HEAD`)
if [[ ! $checker =~ "version.py" ]]; then
echo -e "\n********************************************************************ERROR********************************************************************"
echo "Docs generation was ABORTED since module version was not bumped!! Changelog generator requires the commit number and package version in sync."
echo -e "*********************************************************************************************************************************************\n"
exit 255
fi

rm -rf docs
mkdir docs
[ ! -d "doc_generator/_static" ] && mkdir doc_generator/_static # creates a _static folder if unavailable
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version_info = (0, 1, 8)
version_info = (0, 1, 9)

0 comments on commit 17cb46c

Please sign in to comment.