Skip to content

Commit

Permalink
Move to src layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews committed Jan 30, 2025
1 parent 2097903 commit c7e3123
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Run doctest
run: |
pytest -v gridit --doctest-modules
pytest -v --doctest-modules src
- name: Run tests with older packages
if: matrix.python-version == '3.9'
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Autogenerated file
gridit/_version.py
src/gridit/_version.py

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@ Repository = "https://github.com/mwtoews/gridit"
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "gridit/_version.py"
version-file = "src/gridit/_version.py"

[tool.hatch.build.targets.sdist]
only-include = ["gridit", "tests"]
only-include = ["src", "tests"]

[tool.hatch.build.targets.wheel]
sources = ["src"]

[tool.pytest.ini_options]
testpaths = [
Expand Down
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 c7e3123

Please sign in to comment.