forked from jorisroovers/pymarkdownlint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (44 loc) · 1.68 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
48
49
#!/usr/bin/env python
from setuptools import setup, find_packages
import re
import os
# There is an issue with building python packages in a shared vagrant directory because of how setuptools works
# in python < 2.7.9. We solve this by deleting the filesystem hardlinking capability during build.
# See: http://stackoverflow.com/a/22147112/381010
del os.link
long_description = (
"Markdown linter written in python. Under active development."
"Source code: https://github.com/jorisroovers/pymarkdownlint"
)
# shamelessly stolen from mkdocs' setup.py: https://github.com/mkdocs/mkdocs/blob/master/setup.py
def get_version(package):
"""Return package version as listed in `__version__` in `init.py`."""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
setup(
name="pymarkdownlint",
version=get_version("pymarkdownlint"),
description="Markdown linter written in python. Under active development.",
long_description=long_description,
classifiers=[
"Development Status :: 3 - Alpha",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License"
],
install_requires=[
'Click==4.1',
],
keywords='markdown markdownlint pymarkdownlint',
author='Joris Roovers',
url='https://github.com/jorisroovers/pymarkdownlint',
license='MIT',
packages=find_packages(exclude=["examples"]),
entry_points={
"console_scripts": [
"markdownlint = pymarkdownlint.cli:cli",
],
},
)