Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pref: optimize post gen project file #81

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at tez.romach@gmail.com. All
reported by contacting the project team at zeeland4work@gmail.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ Your next Python package needs a bleeding-edge project structure.
## TL;DR

```bash
cookiecutter gh:Undertone0809/python-package-template --checkout v1.1.5
pip install cookiecutter
cookiecutter gh:Undertone0809/python-package-template --checkout v1.1.6
```

> All you need is the latest version of cookiecutter 😉
Expand Down Expand Up @@ -71,7 +72,7 @@ pip install -U cookiecutter
then go to a directory where you want to create your project and run:

```bash
cookiecutter gh:Undertone0809/python-package-template --checkout v1.1.5
cookiecutter gh:Undertone0809/python-package-template --checkout v1.1.6
```

### Input variables
Expand Down
7 changes: 3 additions & 4 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@

> 这个版本是从 [https://github.com/TezRomacH/python-package-template](https://github.com/TezRomacH/python-package-template) 派生的。与原项目相比,当前项目提供了更好的 Windows 兼容性和更快的 lint 构建。

## 简而言之

```bash
cookiecutter gh:Undertone0809/python-package-template --checkout v1.1.5
pip install cookiecutter
cookiecutter gh:Undertone0809/python-package-template --checkout v1.1.6
```

> 你所需要的只是最新版本的 cookiecutter 😉
Expand Down Expand Up @@ -71,7 +70,7 @@ pip install -U cookiecutter
然后转到你想创建项目的目录并运行:

```bash
cookiecutter gh:Undertone0809/python-package-template --checkout v1.1.5
cookiecutter gh:Undertone0809/python-package-template --checkout v1.1.6
```

### 输入变量
Expand Down
4 changes: 2 additions & 2 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
PROJECT_DIRECTORY = Path.cwd().absolute()
PROJECT_NAME = "{{ cookiecutter.project_name }}"
PROJECT_MODULE = (
"{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}"
"{{ cookiecutter.project_name.lower().replace(' ', '_') }}"
)
CREATE_EXAMPLE_TEMPLATE = "{{ cookiecutter.create_example_template }}"

Expand Down Expand Up @@ -84,7 +84,7 @@ def print_further_instructions(project_name: str, github: str) -> None:

4) Run codestyle:

$ make polish-codestyle
$ make formatting

5) Upload initial code to GitHub:

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "python-package-template"
version = "1.1.5"
version = "1.1.6"
description = "Cookiecutter template for Python cli/packages"
readme = "README.md"
authors = ["Zeeland <[email protected]>"]
Expand Down
Loading