Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
gabriele.ponzo | 8aeabdc0de | |
emiliano.vavassori | 09f21c1f44 | |
emiliano.vavassori | 9f8d9db228 |
|
@ -1,6 +1,3 @@
|
||||||
venv
|
|
||||||
test
|
|
||||||
build
|
|
||||||
dist
|
dist
|
||||||
loaih.egg-info
|
venv
|
||||||
**/__pycache__
|
**/__pycache__
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
# LibreOffice AppImage Helper - `loaih` #
|
# LibreOffice AppImage Helper - `loaih` #
|
||||||
|
|
||||||
LibreOffice AppImage Helper is an enhanced Python porting from [previous work
|
LibreOffice AppImage Helper is an enhanced Python porting from [previous work
|
||||||
from Antonio
|
by Antonio Faccioli](https://github.com/antoniofaccioli/libreoffice-appimage).
|
||||||
Faccioli](https://github.com/antoniofaccioli/libreoffice-appimage). It helps
|
It helps building a LibreOffice AppImage from officially released .deb files
|
||||||
building a LibreOffice AppImage from officially released .deb files with some
|
with some options.
|
||||||
options.
|
|
||||||
|
|
||||||
## Getting options and help ##
|
## Getting options and help ##
|
||||||
|
|
||||||
|
|
|
@ -11,13 +11,15 @@ if [[ ${retval} -ne 0 ]]; then
|
||||||
# for the sake of consistency, let's make the check_updates.sh script
|
# for the sake of consistency, let's make the check_updates.sh script
|
||||||
# executable
|
# executable
|
||||||
chmod +x check_updates.sh
|
chmod +x check_updates.sh
|
||||||
|
|
||||||
|
# Updating runtime
|
||||||
if [[ -d venv ]]; then
|
if [[ -d venv ]]; then
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
fi
|
fi
|
||||||
pip3 uninstall -y loaih
|
pip3 uninstall -y loaih
|
||||||
# build the actual toolkit
|
# build the actual toolkit
|
||||||
python3 setup.py bdist_wheel
|
python3 -m build --sdist
|
||||||
pip3 install dist/*.whl; rv=$?
|
pip3 install dist/*.tar.gz; rv=$?
|
||||||
if [[ -d venv ]]; then
|
if [[ -d venv ]]; then
|
||||||
deactivate
|
deactivate
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
[build-system]
|
||||||
|
requires = ["hatchling"]
|
||||||
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "loaih"
|
||||||
|
dynamic = ["version"]
|
||||||
|
description = "LOAIH - LibreOffice AppImage Helpers, help build a LibreOffice AppImage"
|
||||||
|
readme = "README.md"
|
||||||
|
authors = [
|
||||||
|
{ name = "Emiliano Vavassori", email = "syntaxerrormmm@libreoffice.org" },
|
||||||
|
]
|
||||||
|
dependencies = [
|
||||||
|
"click",
|
||||||
|
"lxml",
|
||||||
|
"packaging",
|
||||||
|
"pyyaml",
|
||||||
|
"requests",
|
||||||
|
]
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 5 - Production/Stable",
|
||||||
|
"Environment :: Console",
|
||||||
|
"Intended Audience :: Information Technology",
|
||||||
|
"License :: OSI Approved :: MIT License",
|
||||||
|
"Operating System :: POSIX :: Linux",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Topic :: Office/Business :: Office Suites",
|
||||||
|
"Topic :: Software Development :: Quality Assurance",
|
||||||
|
"Topic :: System :: Software Distribution",
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.hatch.version]
|
||||||
|
path = "src/loaih/version.py"
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
loaih = "loaih.script:cli"
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
Homepage = "https://pypi.org/project/loaih/"
|
||||||
|
Documentation = "https://git.libreitalia.org/libreitalia/loaih/wiki"
|
||||||
|
Repository = "https://git.libreitalia.org/libreitalia/loaih/"
|
||||||
|
Issues = "https://git.libreitalia.org/libreitalia/loaih/issues/"
|
||||||
|
|
||||||
|
[publish.index]
|
||||||
|
|
||||||
|
[publish.index.repos.pypi]
|
||||||
|
url = "https://upload.pypi.org/legacy/"
|
||||||
|
|
||||||
|
[publish.index.repos.testpypi]
|
||||||
|
url = "https://test.pypi.org/legacy/"
|
29
setup.py
29
setup.py
|
@ -1,29 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
# encoding: utf-8
|
|
||||||
# vim:sts=4:sw=4
|
|
||||||
"""Helps building and automatizing building LibreOffice AppImages."""
|
|
||||||
|
|
||||||
from pathlib import Path
|
|
||||||
from setuptools import setup, find_packages
|
|
||||||
|
|
||||||
this_directory = Path(__file__).parent
|
|
||||||
long_description = (this_directory / "README.md").read_text()
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name="loaih",
|
|
||||||
version="1.3.3",
|
|
||||||
description="LOAIH - LibreOffice AppImage Helpers, help build a LibreOffice AppImage",
|
|
||||||
long_description=long_description,
|
|
||||||
long_description_content_type='text/markdown',
|
|
||||||
author="Emiliano Vavassori",
|
|
||||||
author_email="syntaxerrormmm@libreoffice.org",
|
|
||||||
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
|
|
||||||
entry_points={
|
|
||||||
'console_scripts': [
|
|
||||||
'loaih = loaih.script:cli',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
install_requires=['click', 'lxml', 'packaging', 'pyyaml', 'requests'],
|
|
||||||
license='MIT',
|
|
||||||
url='https://git.libreitalia.org/LibreItalia/loaih/',
|
|
||||||
)
|
|
|
@ -0,0 +1 @@
|
||||||
|
__version__ = "1.3.3"
|
Loading…
Reference in New Issue