Skip to content

Commit 6bde69d

Browse files
committed
Rename package_name to pypi_package_name
1 parent d311a14 commit 6bde69d

19 files changed

Lines changed: 46 additions & 46 deletions

File tree

hooks/pre_gen_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
%}
99
{{
1010
cookiecutter.update({
11-
"package_name":
11+
"pypi_package_name":
1212
cookiecutter.project_slug.replace('_', '-'),
1313
"spdx_license":
1414
spdx_license_dict[cookiecutter.project_license],

{{ cookiecutter.project_slug }}/.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
/debian/.debhelper/generated/
33
/debian/debhelper-build-stamp
44
/debian/files
5-
/debian/{{ cookiecutter.package_name }}/
6-
/debian/{{ cookiecutter.package_name }}.*.debhelper
7-
/debian/{{ cookiecutter.package_name }}.substvars
5+
/debian/{{ cookiecutter.pypi_package_name }}/
6+
/debian/{{ cookiecutter.pypi_package_name }}.*.debhelper
7+
/debian/{{ cookiecutter.pypi_package_name }}.substvars
88
/dist/
99
/.pc/
1010
/.venv/

{{ cookiecutter.project_slug }}/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ this document.
5959
To install {{ cookiecutter.project_title }} from PyPI, open a shell and run:
6060

6161
```shell
62-
pip install {{ cookiecutter.package_name }}
62+
pip install {{ cookiecutter.pypi_package_name }}
6363
```
6464

6565
If that doesn’t work, try:
6666

6767
```shell
68-
python3 -m pip install {{ cookiecutter.package_name }}
68+
python3 -m pip install {{ cookiecutter.pypi_package_name }}
6969
```
7070

7171
### Installing from the AUR
@@ -74,9 +74,9 @@ Direct your favorite
7474
[AUR helper](https://wiki.archlinux.org/title/AUR_helpers) to the
7575
`
7676
{%- if cookiecutter.include_executable == "y" -%}
77-
{{ cookiecutter.package_name }}
77+
{{ cookiecutter.pypi_package_name }}
7878
{%- else -%}
79-
python-{{ cookiecutter.package_name }}
79+
python-{{ cookiecutter.pypi_package_name }}
8080
{%- endif -%}
8181
` package.
8282

@@ -88,11 +88,11 @@ Direct your favorite
8888
```
8989

9090
{% endif -%}
91-
See [`USAGE.md`](https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.package_name }}/blob/main/USAGE.md) or `man {{ cookiecutter.executable_name }}` for details.
91+
See [`USAGE.md`](https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.pypi_package_name }}/blob/main/USAGE.md) or `man {{ cookiecutter.executable_name }}` for details.
9292

9393
## Contributing to {{ cookiecutter.project_title }}
9494

95-
See [`CONTRIBUTING.md`](https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.package_name }}/blob/main/CONTRIBUTING.md).
95+
See [`CONTRIBUTING.md`](https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.pypi_package_name }}/blob/main/CONTRIBUTING.md).
9696

9797
## License
9898

{{ cookiecutter.project_slug }}/contrib/archlinux/{{ cookiecutter.package_name }}-git/.gitignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

{{ cookiecutter.project_slug }}/contrib/archlinux/{{ cookiecutter.package_name }}/.nvchecker.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/src/
2+
/pkg/
3+
/{{ cookiecutter.pypi_package_name }}/
4+
*.log
5+
*.pkg.*
6+
*.tar.*

{{ cookiecutter.project_slug }}/contrib/archlinux/{{ cookiecutter.package_name }}-git/PKGBUILD renamed to {{ cookiecutter.project_slug }}/contrib/archlinux/{{ cookiecutter.pypi_package_name }}-git/PKGBUILD

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Maintainer: {{ cookiecutter.author_full_name }} <{{ cookiecutter.author_email }}>
22

3-
pkgname={{ cookiecutter.package_name }}-git
4-
_gitpkgname={{ cookiecutter.package_name }}
3+
pkgname={{ cookiecutter.pypi_package_name }}-git
4+
_gitpkgname={{ cookiecutter.pypi_package_name }}
55
pkgver=VERSION
66
pkgrel=1
77
pkgdesc='{{ cookiecutter.project_description }}'
88
arch=('any')
9-
url='https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.package_name }}'
9+
url='https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.pypi_package_name }}'
1010
license=('{{ cookiecutter.spdx_license }}')
1111
depends=(
1212
'python-colorama'
@@ -22,10 +22,10 @@ makedepends=(
2222
'python-wheel'
2323
)
2424
checkdepends=('python-pytest')
25-
provides=('{{ cookiecutter.package_name }}')
26-
conflicts=('{{ cookiecutter.package_name }}')
25+
provides=('{{ cookiecutter.pypi_package_name }}')
26+
conflicts=('{{ cookiecutter.pypi_package_name }}')
2727
options=('!strip')
28-
source=("${_gitpkgname}::git+https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.package_name }}.git")
28+
source=("${_gitpkgname}::git+https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.pypi_package_name }}.git")
2929
sha512sums=('SKIP')
3030

3131
pkgver() {

{{ cookiecutter.project_slug }}/contrib/archlinux/{{ cookiecutter.package_name }}-local/.gitignore renamed to {{ cookiecutter.project_slug }}/contrib/archlinux/{{ cookiecutter.pypi_package_name }}-local/.gitignore

File renamed without changes.

{{ cookiecutter.project_slug }}/contrib/archlinux/{{ cookiecutter.package_name }}-local/PKGBUILD renamed to {{ cookiecutter.project_slug }}/contrib/archlinux/{{ cookiecutter.pypi_package_name }}-local/PKGBUILD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Maintainer: {{ cookiecutter.author_full_name }} <{{ cookiecutter.author_email }}>
22

3-
pkgname={{ cookiecutter.package_name }}-git
3+
pkgname={{ cookiecutter.pypi_package_name }}-git
44
pkgver=VERSION
55
pkgrel=1
66
pkgdesc='{{ cookiecutter.project_description }}'
77
arch=('any')
8-
url='https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.package_name }}'
8+
url='https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.pypi_package_name }}'
99
license=('{{ cookiecutter.spdx_license }}')
1010
depends=(
1111
'python-colorama'
@@ -21,8 +21,8 @@ makedepends=(
2121
'python-wheel'
2222
)
2323
checkdepends=('python-pytest')
24-
provides=('{{ cookiecutter.package_name }}')
25-
conflicts=('{{ cookiecutter.package_name }}')
24+
provides=('{{ cookiecutter.pypi_package_name }}')
25+
conflicts=('{{ cookiecutter.pypi_package_name }}')
2626
options=('!strip')
2727
source=("git+file://$(git rev-parse --show-toplevel)")
2828
sha512sums=('SKIP')

{{ cookiecutter.project_slug }}/contrib/archlinux/{{ cookiecutter.package_name }}/.gitignore renamed to {{ cookiecutter.project_slug }}/contrib/archlinux/{{ cookiecutter.pypi_package_name }}/.gitignore

File renamed without changes.

0 commit comments

Comments
 (0)