This repository was archived by the owner on Sep 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +32
-6
lines changed Expand file tree Collapse file tree 4 files changed +32
-6
lines changed Original file line number Diff line number Diff line change 21
21
22
22
- name : Install dependencies
23
23
run : |
24
- python -m pip install -r requirements.txt
25
- python -m pip install -r test/requirements.txt
24
+ python -m pip install -e .[tests]
26
25
27
26
- name : Check code format with Black
28
27
run : |
35
34
36
35
- name : Test with pytest
37
36
run : |
38
- PYTHONPATH=$PWD python -m pytest test/
37
+ python -m pytest test/
Original file line number Diff line number Diff line change @@ -319,10 +319,10 @@ Advanced users could extend existing frameworks to implement customized behavior
319
319
320
320
``` bash
321
321
# Install test requirements:
322
- pip install -r test/requirements.txt
322
+ pip install -e .[tests]
323
323
324
324
# Run unit tests:
325
- PYTHONPATH= $PWD pytest test/
325
+ pytest test/
326
326
327
327
# Automatically reformat code:
328
328
black .
Original file line number Diff line number Diff line change 1
- https://github.com/SYSTRAN/storages/archive/3601019941cca224e42dc1c1435355ebcb6d2cfd.tar.gz
1
+ systran-storages @ https://github.com/SYSTRAN/storages/archive/3601019941cca224e42dc1c1435355ebcb6d2cfd.tar.gz
2
2
jsonschema == 3.*
3
3
pyonmttok == 1.31.0
4
4
requests == 2.*
Original file line number Diff line number Diff line change
1
+ import os
2
+
3
+ from setuptools import find_packages , setup
4
+
5
+
6
+ def _load_requirements (path ):
7
+ with open (path , encoding = "utf-8" ) as requirements :
8
+ return [requirement .strip () for requirement in requirements ]
9
+
10
+
11
+ base_dir = os .path .dirname (os .path .abspath (__file__ ))
12
+ install_requires = _load_requirements (os .path .join (base_dir , "requirements.txt" ))
13
+ tests_require = _load_requirements (os .path .join (base_dir , "test" , "requirements.txt" ))
14
+
15
+ setup (
16
+ name = "nmt-wizard-docker" ,
17
+ version = "0.1.0" ,
18
+ license = "MIT" ,
19
+ description = "Dockerization of NMT frameworks" ,
20
+ author = "OpenNMT" ,
21
+ python_requires = ">=3.6" ,
22
+ install_requires = install_requires ,
23
+ extras_require = {
24
+ "tests" : tests_require ,
25
+ },
26
+ packages = find_packages (include = ["nmtwizard" ]),
27
+ )
You can’t perform that action at this time.
0 commit comments