Skip to content

Commit 89e1178

Browse files
authored
Merge pull request #1 from ngallot/feature/minimal_package
build minimal package
2 parents 0f78dda + a3e5bc3 commit 89e1178

5 files changed

Lines changed: 25 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea/*
2+
venv/*

pyhw/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0.0'

pyhw/core/__init__.py

Whitespace-only changes.

pyhw/core/models.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from pydantic import BaseModel
2+
3+
4+
class Hello(BaseModel):
5+
6+
hello_who: str
7+
8+
def __str__(self):
9+
return f'Hello {self.hello_who}'

setup.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import setuptools
2+
from pyhw import __version__
3+
4+
setuptools.setup(
5+
name='pyhw',
6+
version=__version__,
7+
author='ngallot',
8+
description='A minimal python package',
9+
packages=setuptools.find_packages(),
10+
install_requires=[
11+
"pydantic==0.32.2"
12+
]
13+
)

0 commit comments

Comments
 (0)