Initial version

This commit is contained in:
RealStickman 2022-09-12 17:14:43 +02:00
commit 8549ee00c6
11 changed files with 83 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
.DS_Store
.idea
*.log
tmp/
*.py[cod]
*.egg
build
htmlcov

10
.woodpecker/build.yml Normal file
View File

@ -0,0 +1,10 @@
pipeline:
build:
image: python:3.10
commands:
- pip install -U build
- build --version
- build
when:
event: tag
branch: [main, master]

10
.woodpecker/deploy.yml Normal file
View File

@ -0,0 +1,10 @@
pipeline:
deploy:
image: python:3.10
commands:
- pip install -U twine
- twine --version
- twine upload --skip-existing --repository testpypi -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*
depends_on:
- build

1
README.md Normal file
View File

@ -0,0 +1 @@
# Woodpecker Python Test

39
pyproject.toml Normal file
View File

@ -0,0 +1,39 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "woodpecker-realstickman"
version = "0.0.1"
authors = [
{ name="RealStickman", email="mrc@frm01.net" },
]
description = "A Test for deploying Python packages using Woodpecker"
readme = "README.md"
license = "GPL-3.0-or-later"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
]
dependencies = [
]
[project.urls]
"Homepage" = ""
"Bug Tracker" = ""
[tool.hatch.build]
include = [
"woodpecker/*.py",
"woodpecker/py.typed"
]
exclude = []
[tool.pyright]
#https://github.com/microsoft/pyright/blob/main/docs/configuration.md
typeCheckingMode = "strict"
reportUnusedImport = "warning"

5
run.py Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env python3
import woodpecker
woodpecker.main()

3
woodpecker/__init__.py Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env python3
from .main import main

Binary file not shown.

Binary file not shown.

6
woodpecker/main.py Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env python3
class main:
def __init__(self):
print("Hello CICD")

0
woodpecker/py.typed Normal file
View File