Packaging reorganization
This commit is contained in:
parent
62203d8b75
commit
dd71d70882
3
CHANGES
3
CHANGES
@ -1,5 +1,8 @@
|
||||
In Progress
|
||||
-----------
|
||||
09/06/2022 Modernization of the packaging infrastructure. Slight
|
||||
project reorganization.
|
||||
|
||||
03/25/2022 Added automatic location tracking to the parser. Use
|
||||
Parser.line_position(value) to return the line number
|
||||
and Parser.index_position(value) to return a (start, end)
|
||||
|
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
||||
SLY (Sly Lex-Yacc)
|
||||
|
||||
Copyright (C) 2016-2019
|
||||
Copyright (C) 2016-2022
|
||||
David M. Beazley (Dabeaz LLC)
|
||||
All rights reserved.
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
recursive-include example *
|
||||
recursive-include test *
|
||||
recursive-include docs *
|
||||
|
3
pyproject.toml
Normal file
3
pyproject.toml
Normal file
@ -0,0 +1,3 @@
|
||||
[build-system]
|
||||
requires = ["setuptools", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
38
setup.cfg
Normal file
38
setup.cfg
Normal 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}
|
28
setup.py
28
setup.py
@ -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',
|
||||
]
|
||||
)
|
@ -2,5 +2,5 @@
|
||||
from .lex import *
|
||||
from .yacc import *
|
||||
|
||||
__version__ = "0.4"
|
||||
__version__ = "0.5"
|
||||
__all__ = [ *lex.__all__, *yacc.__all__ ]
|
Loading…
Reference in New Issue
Block a user