-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·82 lines (75 loc) · 2.44 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup Gruvbox colorscheme as a python package."""
import codecs
import os
import setuptools
from setuptools import find_packages, setup
try:
import gruvbox
except ImportError:
pass
NAME = "gruvbox_pygments"
AUTHOR = ("Faris Chugthai",)
EMAIL = ("farischugthai@gmail.com",)
DESCRIPTION = "A Pygments style using the Gruvbox color scheme."
LICENSE = ("MIT",)
KEYWORDS = [
"pygments",
"gruvbox" "ipython",
"jupyter",
"colorschemes",
"syntax highlighting",
]
REQUIRED = ["pygments>=2.4"]
TESTS = ["pytest", "IPython", "flake8", "flake8-rst",
"pydocstyle", "flake8-docstrings", "flake8-rst-docstrings"]
here = os.path.abspath(os.path.dirname(__file__))
README = os.path.join(here, "README.rst")
try:
with codecs.open(README, encoding="utf-8") as f:
long_description = "\n" + f.read()
except FileNotFoundError:
long_description = DESCRIPTION
setup(
name=NAME,
# version=about["__version__"],
version="0.0.2",
description=DESCRIPTION,
long_description=long_description,
long_description_content_type="text/restructuredtext",
author=AUTHOR,
author_email=EMAIL,
url="https://github.com/farisachugthai/gruvbox_pygments",
# packages=find_packages(exclude=["tests", "*.tests", "*.tests.*", "tests.*"]),
packages=find_packages(),
entry_points="""
[pygments.styles]
GruvboxStyle = gruvbox:GruvboxStyle
PtGruvboxStyle = gruvbox:PtGruvboxStyle
""",
# namespace_packages=setuptools.find_namespace_packages(),
install_requires=REQUIRED,
tests_require=TESTS,
extras_require={"docs": "sphinx", "IPython": "ipython", "test": TESTS},
platforms="any",
include_package_data=True,
package_data={"": ["*.txt", "*.rst"], },
keywords=KEYWORDS,
license=LICENSE,
classifiers=[
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta ",
"Environment :: Plugins ",
"Intended Audience :: Developers ",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Text Processing :: Filters",
"Topic :: Utilities",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
)