Packaging reorganization

This commit is contained in:
David Beazley 2022-09-06 20:15:16 -05:00
parent 62203d8b75
commit dd71d70882
11 changed files with 47 additions and 30 deletions

View File

@ -1,5 +1,8 @@
In Progress In Progress
----------- -----------
09/06/2022 Modernization of the packaging infrastructure. Slight
project reorganization.
03/25/2022 Added automatic location tracking to the parser. Use 03/25/2022 Added automatic location tracking to the parser. Use
Parser.line_position(value) to return the line number Parser.line_position(value) to return the line number
and Parser.index_position(value) to return a (start, end) and Parser.index_position(value) to return a (start, end)

View File

@ -1,6 +1,6 @@
SLY (Sly Lex-Yacc) SLY (Sly Lex-Yacc)
Copyright (C) 2016-2019 Copyright (C) 2016-2022
David M. Beazley (Dabeaz LLC) David M. Beazley (Dabeaz LLC)
All rights reserved. All rights reserved.

View File

@ -1,2 +1,3 @@
recursive-include example * recursive-include example *
recursive-include test *
recursive-include docs * recursive-include docs *

3
pyproject.toml Normal file
View File

@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

38
setup.cfg Normal file
View File

@ -0,0 +1,38 @@
[metadata]
name = sly
version = 0.5
url = https://github.com/dabeaz/sly
author = David Beazley
author_email = "David Beazley" <dave@dabeaz.com>
description = "SLY - Sly Lex Yacc"
long_description = "SLY is an implementation of lex and yacc"
license = MIT
license_files = LICENSE
classifiers =
License :: OSI Approved :: MIT License
[options]
package_dir =
=src
packages = find:
[options.packages.find]
where = src
[tool.pytest]
testpaths = test
[coverage:run]
branch = True
[tox:tox]
isolated_build = True
envlist = py311,py310,py39
[testenv]
deps =
pytest
pytest-cov
commands = pytest {posargs}

View File

@ -1,28 +0,0 @@
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
tests_require = ['pytest', 'regex']
setup(name = "sly",
description="SLY - Sly Lex Yacc",
long_description = """
SLY is an implementation of lex and yacc for Python 3.
""",
license="""BSD""",
version = "0.4",
author = "David Beazley",
author_email = "dave@dabeaz.com",
maintainer = "David Beazley",
maintainer_email = "dave@dabeaz.com",
url = "https://github.com/dabeaz/sly",
packages = ['sly'],
tests_require = tests_require,
extras_require = {
'test': tests_require,
},
classifiers = [
'Programming Language :: Python :: 3',
]
)

View File

@ -2,5 +2,5 @@
from .lex import * from .lex import *
from .yacc import * from .yacc import *
__version__ = "0.4" __version__ = "0.5"
__all__ = [ *lex.__all__, *yacc.__all__ ] __all__ = [ *lex.__all__, *yacc.__all__ ]