Merge pull request #357 from sebpuetz/py-src-structure

Move Python source to subdirectory.
This commit is contained in:
Anthony MOI
2020-07-31 11:17:31 -04:00
committed by GitHub
23 changed files with 5 additions and 4 deletions

View File

@ -114,6 +114,6 @@ jobs:
run: |
python -m venv .env
source .env/bin/activate
pip install pytest requests maturin
maturin develop --release
pip install pytest requests setuptools_rust
python setup.py develop
make test

View File

@ -2,11 +2,11 @@
# Format source code automatically
style:
black --line-length 100 --target-version py35 examples tokenizers tests
black --line-length 100 --target-version py35 examples py_src/tokenizers tests
# Check the source code is formatted correctly
check-style:
black --check --line-length 100 --target-version py35 examples tokenizers tests
black --check --line-length 100 --target-version py35 examples py_src/tokenizers tests
# Launch the test suite
test:

View File

@ -31,6 +31,7 @@ setup(
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
package_dir={"": "py_src"},
packages=[
"tokenizers",
"tokenizers.models",