Skip to content

Commit

Permalink
Move from flat layout to src layout
Browse files Browse the repository at this point in the history
  • Loading branch information
akosthekiss committed Dec 18, 2024
1 parent f754771 commit 9025349
Show file tree
Hide file tree
Showing 29 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ dist
.coverage*
*.interp
*.tokens
picireny/antlr4/parser/ANTLRv4*.py
src/picireny/antlr4/parser/ANTLRv4*.py
4 changes: 2 additions & 2 deletions LICENSE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ Copyright (c) 2007 Ghassan Misherghi.
-----

This software includes components from the "Grammars written for ANTLR v4"
project under picireny/antlr4/resources and picireny/antlr4/parser, which files
carry a compatible "BSD license" and their own copyright notices.
project under src/picireny/antlr4/resources and src/picireny/antlr4/parser,
which files carry a compatible "BSD license" and their own copyright notices.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
exclude picireny/antlr4/parser/ANTLRv4*.py
exclude src/picireny/antlr4/parser/ANTLRv4*.py
9 changes: 7 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ classifiers =
platform = any

[options]
package_dir =
= src
packages = find:
include_package_data = True
python_requires = >=3.8
Expand All @@ -34,12 +36,15 @@ install_requires =
picire==21.8
xson

[options.packages.find]
where = src

[options.entry_points]
console_scripts =
picireny = picireny.cli:execute

[build_antlr]
commands =
antlerinator:4.13.2 picireny/antlr4/resources/ANTLRv4Lexer.g4 picireny/antlr4/resources/ANTLRv4Parser.g4 -Dlanguage=Python3 -o picireny/antlr4/parser -Xexact-output-dir -no-listener
antlerinator:4.13.2 src/picireny/antlr4/resources/ANTLRv4Lexer.g4 src/picireny/antlr4/resources/ANTLRv4Parser.g4 -Dlanguage=Python3 -o src/picireny/antlr4/parser -Xexact-output-dir -no-listener
output =
picireny/antlr4/parser/ANTLRv4*.py
src/picireny/antlr4/parser/ANTLRv4*.py
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ deps =
pylint
pytest
commands =
pylint picireny tests
pycodestyle picireny tests --ignore=E501 --exclude=picireny/antlr4/parser/ANTLRv4*.py
pylint src/picireny tests
pycodestyle src/picireny tests --ignore=E501 --exclude=src/picireny/antlr4/parser/ANTLRv4*.py

[testenv:build]
deps =
Expand Down

0 comments on commit 9025349

Please sign in to comment.