Updated build tool

This commit is contained in:
Spitap
2023-04-22 13:51:06 +02:00
2 changed files with 11 additions and 7 deletions
+4 -4
View File
@@ -159,10 +159,10 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.10'
- name: Build frontend
shell: bash -l {0}
run: |
@@ -176,12 +176,12 @@ jobs:
- name: Build packages
run: |
sudo apt-get install librrd-dev rrdtool libssl-dev
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade pip build
pip install -r requirements.txt
cd modoboa
django-admin compilemessages
cd ..
python setup.py sdist bdist_wheel
python -m build
- name: Publish to Test PyPI
if: endsWith(github.event.ref, '/master')
uses: pypa/gh-action-pypi-publish@release/v1
+7 -3
View File
@@ -4,12 +4,15 @@ build-backend = "setuptools.build_meta"
[project]
name = "modoboa"
version = "0.0.1"
dynamic = [
"version",
"optional-dependencies"
]
authors = [
{ name="Antoine Nguyen", email="tonio@ngyn.org" },
]
description = "Mail hosting made simple"
readme = "README.md"
readme = "README.rst"
requires-python = ">=3.7"
classifiers = [
"Development Status :: 5 - Production/Stable",
@@ -45,7 +48,7 @@ dependencies = [
"djangorestframework-simplejwt==5.2.2",
"passlib~=1.7.4",
"bcrypt", # Requires libffi-dev and python-dev"
"bcrypt", # Requires libffi-dev and python-dev
"asgiref",
"dnspython==2.3.0",
@@ -78,6 +81,7 @@ dependencies = [
"python-magic>=0.4.24",
]
[project.scripts]
modoboa-cli = "mmodoboa:modoboa_admin"