From 6e9dcca93dc017a8ca3a816cfc15f27d9d52ff59 Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Sun, 24 Feb 2019 20:53:11 +0100 Subject: [PATCH] readme: update for Python 3.7 --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ffcbeca..c8c7bdc 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # NyaaV2 [![Build Status](https://travis-ci.org/nyaadevs/nyaa.svg?branch=master)](https://travis-ci.org/nyaadevs/nyaa) ## Setting up for development -This project uses Python 3.6. There are features used that do not exist in 3.5, so make sure to use Python 3.6. +This project uses Python 3.7. There are features used that do not exist in 3.6, so make sure to use Python 3.7. This guide also assumes you 1) are using Linux and 2) are somewhat capable with the commandline. It's not impossible to run Nyaa on Windows, but this guide doesn't focus on that. @@ -16,13 +16,13 @@ The `tests` folder contains tests for the the `nyaa` module and the webserver. T - Run `./dev.py test` while in the repository directory. ### Setting up Pyenv -pyenv eases the use of different Python versions, and as not all Linux distros offer 3.6 packages, it's right up our alley. +pyenv eases the use of different Python versions, and as not all Linux distros offer 3.7 packages, it's right up our alley. - Install dependencies https://github.com/pyenv/pyenv/wiki/Common-build-problems - Install `pyenv` https://github.com/pyenv/pyenv/blob/master/README.md#installation - Install `pyenv-virtualenv` https://github.com/pyenv/pyenv-virtualenv/blob/master/README.md -- Install Python 3.6.1 with `pyenv` and create a virtualenv for the project: - - `pyenv install 3.6.1` - - `pyenv virtualenv 3.6.1 nyaa` +- Install Python 3.7.2 with `pyenv` and create a virtualenv for the project: + - `pyenv install 3.7.2` + - `pyenv virtualenv 3.7.2 nyaa` - `pyenv activate nyaa` - Install dependencies with `pip install -r requirements.txt` - Copy `config.example.py` into `config.py`