Skip to content

Commit 63f090b

Browse files
committed
switch to copier
1 parent e003611 commit 63f090b

File tree

19 files changed

+121
-503
lines changed

19 files changed

+121
-503
lines changed

.bumpversion.cfg

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

.copier-answers.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changes here will be overwritten by Copier
2+
_commit: dfc65a1
3+
_src_path: .
4+
add_extension: python
5+
6+
github: python-project-templates
7+
project_description: A pure-python project template
8+
project_name: python template
9+
python_version_primary: '3.11'
10+
team: Python Project Template Authors

.gitattributes

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ docs/* linguist-documentation
33
*.ipynb linguist-documentation
44
Makefile linguist-documentation
55

6-
* text=auto eol=lf
6+
*.md text=auto eol=lf
7+
*.py text=auto eol=lf
8+
*.toml text=auto eol=lf
9+
*.yml text=auto eol=lf

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
name: Build Status
23

34
on:
@@ -7,8 +8,6 @@ on:
78
tags:
89
- v*
910
paths-ignore:
10-
- docs/
11-
- CONTRIBUTING.md
1211
- LICENSE
1312
- README.md
1413
pull_request:
@@ -32,7 +31,7 @@ jobs:
3231
strategy:
3332
matrix:
3433
os: [ubuntu-latest]
35-
python-version: [3.9]
34+
python-version: ["3.11"]
3635

3736
steps:
3837
- uses: actions/checkout@v4
@@ -82,3 +81,4 @@ jobs:
8281
- name: Make dist
8382
run: make dist
8483
if: ${{ matrix.os == 'ubuntu-latest' }}
84+

.github/workflows/publish.yml

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ __pycache__/
55

66
# C extensions
77
*.so
8+
*.dll
89

910
# Distribution / packaging
1011
.Python

CONTRIBUTING.md

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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2023 Tim Paine
189+
Copyright 2024 Python Project Template Authors
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

MANIFEST.in

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

Makefile

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,28 @@ install: ## install library
1818
.PHONY: lint lints fix format
1919

2020
lint: ## run python linter with ruff
21-
python -m isort python_template setup.py --check
22-
python -m ruff python_template setup.py
21+
python -m ruff check python_template
22+
python -m ruff format --check python_template
2323

2424
# Alias
2525
lints: lint
2626

2727
fix: ## fix python formatting with ruff
28-
python -m isort python_template setup.py
29-
python -m ruff format python_template setup.py
28+
python -m ruff check --fix python_template
29+
python -m ruff format python_template
3030

3131
# alias
3232
format: fix
3333

3434
################
3535
# Other Checks #
3636
################
37-
.PHONY: check-manifest semgrep checks check annotate
37+
.PHONY: check-manifest checks check annotate
3838

3939
check-manifest: ## check python sdist manifest with check-manifest
4040
check-manifest -v
4141

42-
semgrep: ## check for possible errors with semgrep
43-
semgrep ci --config auto
44-
45-
checks: check-manifest semgrep
42+
checks: check-manifest
4643

4744
# Alias
4845
check: checks
@@ -59,38 +56,27 @@ test: ## run python tests
5956
python -m pytest -v python_template/tests --junitxml=junit.xml
6057

6158
coverage: ## run tests and collect test coverage
62-
python -m pytest -v python_template/tests --junitxml=junit.xml --cov=python_template --cov-branch --cov-fail-under=75 --cov-report term-missing --cov-report xml
59+
python -m pytest -v python_template/tests --junitxml=junit.xml --cov=python_template --cov-branch --cov-fail-under=50 --cov-report term-missing --cov-report xml
6360

6461
# Alias
6562
tests: test
6663

67-
########
68-
# DOCS #
69-
########
70-
.PHONY: docs show-docs
71-
72-
docs: ## build html documentation
73-
make -C ./docs html
74-
75-
show-docs: ## show docs with running webserver
76-
cd ./docs/_build/html/ && PYTHONBUFFERED=1 python -m http.server | sec -u "s/0\.0\.0\.0/$$(hostname)/g"
77-
7864
###########
7965
# VERSION #
8066
###########
8167
.PHONY: show-version patch minor major
8268

8369
show-version: ## show current library version
84-
bump2version --dry-run --allow-dirty setup.py --list | grep current | awk -F= '{print $2}'
70+
@bump-my-version show current_version
8571

8672
patch: ## bump a patch version
87-
bump2version patch
73+
@bump-my-version bump patch
8874

8975
minor: ## bump a minor version
90-
bump2version minor
76+
@bump-my-version bump minor
9177

9278
major: ## bump a major version
93-
bump2version major
79+
@bump-my-version bump major
9480

9581
########
9682
# DIST #

0 commit comments

Comments
 (0)