Initial version
This commit is contained in:
commit
8549ee00c6
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
.DS_Store
|
||||
.idea
|
||||
*.log
|
||||
tmp/
|
||||
|
||||
*.py[cod]
|
||||
*.egg
|
||||
build
|
||||
htmlcov
|
10
.woodpecker/build.yml
Normal file
10
.woodpecker/build.yml
Normal 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
10
.woodpecker/deploy.yml
Normal 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
|
39
pyproject.toml
Normal file
39
pyproject.toml
Normal 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
5
run.py
Executable file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import woodpecker
|
||||
|
||||
woodpecker.main()
|
3
woodpecker/__init__.py
Normal file
3
woodpecker/__init__.py
Normal file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from .main import main
|
BIN
woodpecker/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
woodpecker/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
woodpecker/__pycache__/main.cpython-310.pyc
Normal file
BIN
woodpecker/__pycache__/main.cpython-310.pyc
Normal file
Binary file not shown.
6
woodpecker/main.py
Normal file
6
woodpecker/main.py
Normal file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
class main:
|
||||
def __init__(self):
|
||||
print("Hello CICD")
|
0
woodpecker/py.typed
Normal file
0
woodpecker/py.typed
Normal file
Loading…
Reference in New Issue
Block a user