Skip to content

Commit 535c729

Browse files
committed
Drop unnecessary cffi dependency, set python_requires.
1 parent effab2d commit 535c729

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ COPY --from=jsBuilder /src .
1111
RUN python3 -m venv /isso \
1212
&& . /isso/bin/activate \
1313
&& pip3 install --no-cache-dir --upgrade pip \
14-
&& pip3 install --no-cache-dir gunicorn cffi flask \
14+
&& pip3 install --no-cache-dir gunicorn flask \
1515
&& python setup.py install \
1616
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
1717

setup.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88
requires = ['itsdangerous', 'Jinja2', 'misaka>=2.0,<3.0', 'html5lib',
99
'werkzeug>=1.0', 'bleach', 'Flask-Caching>=1.9']
1010

11-
if sys.version_info < (3, ):
12-
raise SystemExit("Python 2 is not supported.")
13-
elif (3, 0) <= sys.version_info < (3, 5):
14-
raise SystemExit("Python 3 versions < 3.5 are not supported.")
15-
1611
setup(
1712
name='isso',
1813
version='0.12.5',
@@ -24,6 +19,7 @@
2419
url='https://github.com/posativ/isso/',
2520
license='MIT',
2621
description='lightweight Disqus alternative',
22+
python_requires='>=3.5',
2723
classifiers=[
2824
"Development Status :: 4 - Beta",
2925
"Topic :: Internet",
@@ -36,7 +32,6 @@
3632
"Programming Language :: Python :: 3.8"
3733
],
3834
install_requires=requires,
39-
setup_requires=["cffi>=1.3.0"],
4035
entry_points={
4136
'console_scripts':
4237
['isso = isso:main'],

0 commit comments

Comments
 (0)