Move main source code into src subdirectory
This avoids certain problems related to the entire repo root appearing on the import path, usually when running Python/pip from the repo root or when using an editable install.
This commit is contained in:
parent
b1e5e7c96e
commit
f891a6ee00
|
@ -43,15 +43,15 @@ keywords =
|
||||||
zip_safe = False
|
zip_safe = False
|
||||||
python_requires = >=3.6
|
python_requires = >=3.6
|
||||||
packages = find:
|
packages = find:
|
||||||
|
package_dir =
|
||||||
|
= src
|
||||||
|
|
||||||
[options.package_data]
|
[options.package_data]
|
||||||
rsrcfork =
|
rsrcfork =
|
||||||
py.typed
|
py.typed
|
||||||
|
|
||||||
[options.packages.find]
|
[options.packages.find]
|
||||||
include =
|
where = src
|
||||||
rsrcfork
|
|
||||||
rsrcfork.*
|
|
||||||
|
|
||||||
[options.entry_points]
|
[options.entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
|
@ -77,7 +77,7 @@ blank-lines-indent = always
|
||||||
indent-tabs-def = 1
|
indent-tabs-def = 1
|
||||||
|
|
||||||
[mypy]
|
[mypy]
|
||||||
files=rsrcfork/**/*.py
|
files=src/**/*.py
|
||||||
python_version = 3.6
|
python_version = 3.6
|
||||||
|
|
||||||
disallow_untyped_calls = True
|
disallow_untyped_calls = True
|
||||||
|
|
Loading…
Reference in New Issue