Skip to content

Commit fd60898

Browse files
committed
- Update Library Versions to the latest
- Add `.dockerignore` file - Use python-slim for docker
1 parent 33b03dd commit fd60898

File tree

10 files changed

+37
-18
lines changed

10 files changed

+37
-18
lines changed

.dockerignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.github
2+
.eggs/
3+
build
4+
dist
5+
*.egg
6+
*.egg-info
7+
tests
8+
venv
9+
10+
__pycache__
11+
*.pyc
12+
*.pyo
13+
*.pyd
14+
*.output
15+
.coverage
16+
.coverage.*
17+
.cache
18+
htmlcov/
19+
.pytest_cache
20+
allure_report

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v3.2.0
3+
rev: v4.2.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
77
- id: check-yaml
88
- id: check-added-large-files
99
- repo: https://github.com/psf/black
10-
rev: stable
10+
rev: 22.3.0
1111
hooks:
1212
- id: black
1313
language_version: python3

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
FROM python:3.9
1+
FROM python:3.10-slim-buster
22

33
LABEL MAINTAINER="Pradeep Bashyal"
44

55
WORKDIR /app
66

77
COPY requirements.txt /app
8-
RUN pip install --no-cache-dir -r requirements.txt
8+
RUN pip install --no-cache-dir --upgrade pip && \
9+
pip install --no-cache-dir -r requirements.txt
910

1011
COPY requirements-deploy.txt /app
1112
RUN pip install --no-cache-dir -r requirements-deploy.txt

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ dist: clean ## builds source and wheel package
8484
docker-build: ## build a docker image for the service
8585
docker build -t my-project-template-service:0.0.1 .
8686

87-
docker: docker-build ## build a docker image for the service
87+
docker: docker-build ## build a docker image and run the service
8888
docker run --name my-project-template -p 8080:8080 my-project-template-service:0.0.1
8989

9090
install: clean ## install the package to the active Python's site-packages

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ My Project Template
55
How to use the template:
66

77
1. Create a template by clicking on the "Use this template" button. Make sure to select all branches
8-
This will create a new repository with the given name
8+
This will create a new repository with the given name e.g. `urban-potato`
99
2. Clone the repository locally
1010
```shell
1111
git clone [email protected]:pbashyal-nmdp/urban-potato.git

requirements-deploy.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
connexion[swagger-ui]==2.9.0
1+
connexion[swagger-ui]==2.13.0
22
gunicorn==20.1.0

requirements-dev.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
allure-behave==2.9.43
2-
flake8==3.9.2
1+
allure-behave==2.9.45
2+
flake8==4.0.1
33
bump2version==1.0.1
4-
coverage==5.5
5-
wheel==0.37.0
6-
pre-commit==2.14.1
4+
coverage==6.3.2
5+
wheel==0.37.1
6+
pre-commit==2.18.1

requirements-tests.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pytest==6.2.5
1+
pytest==7.1.2
22
behave==1.2.6
3-
PyHamcrest==2.0.2
3+
PyHamcrest==2.0.3

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,3 @@ exclude = docs
2020
[aliases]
2121
# Define setup.py command aliases here
2222
test = pytest
23-
24-
[tool:pytest]
25-
collect_ignore = ['setup.py']

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@
4343
setup(
4444
author="Pradeep Bashyal",
4545
author_email="[email protected]",
46-
python_requires=">=3.6",
46+
python_requires=">=3.8",
4747
classifiers=[
4848
"Development Status :: 1 - Pre-Alpha",
4949
"Intended Audience :: Developers",
5050
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
5151
"Natural Language :: English",
5252
"Programming Language :: Python :: 3.8",
5353
"Programming Language :: Python :: 3.9",
54+
"Programming Language :: Python :: 3.10",
5455
],
5556
description="Python Boilerplate contains all the boilerplate you need to create a Python package.",
5657
install_requires=requirements,

0 commit comments

Comments
 (0)