-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (37 loc) · 1.47 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
#!/usr/bin/env python
import pathlib as pl
import setuptools
# ***************************************************************************************
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def ReadTxt(fName: str):
with open(pl.Path(__file__).parent / fName) as f:
return f.read()
# ***************************************************************************************
import lex2
setuptools.setup(
name="lex2",
version=lex2.__version__,
packages=setuptools.find_packages(),
python_requires='>=3.6',
author="DeltaRazero",
author_email="[email protected]",
license="zlib",
description="Flexible, ruleset-based tokenizer using regex.",
long_description=ReadTxt("./README.md"),
long_description_content_type="text/markdown",
keywords="lexer tokenizer sphinx",
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: OS Independent",
"License :: OSI Approved :: zlib/libpng License",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development :: Compilers",
"Topic :: Text Processing",
],
)