Skip to content

Commit cf2362b

Browse files
authored
Merge pull request #20 from reecetech/feature/upd-pyproject
Feature/upd pyproject
2 parents d7de1e3 + 3199184 commit cf2362b

File tree

4 files changed

+50
-57
lines changed

4 files changed

+50
-57
lines changed

.pylintrc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,16 @@ persistent=no
55
disable=cyclic-import,
66
duplicate-code,
77
fixme,
8-
locally-disabled,
9-
locally-enabled,
10-
relative-import,
11-
star-args,
128
too-few-public-methods,
139
too-many-instance-attributes,
1410
raise-missing-from,
11+
abstract-method
1512

1613
[REPORTS]
1714
output-format=colorized
1815
reports=no
1916

2017
[BASIC]
21-
bad-functions=
2218
include-naming-hint=yes
2319

2420
[FORMAT]

Dockerfile.testing

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,36 @@ FROM python:3.10 AS py310
2424
RUN echo "${PYTHON_VERSION}" > /tmp/py310-latest
2525

2626
##------------------------------------------------------------------------------
27-
FROM centos:7 AS base
28-
29-
# EPEL needed for openssl 1.1.x
30-
RUN yum clean all \
31-
&& yum update -y \
32-
&& yum install -y \
33-
epel-release \
34-
nmap-ncat \
35-
unixODBC \
36-
&& yum clean all \
37-
&& rm -rf /var/yum/cache
27+
FROM rockylinux:9 AS base
28+
29+
RUN dnf makecache \
30+
&& dnf update -y \
31+
&& dnf install -y --allowerasing \
32+
curl \
33+
dnf-plugins-core \
34+
&& dnf config-manager --set-enabled crb \
35+
&& dnf install -y \
36+
bzip2-devel \
37+
findutils \
38+
gcc \
39+
gcc-c++ \
40+
git \
41+
libffi-devel \
42+
make \
43+
openssl-devel \
44+
python-devel \
45+
python3-pip \
46+
wget \
47+
xz \
48+
zlib-devel \
49+
sqlite-devel \
50+
unixODBC-devel \
51+
nc \
52+
&& dnf clean all
3853

3954
##------------------------------------------------------------------------------
4055
FROM base AS builder-base
4156

42-
RUN yum install -y \
43-
make \
44-
yum-utils
45-
46-
RUN yum-builddep -y python3
47-
48-
# For pyodbc
49-
RUN yum install -y \
50-
unixODBC-devel
51-
52-
# Python >= 3.10 needs openssl 1.1.x
53-
RUN yum install -y \
54-
openssl11-devel
55-
5657
RUN mkdir /usr/local/openssl11 \
5758
&& cd /usr/local/openssl11 \
5859
&& ln -s /usr/lib64/openssl11 lib \
@@ -77,8 +78,8 @@ RUN export PYTHON_VERSION="$(cat /tmp/py${py_ver}-latest)" \
7778

7879
RUN export PYTHON_VERSION="$(cat /tmp/py${py_ver}-latest)" \
7980
&& cd "/tmp/Python-${PYTHON_VERSION}" \
80-
&& ./configure --prefix=/opt/py${py_ver} --with-openssl=/usr/local/openssl11 \
81-
&& make install
81+
&& ./configure --prefix=/opt/py${py_ver} --enable-optimizations \
82+
&& make -j 4 altinstall
8283

8384
USER root
8485
ENV PATH=/opt/py${py_ver}/bin:"${PATH}"
@@ -110,8 +111,8 @@ RUN export PYTHON_VERSION="$(cat /tmp/py${py_ver}-latest)" \
110111

111112
RUN export PYTHON_VERSION="$(cat /tmp/py${py_ver}-latest)" \
112113
&& cd "/tmp/Python-${PYTHON_VERSION}" \
113-
&& ./configure --prefix=/opt/py${py_ver} --with-openssl=/usr/local/openssl11 \
114-
&& make install
114+
&& ./configure --prefix=/opt/py${py_ver} --enable-optimizations \
115+
&& make -j 4 altinstall
115116

116117
USER root
117118
ENV PATH=/opt/py${py_ver}/bin:"${PATH}"
@@ -143,8 +144,8 @@ RUN export PYTHON_VERSION="$(cat /tmp/py${py_ver}-latest)" \
143144

144145
RUN export PYTHON_VERSION="$(cat /tmp/py${py_ver}-latest)" \
145146
&& cd "/tmp/Python-${PYTHON_VERSION}" \
146-
&& ./configure --prefix=/opt/py${py_ver} --with-openssl=/usr/local/openssl11 \
147-
&& make install
147+
&& ./configure --prefix=/opt/py${py_ver} --enable-optimizations \
148+
&& make -j 4 altinstall
148149

149150
USER root
150151
ENV PATH=/opt/py${py_ver}/bin:"${PATH}"
@@ -176,8 +177,8 @@ RUN export PYTHON_VERSION="$(cat /tmp/py${py_ver}-latest)" \
176177

177178
RUN export PYTHON_VERSION="$(cat /tmp/py${py_ver}-latest)" \
178179
&& cd "/tmp/Python-${PYTHON_VERSION}" \
179-
&& ./configure --prefix=/opt/py${py_ver} --with-openssl=/usr/local/openssl11 \
180-
&& make install
180+
&& ./configure --prefix=/opt/py${py_ver} --enable-optimizations \
181+
&& make -j 4 altinstall
181182

182183
USER root
183184
ENV PATH=/opt/py${py_ver}/bin:"${PATH}"

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ classifiers=[
2828

2929
dynamic = ["version", "readme"]
3030

31+
dependencies = [
32+
"django >= 3.2.0, < 5",
33+
"django_informixdb ~= 1.11.4",
34+
"hvac ~= 0.10.4",
35+
"pyodbc >= 4.0.0, < 5"
36+
]
37+
38+
[optional-dependencies]
39+
dev = ['check-manifest']
40+
all =['%(test)s']
41+
test = ['coverage']
42+
3143
[[project.authors]]
3244
name = "Reecetech"
3345
email = "opensource@reecetech.com.au"
@@ -42,3 +54,6 @@ text = "APLv2"
4254
[tool.setuptools.dynamic]
4355
version = {attr = "django_informixdb_vault.VERSION"}
4456
readme = {file = "README.rst"}
57+
58+
[tool.distutils.bdist_wheel]
59+
universal = true

setup.cfg

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
[options]
2-
packages = find:
3-
install_requires =
4-
django >= 3.2.0, < 5
5-
django_informixdb ~= 1.11.3
6-
hvac ~= 0.10.4
7-
pyodbc ~= 4.0.21
8-
9-
[options.extras_require]
10-
dev =
11-
check-manifest
12-
test =
13-
coverage
14-
all =
15-
%(test)s
16-
17-
[bdist_wheel]
18-
universal=1
19-
201
[aliases]
212
test=pytest
223

0 commit comments

Comments
 (0)