#67 Port to Python3
Closed 2 years ago by darknao. Opened 4 years ago by fbaumanis.
fedora-web/ fbaumanis/websites python3_port  into  master

file modified
+15 -15
@@ -1,25 +1,25 @@ 

- FROM fedora:29

+ FROM fedora:31

  

  WORKDIR /opt/sites/getfedora.org/

  

  RUN dnf -y install \

-     python-flask \

-     python-frozen-flask \

-     python-flask-assets \

-     python-rjsmin \

-     python-cssmin \

-     python-flask-babel \

-     python-flask-htmlmin \

-     python-cssutils \

+     python3-flask \

+     python3-frozen-flask \

+     python3-flask-assets \

+     python3-rjsmin \

+     python3-cssmin \

+     python3-flask-babel \

+     python3-flask-htmlmin \

+     python3-cssutils \

      rubygem-sass \

      babel \

      python3-jinja2 \

-     python-pyyaml \

-     python-dateutil \

-     python-dogpile-cache \

-     python-requests \

-     python-fedfind \

-     python-zanata-client && \

+     python3-pyyaml \

+     python3-dateutil \

+     python3-dogpile-cache \

+     python3-requests \

+     python3-fedfind \

+     python3-zanata-client && \

        dnf clean all

  

  ENV FLASK_APP main.py

file modified
+1 -5
@@ -5,10 +5,6 @@ 

  while true

  do

  	case "$1" in

- 	--py3)

- 		PYBINARY="python3"

- 		shift

- 		;;

  	--skip-trans)

  		SKIPTRANS="yes"

  		shift
@@ -21,7 +17,7 @@ 

  

  if [ ! "$#" -eq 1 -o ! -d "$1" ];

  then

- 	echo "Usage: $0 [--py3] [--skip-trans] <output-dir>"

+ 	echo "Usage: $0 [--skip-trans] <output-dir>"

  	exit 1

  fi

  OUTDIR="$1"

In this PR, the following changes were made:
- Update the Dockerfile to use Fedora 31 and download python3 packages
- Remove the python3 option from build-prod.sh

There will be another PR in the fedora-docs/websites repository, as the docker command for the flask webserver changed.

Closing as already implemented

Pull-Request has been closed by darknao

2 years ago
Metadata