-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix
scripts
metadata to include strun
as a standalone Python scri…
…pt in package (#76) * fix `scripts` metadata to include `strun` as a standalone Python script in package * add change log entry * test scripts are installed
- Loading branch information
1 parent
e29d9d3
commit 0f6f03d
Showing
4 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from pathlib import Path | ||
|
||
from setuptools import setup | ||
|
||
scripts = [ | ||
str(filename) | ||
for filename in Path('./scripts').glob('**/*') | ||
if filename.is_file() and filename.name != '__pycache__' | ||
] | ||
|
||
setup(scripts=scripts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import shutil | ||
|
||
SCRIPTS = ['strun'] | ||
|
||
|
||
def test_scripts_in_path(): | ||
for script in SCRIPTS: | ||
assert shutil.which(script) is not None, f'`{script}` not installed' |