|
| 1 | +import subprocess |
| 2 | +import setuptools |
| 3 | + |
| 4 | +try: |
| 5 | + ret = subprocess.check_output("git describe --tags --abbrev=0", shell=True,) |
| 6 | + version = ret.decode("utf-8").strip() |
| 7 | +except: |
| 8 | + version = "master" |
| 9 | + |
| 10 | +with open("README.md", "r", encoding="utf-8") as readme: |
| 11 | + long_description = readme.read() |
| 12 | + |
| 13 | +setuptools.setup( |
| 14 | + name="sphinxext-linkcheckdiff", |
| 15 | + version=version, |
| 16 | + author="Vasista Vovveti", |
| 17 | + |
| 18 | + description="Sphinx Extension to run diff-only linkchecks", |
| 19 | + long_description=long_description, |
| 20 | + long_description_content_type="text/markdown", |
| 21 | + url="https://github.com/thetriplev/sphinxext-linkcheckdiff", |
| 22 | + install_requires=["sphinx>=2.0"], |
| 23 | + packages=["sphinxext"], |
| 24 | + classifiers=[ |
| 25 | + "Environment :: Plugins", |
| 26 | + "Environment :: Web Environment", |
| 27 | + "Framework :: Sphinx :: Extension", |
| 28 | + "Intended Audience :: Developers", |
| 29 | + "License :: OSI Approved :: MIT License", |
| 30 | + "Natural Language :: English", |
| 31 | + "Operating System :: OS Independent", |
| 32 | + "Programming Language :: Python :: 3.6", |
| 33 | + "Programming Language :: Python :: 3.7", |
| 34 | + "Programming Language :: Python :: 3.8", |
| 35 | + "Programming Language :: Python", |
| 36 | + "Topic :: Documentation :: Sphinx", |
| 37 | + "Topic :: Documentation", |
| 38 | + "Topic :: Software Development :: Documentation", |
| 39 | + "Topic :: Text Processing", |
| 40 | + "Topic :: Utilities", |
| 41 | + ], |
| 42 | + python_requires=">=3.6", |
| 43 | +) |
0 commit comments