Skip to content

Commit a0c4b11

Browse files
committed
Add LICENSE & basic packaging
1 parent 14d21e2 commit a0c4b11

File tree

5 files changed

+61
-2
lines changed

5 files changed

+61
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/
2+
dist/
3+
__pycache__/

LICENSE

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
BSD 3-Clause License
2+
3+
- Copyright (c) 2012-Present, IPython Development Team
4+
5+
All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without
8+
modification, are permitted provided that the following conditions are met:
9+
10+
* Redistributions of source code must retain the above copyright notice, this
11+
list of conditions and the following disclaimer.
12+
13+
* Redistributions in binary form must reproduce the above copyright notice,
14+
this list of conditions and the following disclaimer in the documentation
15+
and/or other materials provided with the distribution.
16+
17+
* Neither the name of the copyright holder nor the names of its
18+
contributors may be used to endorse or promote products derived from
19+
this software without specific prior written permission.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

pygments_lexers_ipython.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
# The full license is in the file COPYING.txt, distributed with this software.
3131
#-----------------------------------------------------------------------------
3232

33+
__version__ = "9.0.0"
34+
3335
# Standard library
3436
import re
3537

@@ -45,7 +47,6 @@
4547
)
4648
from pygments.util import get_bool_opt
4749

48-
# Local
4950

5051
line_re = re.compile('.*?\n')
5152

pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[build-system]
2+
requires = ["flit_core >=3.2,<4"]
3+
build-backend = "flit_core.buildapi"
4+
5+
[project]
6+
name = "pygments_lexers_ipython"
7+
authors = [
8+
{name = "The IPython Development Team", email = "[email protected]"},
9+
]
10+
#readme
11+
classifiers = [
12+
"Framework :: IPython",
13+
"License :: OSI Approved :: BSD License",
14+
]
15+
requires-python=">=3.11"
16+
dependencies = [
17+
"pygments"
18+
]
19+
dynamic=["version", "description"]
20+
21+
[project.entry-points."pygments.lexers"]
22+
ipythonconsole = "IPython.lib.lexers:IPythonConsoleLexer"
23+
ipython = "IPython.lib.lexers:IPythonLexer"
24+
ipython3 = "IPython.lib.lexers:IPython3Lexer"
25+

test_pygments_lexers_ipython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from pygments.token import Token
99
from pygments.lexers import BashLexer
1010

11-
from .. import lexers
11+
import pygments_lexers_ipython as lexers
1212

1313
pyg214 = tuple(int(x) for x in pygments_version.split(".")[:2]) >= (2, 14)
1414

0 commit comments

Comments
 (0)