Skip to content

Commit

Permalink
fixed requests requirement issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RaSan147 committed Feb 19, 2023
1 parent 922110b commit dd874fe
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# Version 0.6.5
# Version 0.6.6
## Client-side Changes:
* Nothing to notice
## Server-side Changes:
* Nothing to notice
## Fixes:
* Added requests in requirements


# Version 0.6.6
## Client-side Changes:
* Nothing to notice
## Server-side Changes:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.6
0.6.7
10 changes: 10 additions & 0 deletions dev_src/pyroboxCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,16 @@ def return_file(self, path, filename=None, download=False):

# if f and not f.closed(): f.close()
raise

def send_file(self, path, filename=None, download=False):
'''sends the head and file to client'''
f = self.return_file(path, filename, download)
if self.command == "HEAD":
return # to avoid sending file on get request
try:
self.copyfile(f, self.wfile)
finally:
f.close()



Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pyrobox
version = 0.6.6
version = 0.6.7
authors = Rasan
author_email= wwwqweasd147@gmail.com
description = Personal DropBox for Private Network
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
package_dir={"pyrobox": "src",},
install_requires=[
'natsort',
"send2trash"
"send2trash",
"requests",
],
entry_points='''
[console_scripts]
Expand Down

0 comments on commit dd874fe

Please sign in to comment.