|
1 | 1 | import setuptools |
2 | 2 | import subprocess |
3 | 3 |
|
4 | | -ret = subprocess.run("git describe --tags --abbrev=0", stdout=subprocess.PIPE, |
5 | | - stderr=subprocess.PIPE, check=True, shell=True) |
6 | | -version = ret.stdout.decode("utf-8").strip() |
| 4 | +try: |
| 5 | + ret = subprocess.run( |
| 6 | + "git describe --tags --abbrev=0", |
| 7 | + stdout=subprocess.PIPE, |
| 8 | + stderr=subprocess.PIPE, |
| 9 | + check=True, |
| 10 | + shell=True, |
| 11 | + ) |
| 12 | + version = ret.stdout.decode("utf-8").strip() |
| 13 | +except: |
| 14 | + version = "main" |
7 | 15 |
|
8 | 16 |
|
9 | 17 | with open("README.md", "r", encoding="utf-8") as fh: |
|
18 | 26 | long_description=long_description, |
19 | 27 | long_description_content_type="text/markdown", |
20 | 28 | url="https://github.com/wpilibsuite/sphinxext-remoteliteralinclude", |
21 | | - install_requires = ['sphinx>=2.0'], |
22 | | - packages=['sphinxext'], |
| 29 | + install_requires=["sphinx>=2.0", "six"], |
| 30 | + packages=["sphinxext"], |
23 | 31 | classifiers=[ |
24 | | - 'Development Status :: 5 - Production/Stable', |
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', |
| 32 | + "Development Status :: 5 - Production/Stable", |
| 33 | + "Environment :: Plugins", |
| 34 | + "Environment :: Web Environment", |
| 35 | + "Framework :: Sphinx :: Extension", |
| 36 | + "Intended Audience :: Developers", |
| 37 | + "License :: OSI Approved :: MIT License", |
| 38 | + "Natural Language :: English", |
| 39 | + "Operating System :: OS Independent", |
| 40 | + "Programming Language :: Python :: 3.6", |
| 41 | + "Programming Language :: Python :: 3.7", |
| 42 | + "Programming Language :: Python :: 3.8", |
| 43 | + "Programming Language :: Python", |
| 44 | + "Topic :: Documentation :: Sphinx", |
| 45 | + "Topic :: Documentation", |
| 46 | + "Topic :: Software Development :: Documentation", |
| 47 | + "Topic :: Text Processing", |
| 48 | + "Topic :: Utilities", |
41 | 49 | ], |
42 | | - python_requires='>=3.4', |
| 50 | + python_requires=">=3.4", |
43 | 51 | ) |
0 commit comments