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.
2 parents eac11cc + 25ac3de commit b30b7f0Copy full SHA for b30b7f0
setup.py
@@ -1,7 +1,14 @@
1
import os
2
from pathlib import Path
3
+
4
from setuptools import setup, find_packages
5
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
12
if (os.path.isdir('clipboard.js') and
13
not os.path.islink('sphinx_copybutton/_static/clipboard.min.js')):
14
raise SystemExit("Error: Support for symbolic links is required")
0 commit comments