Skip to content

Commit

Permalink
Fix setup.py pylinting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjameskennedy committed Jan 17, 2024
1 parent ca04dae commit c9b8876
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""setup.py for pip installation of jasentool"""

import re
import sys

Expand All @@ -9,10 +11,10 @@
'Try runnning: python -m ensurepip'
)

with open("README.md", 'r') as fin:
with open("README.md", 'r', encoding="utf-8") as fin:
long_description = fin.read()

with open("jasentool/__init__.py", 'r') as fin:
with open("jasentool/__init__.py", 'r', encoding="utf-8") as fin:
version_line_regex = re.compile(r'^\s*__version__\s*=\s*[\'"]([^\'"]+)[\'"]')
for line in fin:
match = version_line_regex.match(line)
Expand All @@ -33,6 +35,6 @@
],
install_requires=["pymongo", "openpyxl", "biopython"],
entry_points={"console_scripts": ["jasentool=jasentool.__main__:main"]},
packages=find_packages(exclude=("tests")),
packages=find_packages(exclude="tests"),
package_data={"jasentool": ["data/dbs/*"]},
)
)

0 comments on commit c9b8876

Please sign in to comment.