forked from sanic-org/sanic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: sanic-org#1631: move pyproject.toml to avoid PEP 517 conflict
Signed-off-by: Harsha Narayana <[email protected]>
- Loading branch information
1 parent
83864f8
commit a84177d
Showing
3 changed files
with
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env python | ||
|
||
from os import path | ||
|
||
if __name__ == "__main__": | ||
try: | ||
import towncrier | ||
import click | ||
except ImportError: | ||
print("Please make sure you have a installed towncrier and click before using this tool") | ||
exit(1) | ||
|
||
@click.command() | ||
@click.option( | ||
"--draft", | ||
"draft", | ||
default=False, | ||
flag_value=True, | ||
help="Render the news fragments, don't write to files, " "don't check versions.", | ||
) | ||
@click.option("--dir", "directory", default=path.dirname(path.abspath(__file__))) | ||
@click.option("--name", "project_name", default=None) | ||
@click.option( | ||
"--version", | ||
"project_version", | ||
default=None, | ||
help="Render the news fragments using given version.", | ||
) | ||
@click.option("--date", "project_date", default=None) | ||
@click.option( | ||
"--yes", | ||
"answer_yes", | ||
default=False, | ||
flag_value=True, | ||
help="Do not ask for confirmation to remove news fragments.", | ||
) | ||
def _main(draft, directory, project_name, project_version, project_date, answer_yes): | ||
return towncrier.__main( | ||
draft, directory, project_name, project_version, project_date, answer_yes | ||
) | ||
|
||
_main() |
File renamed without changes.
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