Update WebAppify to the latest tech
ci/woodpecker/pr/woodpecker Pipeline failed Details

- Migrate to Hatch
- Migrate to Woodpecker CI
This commit is contained in:
Raoul Snyman 2022-06-10 11:12:04 -07:00
parent 12f2e0016b
commit a46bcb00fa
7 changed files with 85 additions and 61 deletions

View File

@ -1,10 +0,0 @@
kind: pipeline
name: default
steps:
- name: test
image: python:3
commands:
- pip install -e .
- pip install pytest
- pytest

5
.gitignore vendored
View File

@ -1,3 +1,6 @@
dist
*.egg-info
dist
build
.venv
__pycache__
*.py[co]

23
.woodpecker.yml Normal file
View File

@ -0,0 +1,23 @@
pipeline:
tests:
image: python:3
commands:
- pip install -U pip wheel pytest PyQt5 PyQtWebEngine
- pytest
when:
branch: master
build:
image: python:3
commands:
- pip install -U pip wheel hatch hatch-vcs
- hatch build
when:
branch: master
release:
image: python:3
commands:
- pip install -U pip wheel hatch hatch-vcs
- hatch build
- hatch publish
when:
event: tag

58
pyproject.toml Normal file
View File

@ -0,0 +1,58 @@
[build-system]
requires = [
"hatchling>=1.3.1",
]
build-backend = "hatchling.build"
[project]
name = "WebAppify"
description = "Create desktop apps of your favourite websites"
readme = "README.rst"
license = "MIT"
authors = [
{ name = "Raoul Snyman", email = "raoul@snyman.info" },
]
keywords = [
"Qt",
"website",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: MacOS X",
"Environment :: Win32 (MS Windows)",
"Environment :: X11 Applications",
"Environment :: X11 Applications :: Qt",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Desktop Environment",
"Topic :: Internet :: WWW/HTTP :: Browsers",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"PyQt5",
"PyQtWebEngine",
]
dynamic = [
"version",
]
[project.urls]
Homepage = "https://git.snyman.info/raoul/webappify"
[tool.hatch.version]
path = "webappify/version.py"
[tool.hatch.build]
include = [
"/webappify",
]
[tool.hatch.build.targets.sdist]
[tool.hatch.build.targets.bdist]

View File

@ -1,5 +0,0 @@
[wheel]
universal = 1
[flake8]
max-line-length = 120

View File

@ -1,45 +0,0 @@
"""
The webappify package
"""
import os
from codecs import open
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(HERE, 'README.rst'), encoding='utf8') as f:
LONG_DESCRIPTION = f.read()
setup(
name='WebAppify',
version='0.3',
description='Create desktop apps of your favourite websites',
long_description=LONG_DESCRIPTION,
url='https://launchpad.net/webappify',
author='Raoul Snyman',
author_email='raoul@snyman.info',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: MacOS X',
'Environment :: Win32 (MS Windows)',
'Environment :: X11 Applications',
'Environment :: X11 Applications :: Qt',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Desktop Environment',
'Topic :: Internet :: WWW/HTTP :: Browsers',
'Topic :: Software Development :: Libraries :: Python Modules'
],
keywords='Qt website',
py_modules=['webappify'],
install_requires=['PyQt5', 'PyQtWebEngine']
)