2020-07-29 17:08:56 -04:00
|
|
|
[build-system]
|
2022-05-10 21:09:43 +05:30
|
|
|
# PEP 518 https://www.python.org/dev/peps/pep-0518/
|
|
|
|
# https://discuss.python.org/t/help-testing-experimental-features-in-setuptools/13821
|
|
|
|
requires = ["setuptools>=61", "wheel"]
|
|
|
|
# PEP 517 https://peps.python.org/pep-0517/
|
|
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
|
|
|
|
[project]
|
|
|
|
# PEP 621 project metadata
|
|
|
|
# See https://www.python.org/dev/peps/pep-0621/
|
|
|
|
name = "xonsh"
|
|
|
|
dynamic = ["version", "readme"]
|
|
|
|
description = "Python-powered, cross-platform, Unix-gazing shell"
|
|
|
|
authors = [{ name = "Anthony Scopatz" }, { email = "scopatz@gmail.com" }]
|
|
|
|
maintainers = [{ name = "Anthony Scopatz" }, { email = "scopatz@gmail.com" }]
|
2022-06-29 18:43:43 +05:30
|
|
|
license = { text = "BSD 2-Clause License" }
|
2022-05-10 21:09:43 +05:30
|
|
|
requires-python = ">=3.8"
|
|
|
|
|
|
|
|
[tool.setuptools.dynamic]
|
|
|
|
version = {attr = "xonsh.__version__"}
|
|
|
|
readme = {file = ["README.rst"]}
|
|
|
|
|
|
|
|
[tool.setuptools]
|
|
|
|
packages = [
|
|
|
|
"xonsh",
|
|
|
|
"xonsh.ply.ply",
|
|
|
|
"xonsh.ptk_shell",
|
|
|
|
"xonsh.procs",
|
|
|
|
"xonsh.parsers",
|
|
|
|
"xonsh.xoreutils",
|
|
|
|
"xontrib",
|
|
|
|
"xonsh.completers",
|
|
|
|
"xonsh.history",
|
|
|
|
"xonsh.prompt",
|
|
|
|
"xonsh.pytest",
|
|
|
|
"xonsh.lib",
|
|
|
|
"xonsh.webconfig",
|
|
|
|
"xonsh.virtualenv",
|
|
|
|
"xompletions",
|
|
|
|
]
|
|
|
|
platforms = ["Cross Platform"]
|
|
|
|
include-package-data = false
|
|
|
|
|
|
|
|
[tool.setuptools.package-dir]
|
|
|
|
xonsh = "xonsh"
|
|
|
|
xontrib = "xontrib"
|
|
|
|
xompletions = "xompletions"
|
|
|
|
"xonsh.lib" = "xonsh/lib"
|
|
|
|
"xonsh.webconfig" = "xonsh/webconfig"
|
|
|
|
|
|
|
|
[tool.setuptools.package-data]
|
|
|
|
xonsh = [
|
|
|
|
"*.json",
|
|
|
|
"*.githash",
|
|
|
|
]
|
|
|
|
xontrib = ["*.xsh"]
|
|
|
|
"xonsh.lib" = ["*.xsh"]
|
|
|
|
"xonsh.virtualenv" = ["*.xsh"]
|
|
|
|
"xonsh.webconfig" = [
|
|
|
|
"*.html",
|
|
|
|
"js/app.min.js",
|
|
|
|
"js/bootstrap.min.css",
|
|
|
|
"js/LICENSE-bootstrap",
|
|
|
|
]
|
|
|
|
|
|
|
|
[project.entry-points]
|
|
|
|
pytest11 = { xonsh = "xonsh.pytest.plugin" }
|
|
|
|
|
|
|
|
[project.entry-points."pygments.lexers"]
|
|
|
|
xonsh = "xonsh.pyghooks:XonshLexer"
|
|
|
|
xonshcon = "xonsh.pyghooks:XonshConsoleLexer"
|
|
|
|
|
|
|
|
[project.entry-points."virtualenv.activate"]
|
|
|
|
xonsh = "xonsh.virtualenv:XonshActivator"
|
|
|
|
|
|
|
|
[project.urls]
|
|
|
|
Homepage = "https://xon.sh"
|
|
|
|
documentation = "https://xon.sh/contents.html"
|
|
|
|
repository = "https://github.com/xonsh/xonsh"
|
|
|
|
changelog = "https://github.com/xonsh/xonsh/blob/main/CHANGELOG.rst"
|
|
|
|
"Issue tracker" = "https://github.com/xonsh/xonsh/issues"
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
|
|
|
ptk = [
|
2022-05-24 23:46:34 -04:00
|
|
|
"prompt-toolkit>=3.0.29",
|
2022-05-10 21:09:43 +05:30
|
|
|
"pyperclip",
|
|
|
|
]
|
|
|
|
pygments = ["pygments>=2.2"]
|
|
|
|
mac = ["gnureadline"]
|
|
|
|
linux = ["distro"]
|
|
|
|
proctitle = ["setproctitle"]
|
|
|
|
full = [
|
|
|
|
"xonsh[ptk,pygments]",
|
|
|
|
"distro; platform_system=='Linux'",
|
|
|
|
"setproctitle; platform_system=='Windows'",
|
|
|
|
"gnureadline; platform_system=='Darwin'",
|
|
|
|
]
|
|
|
|
bestshell = [
|
2022-05-24 23:46:34 -04:00
|
|
|
"prompt_toolkit>=3.0.29",
|
2022-05-10 21:09:43 +05:30
|
|
|
"pygments>=2.2",
|
|
|
|
]
|
|
|
|
test = [
|
|
|
|
"xonsh[bestshell]",
|
|
|
|
"pytest>=7",
|
|
|
|
"restructuredtext_lint",
|
|
|
|
"pytest-cov",
|
|
|
|
"pytest-mock",
|
|
|
|
"pytest-timeout",
|
|
|
|
"pytest-subprocess",
|
|
|
|
"pytest-rerunfailures",
|
2022-05-24 23:46:34 -04:00
|
|
|
"prompt-toolkit>=3.0.29",
|
2022-05-10 21:09:43 +05:30
|
|
|
"pygments>=2.2",
|
|
|
|
"coverage>=5.3.1",
|
|
|
|
"pyte>=0.8.0",
|
2022-07-31 01:02:01 -04:00
|
|
|
"virtualenv>=20.16.2",
|
2022-05-10 21:09:43 +05:30
|
|
|
]
|
|
|
|
dev = [
|
2022-07-01 21:17:01 +05:30
|
|
|
"xonsh[test,doc]",
|
2022-05-10 21:09:43 +05:30
|
|
|
"pre-commit",
|
|
|
|
"re-ver",
|
|
|
|
"tomli",
|
|
|
|
]
|
|
|
|
doc = [
|
|
|
|
"xonsh[bestshell]",
|
2022-05-18 11:06:45 -04:00
|
|
|
"furo",
|
2022-05-10 21:09:43 +05:30
|
|
|
"numpydoc",
|
2022-06-17 22:09:12 +05:30
|
|
|
"sphinx<5,>=3.1",
|
2022-05-10 21:09:43 +05:30
|
|
|
"psutil",
|
|
|
|
"pyzmq",
|
|
|
|
"matplotlib",
|
|
|
|
"doctr",
|
|
|
|
"tornado",
|
|
|
|
"runthis-sphinxext",
|
|
|
|
"livereload",
|
|
|
|
"myst-parser",
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
xonsh = "xonsh.main:main"
|
|
|
|
xonsh-cat = "xonsh.xoreutils.cat:main"
|
|
|
|
xonsh-uname = "xonsh.xoreutils.uname:main"
|
|
|
|
xonsh-uptime = "xonsh.xoreutils.uptime:main"
|
|
|
|
|
2020-07-29 17:08:56 -04:00
|
|
|
|
2020-02-14 09:09:34 -05:00
|
|
|
[tool.black]
|
|
|
|
# better to keep default line-length than to match flake8
|
|
|
|
exclude = '''
|
|
|
|
( # exclude entire contents of these top level directories...
|
|
|
|
/( \.eggs
|
|
|
|
| \.git
|
|
|
|
| \.hg
|
|
|
|
| \.mypy
|
|
|
|
| _cache
|
|
|
|
| \.nox
|
|
|
|
| \.tox
|
|
|
|
| \.venv
|
|
|
|
| _build
|
|
|
|
| buck-out
|
|
|
|
| build
|
|
|
|
| dist
|
|
|
|
)/
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
2021-10-15 02:31:44 +05:30
|
|
|
( # and these additional random rules
|
2020-02-14 09:09:34 -05:00
|
|
|
/( __pycache__
|
|
|
|
| \.circleci
|
|
|
|
| \.github
|
|
|
|
| \.vscode
|
|
|
|
| \.pytest_cache
|
2020-05-06 21:23:57 -04:00
|
|
|
| ply
|
2020-02-14 09:09:34 -05:00
|
|
|
)/
|
|
|
|
)
|
|
|
|
'''
|
2021-07-30 04:01:52 +05:30
|
|
|
|
|
|
|
extend_exclude = '''
|
|
|
|
((xonsh/parser_table.py)|(xonsh/completion_parser_table.py))
|
|
|
|
'''
|
2021-10-15 02:31:44 +05:30
|
|
|
|
2022-01-31 20:57:51 +05:30
|
|
|
|
|
|
|
[tool.isort]
|
|
|
|
profile = "black"
|
2022-07-04 01:10:16 -04:00
|
|
|
extend_skip_glob = ["xonsh/*_table.py", "xonsh/ply/**.py"]
|
2022-01-31 20:57:51 +05:30
|
|
|
src_paths = ["xonsh", "xontrib", "xompletions", "tests"]
|
2022-03-24 00:46:50 +05:30
|
|
|
known_first_party = ["xonsh", "xontrib", "xompletions", "tests"]
|
|
|
|
known_third_party = ["ply", "pytest"]
|