mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
Updated build tool
This commit is contained in:
@@ -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
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user