basic python package

development
Thomas Lindner 2021-11-16 00:56:58 +01:00
commit a47c52d8ad
9 changed files with 97 additions and 0 deletions

10
.editorconfig Normal file
View File

@ -0,0 +1,10 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_size = 4
max_line_length = 88

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
*.swp
*.egg-info/
__pycache__/
/.tox/
/build/
/venv/

13
LICENSE Normal file
View File

@ -0,0 +1,13 @@
Copyright (c) 2021 Thomas Lindner <tom@dl6tom.de>
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# Basic python package
[lookatit](https://packaging.python.org/tutorials/packaging-projects/)

6
pyproject.toml Normal file
View File

@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"

52
setup.cfg Normal file
View File

@ -0,0 +1,52 @@
[metadata]
name = basicpy
version = 0.0.1
author = Thomas Lindner
author_email = tom@dl6tom.de
description = Basic python package
long_description = file: README.md
long_description_content_type = text/markdown
url = https://git.0x90.space/vmann/basicpy
project_urls =
Bug Tracker = https://git.0x90.space/vmann/basicpy/issues
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: ISC License (ISCL)
Operating System :: OS Independent
[options]
package_dir =
= src
packages = find:
python_requires = >=3.8
#install_requires =
# dependency
[options.packages.find]
where = src
[options.entry_points]
console_scripts =
basicpy = basicpy:main
[tox:tox]
envlist = py38, flake8, black, pytest
isolated_build = True
[testenv:flake8]
deps = flake8
commands =
flake8 src tests
[testenv:black]
deps = black
commands =
black --check --diff src tests
[testenv:pytest]
deps = pytest
commands =
pytest tests
[flake8]
max_line_length = 88

2
src/basicpy/__init__.py Normal file
View File

@ -0,0 +1,2 @@
def main():
print("Hello World")

3
src/basicpy/__main__.py Normal file
View File

@ -0,0 +1,3 @@
from . import main
main()

2
tests/test_basicpy.py Normal file
View File

@ -0,0 +1,2 @@
def test_basicpy():
pass