-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
137 changed files
with
1,075 additions
and
847 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
github: rrthomas | ||
tidelift: npm/@sc3d/nancy | ||
tidelift: pypi/nancy | ||
custom: "https://rrt.sc3d.org" |
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 |
---|---|---|
@@ -1,7 +1,93 @@ | ||
/coverage | ||
/dist | ||
/lib | ||
/package-lock.json | ||
/sc3d-nancy-*.tgz | ||
node_modules | ||
tsconfig.tsbuildinfo | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
MANIFEST | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
.hypothesis/ | ||
|
||
# Test outputs | ||
tests-output | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# IPython Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# dotenv | ||
.env | ||
|
||
# virtualenv | ||
venv/ | ||
ENV/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
|
||
# Rope project settings | ||
.ropeproject |
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
# Makefile for maintainer tasks | ||
|
||
build: | ||
python -m build | ||
|
||
docs: | ||
PYTHONPATH=. python -m nancy README.nancy.md README.md && \ | ||
PYTHONPATH=. python -m nancy Cookbook.nancy.md Cookbook.md | ||
|
||
dist: | ||
git diff --exit-code && \ | ||
rm -rf ./dist && \ | ||
mkdir dist && \ | ||
$(MAKE) build | ||
|
||
test: | ||
tox | ||
|
||
release: | ||
make test | ||
make dist | ||
twine upload dist/* && \ | ||
git tag v$$(grep version pyproject.toml | grep -o "[0-9.]\+") && \ | ||
git push --tags | ||
|
||
loc: | ||
cloc nancy tests/*.py | ||
|
||
example: | ||
python -c "import webbrowser; webbrowser.open(\"file://`pwd`/tests/test-files/cookbook-example-website-expected/index/index.html\")" | ||
|
||
.PHONY: dist |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
![logo](logo/nancy-small.png) _logo by Silvia Polverini_ | ||
|
||
© 2002–2023 Reuben Thomas <[email protected]> | ||
© 2002–2024 Reuben Thomas <[email protected]> | ||
https://github.com/rrthomas/nancy | ||
|
||
Nancy is a simple macro processor that copies a file or directory, filling | ||
|
@@ -27,10 +27,10 @@ report them on the project’s web page (see above for addresses). | |
|
||
## Installation | ||
|
||
Install Nancy with npm (part of [Node](https://nodejs.org)): | ||
Install Nancy with pip (part of [Python](https://python.org)): | ||
|
||
``` | ||
$ npm install -g @sc3d/nancy | ||
$ pip install nancy | ||
``` | ||
|
||
## Invocation | ||
|
@@ -44,7 +44,7 @@ positional arguments: | |
INPUT-PATH list of input directories, or a single file | ||
OUTPUT output directory, or file ('-' for stdout) | ||
optional arguments: | ||
options: | ||
-h, --help show this help message and exit | ||
--path PATH path to build relative to input tree [default: ''] | ||
--version show program's version number and exit | ||
|
@@ -216,15 +216,14 @@ Now I can talk about $paste. | |
|
||
## Development | ||
|
||
Check out the git repository and download dependencies with: | ||
Check out the git repository with: | ||
|
||
``` | ||
git clone https://github.com/rrthomas/nancy | ||
npm install | ||
``` | ||
|
||
To run the tests: | ||
|
||
``` | ||
npm test | ||
make test | ||
``` |
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
Oops, something went wrong.