Commit 1e8f0810ced4fb1552717c8c07f5b213ecf21d79

Authored by Miguel Barão
1 parent 1d65b0b7
Exists in master and in 1 other branch dev

update setup.py and mypy

- python3.10
- mistune<2 because it's incompatible
Showing 3 changed files with 12 additions and 10 deletions   Show diff stats
README.md
1 1 # Getting Started
2 2  
3   -Latest review: 2021-11-08
  3 +Latest review: 2022-04-04
4 4  
5 5 ## Installation
6 6  
... ... @@ -27,7 +27,7 @@ operating system default.
27 27 ```sh
28 28 sudo pkg install python3 py38-sqlite3 # FreeBSD
29 29 sudo apt install python3 # Linux (Ubuntu)
30   -sudo port install python39 # MacOS
  30 +sudo port install python310 # MacOS
31 31 ```
32 32  
33 33 ### Install pip
... ... @@ -37,15 +37,18 @@ Install `pip` from the system package manager:
37 37 ```sh
38 38 sudo pkg install py38-pip # FreeBSD
39 39 sudo apt install python3-pip # Linux (Ubuntu)
40   -sudo port install py39-pip # MacOS
  40 +sudo port install py310-pip # MacOS
41 41 ```
42 42  
43 43 In the end you should be able to run `pip --version` and `python3 -c "import
44 44 sqlite3"` without errors.
45 45 In some systems, `pip` can be named `pip3`, `pip3.8` or `pip-3.8`, etc.
46 46  
47   -Packages should **not** be installed system-wide. To install locally in the user
48   -area, edit the configuration file `~/.config/pip/pip.conf` (FreeBSD, Linux) or
  47 +Packages should **not** be installed system-wide. Either install them to a
  48 +python virtual environment or in the user area.
  49 +
  50 +To install in the user area use `pip install --user some_package` or edit the
  51 +configuration file `~/.config/pip/pip.conf` (FreeBSD, Linux) or
49 52 `Library/Application Support/pip/pip.conf` (MacOS) and add the lines
50 53  
51 54 ```ini
... ... @@ -62,7 +65,7 @@ pip install git+https://git.xdi.uevora.pt/mjsb/aprendizations.git
62 65 Python packages are usually installed in:
63 66  
64 67 * `~/.local/lib/python3.8/site-packages/` in Linux/FreeBSD.
65   -* `~/Library/python/3.9/lib/python/site-packages/` in MacOS.
  68 +* `~/Library/python/3.10/lib/python/site-packages/` in MacOS.
66 69  
67 70 When aprendizations is installed with pip, all the dependencies are also
68 71 installed.
... ... @@ -72,7 +75,7 @@ installed in
72 75  
73 76 ```sh
74 77 ~/.local/bin # Linux/FreeBSD
75   -~/Library/Python/3.9/bin # MacOS
  78 +~/Library/Python/3.10/bin # MacOS
76 79 ```
77 80  
78 81 and can be run from the terminal:
... ...
mypy.ini
1 1 [mypy]
2   -python_version = 3.9
  2 +python_version = 3.10
3 3 plugins = sqlalchemy.ext.mypy.plugin
4 4  
5 5 ; [mypy-pygments.*]
... ...
setup.py
... ... @@ -21,7 +21,7 @@ setup(
21 21 python_requires='>=3.8.*',
22 22 install_requires=[
23 23 'tornado>=6.0',
24   - 'mistune',
  24 + 'mistune<2',
25 25 'pyyaml>=5.1',
26 26 'pygments',
27 27 'sqlalchemy>=1.4',
... ... @@ -32,7 +32,6 @@ setup(
32 32 'console_scripts': [
33 33 'aprendizations = aprendizations.main:main',
34 34 'initdb-aprendizations = aprendizations.initdb:main',
35   - # 'redirect = aprendizations.redirect:main',
36 35 ]
37 36 },
38 37 classifiers=[
... ...