Skip to content

Commit

Permalink
Use pathlib
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdelorenzo committed Jan 16, 2021
1 parent 1bf55f8 commit ae46d29
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions setup.py
Expand Up @@ -4,14 +4,8 @@
from setuptools import setup
from pathlib import Path

# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...

with open(os.path.join(os.path.dirname(__file__), 'README.md')) as file:
readme = file.read()

readme = Path("README.md").read_text()

requirements = [line
for line in Path('requirements.txt').read_text().split('\n')
Expand Down Expand Up @@ -45,7 +39,7 @@
include_package_data=True,
entry_points={
'console_scripts':
[f'{CMD} = screenshot.screencapture:run']
[f'{CMD} = screenshot.mac.capture:run']
},
#
# ## app nonsense
Expand Down

0 comments on commit ae46d29

Please sign in to comment.