Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requirement.txt added #153

Open
wants to merge 4 commits into
base: feature/python3.8
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ typings/
# dotenv environment variables file
.env
.env.test
env
src/multi/__pycache__/

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand Down
6 changes: 6 additions & 0 deletions requirement.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
click==7.1.2
Flask==1.1.2
itsdangerous==1.1.0
Jinja2==2.11.3
MarkupSafe==1.1.1
Werkzeug==1.0.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the following requirements also:
Python >= v2.7.0 || v3.7.0
Node.js >= v0.10.0
Pip >= v9.0.1

Python packages: flask

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kashish121 could you tell me why this is required as pip and python is the outside dependencies means firstly then user will activate the virutalenv and then hit the python commands. @vinitshahdeo Let me know you thought also.

2 changes: 1 addition & 1 deletion src/single/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
def get_absolute_path(relative_path):
dir = os.path.dirname(os.path.abspath(__file__))
split_path = relative_path.split("/")
absolute_path = os.path.join(new, *split_path)
absolute_path = os.path.join(dir, *split_path)
return absolute_path

# Check what time the scan started
Expand Down
Binary file added src/static/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="background" style="background-color: #3b6978;">
<!-- <img src="images/office.jpg"> -->
</div>
<a href="#user"><img class="circle" src=""></a>
<a href="#user"><img class="circle" src="{{ url_for('static', filename = 'images/logo.png') }}"></a>
<a href="#name"><span class="white-text name" style="padding-bottom: 5%;" class="navtitle">Port
Scanner<br></span></a>
</div>
Expand Down