Merge pull request #920 from kvch/gh-pages
add first blog entry on python3 support
This commit is contained in:
		
						commit
						ac2ec877b4
					
				
							
								
								
									
										1
									
								
								docs/_themes/searx_theme/relations.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								docs/_themes/searx_theme/relations.html
									
									
									
									
										vendored
									
									
								
							| @ -3,6 +3,7 @@ | |||||||
| <ul> | <ul> | ||||||
|     <li><a href="{{ pathto('index') }}">Home</a></li> |     <li><a href="{{ pathto('index') }}">Home</a></li> | ||||||
|     <li><a href="https://github.com/asciimoo/searx">Source</a></li> |     <li><a href="https://github.com/asciimoo/searx">Source</a></li> | ||||||
|  |     <li><a href="{{ pathto('blog/blog') }}">Blog</a></li> | ||||||
|     <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li> |     <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li> | ||||||
|     <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li> |     <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li> | ||||||
| </ul> | </ul> | ||||||
|  | |||||||
							
								
								
									
										7
									
								
								docs/blog/blog.rst
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								docs/blog/blog.rst
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | |||||||
|  | Blog | ||||||
|  | ==== | ||||||
|  | 
 | ||||||
|  | .. toctree:: | ||||||
|  |    :maxdepth: 1 | ||||||
|  | 
 | ||||||
|  |    python3 | ||||||
							
								
								
									
										54
									
								
								docs/blog/python3.rst
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								docs/blog/python3.rst
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,54 @@ | |||||||
|  | Introducing Python3 support | ||||||
|  | =========================== | ||||||
|  | 
 | ||||||
|  | As most operation systems are coming with Python3 installed by default. So it is time for searx to support Python3. But don't worry support of Python2.7 won't be dropped. | ||||||
|  | 
 | ||||||
|  | .. image:: hurray.png | ||||||
|  |     :scale: 50 % | ||||||
|  |     :alt: hurray | ||||||
|  |     :align: center | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | How to run searx using Python3 | ||||||
|  | ------------------------------ | ||||||
|  | 
 | ||||||
|  | Please make sure that you run at least Python3.5. | ||||||
|  | 
 | ||||||
|  | To run searx, first a Python3 virtualenv should be created. After entering the virtualenv, | ||||||
|  | dependencies must be installed. Then run searx with python3 instead of the usual python command. | ||||||
|  | 
 | ||||||
|  | .. code:: sh | ||||||
|  | 
 | ||||||
|  |     virtualenv -p python3 venv3 | ||||||
|  |     source venv3/bin/activate | ||||||
|  |     pip3 install -r requirements.txt | ||||||
|  |     python3 searx/webapp.py | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | If you want to run searx using Python2.7, you don't have to do anything differently as before. | ||||||
|  | 
 | ||||||
|  | Fun facts | ||||||
|  | --------- | ||||||
|  | 
 | ||||||
|  | - 115 files were changed when implementing the support for both Python versions. | ||||||
|  | 
 | ||||||
|  | - All of the dependencies was compatible except for the robotframework used for browser tests. Thus, these tests were migrated to splinter. So from now on both versions are being tested on Travis and can be tested locally. | ||||||
|  | 
 | ||||||
|  | If you found bugs... | ||||||
|  | -------------------- | ||||||
|  | 
 | ||||||
|  | ...please open an issue on `GitHub`_. Make sure that you mention your Python version in your issue, | ||||||
|  | so we can investigate it properly. | ||||||
|  | 
 | ||||||
|  | .. _GitHub: https://github.com/asciimoo/searx/issues | ||||||
|  | 
 | ||||||
|  | Acknowledgement | ||||||
|  | --------------- | ||||||
|  | 
 | ||||||
|  | This development was sponsored by `NLnet Foundation`_. | ||||||
|  | 
 | ||||||
|  | .. _NLnet Foundation: https://nlnet.nl/ | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | | Happy hacking. | ||||||
|  | | kvch // 2017.05.13 22:57 | ||||||
							
								
								
									
										
											BIN
										
									
								
								docs/blog/searxpy3.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/blog/searxpy3.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 30 KiB | 
		Loading…
	
		Reference in New Issue
	
	Block a user