Skip to content

Commit bff4ba6

Browse files
committed
unnecessary lines in setup
1 parent 9a00b05 commit bff4ba6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

setup.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33

44
from setuptools import setup, find_packages
55

6-
lines = Path(__file__).parent.joinpath("sphinx_copybutton", "__init__.py").read_text()
7-
for line in lines.split('\n'):
8-
if line.startswith("__version__"):
9-
break
10-
version = line.split(" = ")[-1].strip('"')
11-
126
if (os.path.isdir('clipboard.js') and
137
not os.path.islink('sphinx_copybutton/_static/clipboard.min.js')):
148
raise SystemExit("Error: Support for symbolic links is required")

0 commit comments

Comments
 (0)