Skip to content

Commit

Permalink
move to pyproject installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed May 18, 2023
1 parent ddd3a73 commit 1994238
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 5 deletions.
37 changes: 37 additions & 0 deletions pyproject.toml
@@ -0,0 +1,37 @@
[project]
name = "shlib"
version = "1.5"
description = "shell library"
readme = "README.rst"
dependencies = [
"braceexpand", # optional
"inform>=1.28", # optional
]
requires-python = ">=3.6"
keywords = [
"shlib",
"shell",
"shell utilities",
]
authors = [
{name = "Ken Kundert"},
{email = "shlib@nurdletech.com"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Utilities",
]

[project.urls]
homepage = "https://github.com/kenkundert/shlib"
documentation = "https://github.com/kenkundert/shlib"
repository = "https://github.com/kenkundert/shlib"

[build-system]
requires = ["flit_core >=2,<4"]
build-backend = "flit_core.buildapi"
10 changes: 5 additions & 5 deletions shlib/shlib.py
Expand Up @@ -454,14 +454,14 @@ def lsf(*args, **kwargs):
# Path list functions (leaves, cartesian_product, brace_expand, etc.) {{{1
def _leaves(path, hidden, report):
try:
for each in path.iterdir():
if each.is_dir():
if path.is_file():
if hidden or not path.name.startswith("."):
yield path
elif path.is_dir():
for each in path.iterdir():
if hidden or not each.name.startswith("."):
for p in _leaves(each, hidden, report):
yield p
elif each.is_file():
if hidden or not each.name.startswith("."):
yield each
except OSError as e:
if report:
report(e)
Expand Down

0 comments on commit 1994238

Please sign in to comment.