Skip to content

Commit

Permalink
fix boto3 version for faster pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
mzouink committed Feb 18, 2025
1 parent 302f4c4 commit 5fb69a0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dependencies = [
"pyyaml",
"scipy",
"upath",
"boto3",
"boto3==1.35.81",
"matplotlib",
"cellmap-schemas",
"funlib.persistence @ git+https://github.com/funkelab/funlib.persistence.git@ome-ngff",
Expand Down
26 changes: 26 additions & 0 deletions remove_all.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import os
import re

def remove_docstrings_from_file(file_path):
with open(file_path, 'r') as file:
content = file.read()

# Pattern to match single-line and multi-line docstrings
docstring_pattern = r'(""".*?"""|\'\'\'.*?\'\'\')'
updated_content = re.sub(docstring_pattern, '', content, flags=re.DOTALL)

with open(file_path, 'w') as file:
file.write(updated_content)

def process_directory(directory_path):
for root, _, files in os.walk(directory_path):
for file in files:
if file.endswith('.py'):
file_path = os.path.join(root, file)
print(f"Removing docstrings from {file_path}")
remove_docstrings_from_file(file_path)

if __name__ == "__main__":
directory_path = input("Enter the path to the directory: ")
process_directory(directory_path)

0 comments on commit 5fb69a0

Please sign in to comment.