Skip to content

Commit

Permalink
[FIX] packaging: set fedora 36 as base for rpm
Browse files Browse the repository at this point in the history
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#102457

Signed-off-by: Christophe Monniez (moc) <[email protected]>
  • Loading branch information
d-fence committed Oct 10, 2022
1 parent 6b45cd5 commit 20920ae
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 49 deletions.
44 changes: 0 additions & 44 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,50 +1,6 @@
[install]
optimize=1

[bdist_rpm]
no-autoreq = yes
install-script = setup/redhat/install.sh
post-install = setup/redhat/postinstall.sh

requires =
sassc
python(abi) >= 3.8
python3-babel
python3-decorator
python3-docutils
python3-freezegun
python3-gevent
python3-greenlet
python3-idna
python3-jinja2
python3-lxml
python3-markupsafe
python3-mock
python3-num2words
python3-ofxparse
python3-passlib
python3-pillow
python3-psutil
python3-psycopg2
python3-polib
python3-pydot
python3-PyPDF2
python3-pyOpenSSL
python3-pyserial
python3-dateutil
python3-pytz
python3-pyusb
python3-qrcode
python3-reportlab
python3-requests
python3-six
python3-stdnum
python3-vobject
python3-werkzeug
python3-xlwt
python3-xlrd
python3-zeep

[flake8]
extend-exclude =
.git,
Expand Down
13 changes: 9 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@
include_package_data=True,
install_requires=[
'babel >= 1.0',
'chardet',
'cryptography',
'decorator',
'docutils',
'gevent',
'greenlet',
'idna',
'Jinja2',
'lxml', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
'libsass',
'mock',
'MarkupSafe',
'num2words',
'ofxparse',
'passlib',
'pillow', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
Expand All @@ -40,7 +44,7 @@
'psycopg2 >= 2.2',
'pydot',
'pyopenssl',
'pypdf2',
'PyPDF2',
'pyserial',
'python-dateutil',
'python-stdnum',
Expand All @@ -49,16 +53,17 @@
'qrcode',
'reportlab', # windows binary pypi.python.org/pypi/reportlab
'requests',
'zeep',
'urllib3',
'vobject',
'werkzeug',
'xlrd',
'xlsxwriter',
'xlwt',
'zeep',
],
python_requires='>=3.7',
extras_require={
'ldap': ['python-ldap'],
'SSL': ['pyopenssl'],
},
tests_require=[
'freezegun',
Expand Down
6 changes: 5 additions & 1 deletion setup/package.dffedora
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Please note that this Dockerfile is used for testing nightly builds and should
# not be used to deploy Odoo
FROM fedora:34
FROM fedora:36
MAINTAINER Odoo S.A. <[email protected]>

# Dependencies and postgres
Expand All @@ -14,7 +14,9 @@ RUN dnf update -d 0 -e 0 -y && \
postgresql-libs \
postgresql-server \
python3-PyPDF2 \
python3-cryptography \
python3-babel \
python3-chardet \
python3-dateutil \
python3-decorator \
python3-devel \
Expand All @@ -24,6 +26,7 @@ RUN dnf update -d 0 -e 0 -y && \
python3-greenlet \
python3-idna \
python3-jinja2 \
python3-libsass \
python3-lxml \
python3-markupsafe \
python3-mock \
Expand All @@ -47,6 +50,7 @@ RUN dnf update -d 0 -e 0 -y && \
python3-stdnum \
python3-vobject \
python3-werkzeug \
python3-wheel \
python3-xlrd \
python3-xlsxwriter \
python3-xlwt \
Expand Down
4 changes: 4 additions & 0 deletions setup/rpm/odoo.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ BuildArch: noarch
Vendor: Odoo S.A. <[email protected]>
Requires: sassc
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
Url: https://www.odoo.com

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

%generate_buildrequires
%pyproject_buildrequires

%prep
%autosetup

Expand Down

0 comments on commit 20920ae

Please sign in to comment.