Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 20, 2020. It is now read-only.

Commit 7979a88

Browse files
committed
lint
1 parent 38bf7ab commit 7979a88

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
from setuptools import setup
22
import re
33

4+
45
def get_readme():
56
__version__, __minor_version__ = "0.0.dev0", "0.0"
67
# define __version__ and __minor_version__ from djrill/_version.py,
78
# but without importing from djrill (which would break setup)
89
with open("djrill/_version.py") as f:
9-
code = compile(f.read(), "djrill/_version.py", 'exec')
10+
code = compile(f.read(), "djrill/_version.py", "exec")
1011
exec(code)
1112

1213
def long_description_from_readme(rst):
1314
# In release branches, freeze some external links to refer to this X.Y version:
1415
if not "dev" in __version__:
15-
rst = re.sub(r'branch=master', 'branch=v' + __minor_version__, rst) # Travis build status
16-
rst = re.sub(r'/latest', '/v' + __minor_version__, rst) # ReadTheDocs
16+
rst = re.sub(r"branch=master", "branch=v" + __minor_version__, rst) # Travis build status
17+
rst = re.sub(r"/latest", "/v" + __minor_version__, rst) # ReadTheDocs
1718
return rst
1819

19-
with open('README.rst') as f:
20+
with open("README.rst") as f:
2021
return long_description_from_readme(f.read())
2122

23+
2224
setup(
2325
long_description=get_readme(),
2426
long_description_content_type="text/x-rst",

0 commit comments

Comments
 (0)