-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
47 lines (44 loc) · 1.66 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import subprocess
import setuptools
# This will fail if something happens or if not in a git repository.
# This is intentional.
try:
ret = subprocess.run("git describe --tags --abbrev=0", stdout=subprocess.PIPE,
stderr=subprocess.PIPE, check=True, shell=True)
version = ret.stdout.decode("utf-8").strip()
except:
version = "main"
with open("README.md", 'r', encoding="utf-8") as readme:
long_description = readme.read()
setuptools.setup(
name="sphinxext-toptranslators",
version=version,
author="Dalton Smith",
author_email="daltzsmith@gmail.com",
description="Sphinx Extension to grab top contributors",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/wpilibsuite/sphinxext-toptranslators",
install_requires=['sphinx>=2.0', 'gitpython'],
packages=['sphinxext'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Plugins',
'Environment :: Web Environment',
'Framework :: Sphinx :: Extension',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python',
'Topic :: Documentation :: Sphinx',
'Topic :: Documentation',
'Topic :: Software Development :: Documentation',
'Topic :: Text Processing',
'Topic :: Utilities',
],
python_requires='>=3.6'
)