We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5db250e commit 52966deCopy full SHA for 52966de
setup.py
@@ -7,13 +7,12 @@
7
8
# Always prefer setuptools over distutils
9
from setuptools import setup, find_packages
10
-from os import path
+import pathlib
11
12
-here = path.abspath(path.dirname(__file__))
+here = pathlib.Path(__file__).parent.resolve()
13
14
# Get the long description from the README file
15
-with open(path.join(here, 'README.md'), encoding='utf-8') as f:
16
- long_description = f.read()
+long_description = (here / 'README.md').read_text(encoding='utf-8')
17
18
# Arguments marked as "Required" below must be included for upload to PyPI.
19
# Fields marked as "Optional" may be commented out.
0 commit comments