Cambiato tooling, versione in produzione ancora da adattare.

This commit is contained in:
emiliano.vavassori 2024-05-22 23:38:57 +02:00
parent eff3bc67ee
commit 9f8d9db228
8 changed files with 52 additions and 43 deletions

4
.gitignore vendored
View File

@ -1,6 +1,2 @@
venv
test
build
dist dist
loaih.egg-info
**/__pycache__ **/__pycache__

View File

@ -11,16 +11,7 @@ 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
if [[ -d venv ]]; then # Updating the environment is left to hatch itself.
source venv/bin/activate
fi
pip3 uninstall -y loaih
# build the actual toolkit
python3 setup.py bdist_wheel
pip3 install dist/*.whl; rv=$?
if [[ -d venv ]]; then
deactivate
fi
if [[ ${rv} -eq 0 ]]; then if [[ ${rv} -eq 0 ]]; then
# cleanup # cleanup

50
pyproject.toml Normal file
View File

@ -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/"

View File

@ -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/',
)

1
src/loaih/version.py Normal file
View File

@ -0,0 +1 @@
__version__ = "1.3.3"