Skip to content

Commit 37a8f27

Browse files
committed
[FIX] packaging: set fedora 36 as base for rpm
Also, as the rpm is not built from the deprecated bdist_rpm anymore, it's time to remove useless requires from the `setup.cfg` file. On the other hand, the soft requirements in the `setup.py` are now synchronized with the hard requirements. closes odoo#102849 X-original-commit: 20920ae Signed-off-by: Christophe Monniez (moc) <[email protected]>
1 parent cc138a6 commit 37a8f27

File tree

4 files changed

+18
-49
lines changed

4 files changed

+18
-49
lines changed

setup.cfg

-44
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,6 @@
11
[install]
22
optimize=1
33

4-
[bdist_rpm]
5-
no-autoreq = yes
6-
install-script = setup/redhat/install.sh
7-
post-install = setup/redhat/postinstall.sh
8-
9-
requires =
10-
sassc
11-
python(abi) >= 3.8
12-
python3-babel
13-
python3-decorator
14-
python3-docutils
15-
python3-freezegun
16-
python3-gevent
17-
python3-greenlet
18-
python3-idna
19-
python3-jinja2
20-
python3-lxml
21-
python3-markupsafe
22-
python3-mock
23-
python3-num2words
24-
python3-ofxparse
25-
python3-passlib
26-
python3-pillow
27-
python3-psutil
28-
python3-psycopg2
29-
python3-polib
30-
python3-pydot
31-
python3-PyPDF2
32-
python3-pyOpenSSL
33-
python3-pyserial
34-
python3-dateutil
35-
python3-pytz
36-
python3-pyusb
37-
python3-qrcode
38-
python3-reportlab
39-
python3-requests
40-
python3-six
41-
python3-stdnum
42-
python3-vobject
43-
python3-werkzeug
44-
python3-xlwt
45-
python3-xlrd
46-
python3-zeep
47-
484
[flake8]
495
extend-exclude =
506
.git,

setup.py

+9-4
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,18 @@
2424
include_package_data=True,
2525
install_requires=[
2626
'babel >= 1.0',
27+
'chardet',
28+
'cryptography',
2729
'decorator',
2830
'docutils',
2931
'gevent',
32+
'greenlet',
3033
'idna',
3134
'Jinja2',
3235
'lxml', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
3336
'libsass',
34-
'mock',
37+
'MarkupSafe',
38+
'num2words',
3539
'ofxparse',
3640
'passlib',
3741
'pillow', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
@@ -40,7 +44,7 @@
4044
'psycopg2 >= 2.2',
4145
'pydot',
4246
'pyopenssl',
43-
'pypdf2',
47+
'PyPDF2',
4448
'pyserial',
4549
'python-dateutil',
4650
'python-stdnum',
@@ -49,16 +53,17 @@
4953
'qrcode',
5054
'reportlab', # windows binary pypi.python.org/pypi/reportlab
5155
'requests',
52-
'zeep',
56+
'urllib3',
5357
'vobject',
5458
'werkzeug',
59+
'xlrd',
5560
'xlsxwriter',
5661
'xlwt',
62+
'zeep',
5763
],
5864
python_requires='>=3.7',
5965
extras_require={
6066
'ldap': ['python-ldap'],
61-
'SSL': ['pyopenssl'],
6267
},
6368
tests_require=[
6469
'freezegun',

setup/package.dffedora

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Please note that this Dockerfile is used for testing nightly builds and should
22
# not be used to deploy Odoo
3-
FROM fedora:34
3+
FROM fedora:36
44
MAINTAINER Odoo S.A. <[email protected]>
55

66
# Dependencies and postgres
@@ -14,7 +14,9 @@ RUN dnf update -d 0 -e 0 -y && \
1414
postgresql-libs \
1515
postgresql-server \
1616
python3-PyPDF2 \
17+
python3-cryptography \
1718
python3-babel \
19+
python3-chardet \
1820
python3-dateutil \
1921
python3-decorator \
2022
python3-devel \
@@ -24,6 +26,7 @@ RUN dnf update -d 0 -e 0 -y && \
2426
python3-greenlet \
2527
python3-idna \
2628
python3-jinja2 \
29+
python3-libsass \
2730
python3-lxml \
2831
python3-markupsafe \
2932
python3-mock \
@@ -47,6 +50,7 @@ RUN dnf update -d 0 -e 0 -y && \
4750
python3-stdnum \
4851
python3-vobject \
4952
python3-werkzeug \
53+
python3-wheel \
5054
python3-xlrd \
5155
python3-xlsxwriter \
5256
python3-xlwt \

setup/rpm/odoo.spec

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ BuildArch: noarch
1515
Vendor: Odoo S.A. <[email protected]>
1616
Requires: sassc
1717
BuildRequires: python3-devel
18+
BuildRequires: pyproject-rpm-macros
1819
Url: https://www.odoo.com
1920

2021
%description
@@ -24,6 +25,9 @@ automation, marketing campaigns, help desk, POS, etc. Technical features include
2425
a distributed server, an object database, a dynamic GUI,
2526
customizable reports, and XML-RPC interfaces.
2627

28+
%generate_buildrequires
29+
%pyproject_buildrequires
30+
2731
%prep
2832
%autosetup
2933

0 commit comments

Comments
 (0)