Skip to content

Commit

Permalink
switch to a src-layout; remove manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Feb 16, 2024
1 parent 1de2fca commit 5d183de
Show file tree
Hide file tree
Showing 19 changed files with 11 additions and 15 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ def clean(session):

shutil.rmtree("build", ignore_errors=True)
shutil.rmtree("dist", ignore_errors=True)
shutil.rmtree(f"{PROJECT}.egg-info", ignore_errors=True)
shutil.rmtree(f"src/{PROJECT}.egg-info", ignore_errors=True)
shutil.rmtree(".pytest_cache", ignore_errors=True)
shutil.rmtree(".venv", ignore_errors=True)

for d in ("standard_names", "tests"):
for d in ("src", "tests"):
with session.chdir(d):
for pattern in ["*.py[co]", "__pycache__", "*.c", "*.so"]:
_clean_rglob(pattern)
Expand Down
21 changes: 9 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,26 +84,23 @@ content-type = "text/markdown"
[tool.setuptools.dynamic.version]
attr = "standard_names._version.__version__"

[tool.setuptools.package-data]
standard_names = [
"data/*.txt",
]

[tool.setuptools.packages.find]
where = [
".",
]
namespaces = true
include = [
"standard_names*",
"src",
]

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
line_length = 88
profile = "black"

[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"standard_names",
"src/standard_names",
"tests",
]
norecursedirs = [
Expand All @@ -127,4 +124,4 @@ doctest_optionflags = [

[tool.zest-releaser]
tag-format = "v{version}"
python-file-with-version = "standard_names/_version.py"
python-file-with-version = "src/standard_names/_version.py"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5d183de

Please sign in to comment.