Skip to content

Commit

Permalink
Merge branch 'master' into info
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf authored Apr 21, 2020
2 parents eac11cc + 25ac3de commit b30b7f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import os
from pathlib import Path

from setuptools import setup, find_packages

lines = Path(__file__).parent.joinpath("sphinx_copybutton", "__init__.py").read_text()
for line in lines.split('\n'):
if line.startswith("__version__"):
break
version = line.split(" = ")[-1].strip('"')

if (os.path.isdir('clipboard.js') and
not os.path.islink('sphinx_copybutton/_static/clipboard.min.js')):
raise SystemExit("Error: Support for symbolic links is required")
Expand Down

0 comments on commit b30b7f0

Please sign in to comment.