Skip to content

Commit

Permalink
Merge pull request #110 from micro-manager/src-layout
Browse files Browse the repository at this point in the history
Use src-layout in the source tree
  • Loading branch information
marktsuchida authored Jan 19, 2024
2 parents 5d3aea8 + 6cbbfe4 commit 50360fe
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ dist/

wheelhouse/

pymmcore/pymmcore_swig_wrap.h
pymmcore/pymmcore_swig_wrap.cpp
pymmcore/_pymmcore_swig.cpython*
pymmcore/pymmcore_swig.py
src/pymmcore/pymmcore_swig_wrap.h
src/pymmcore/pymmcore_swig_wrap.cpp
src/pymmcore/_pymmcore_swig.*
src/pymmcore/pymmcore_swig.py
pymmcore.egg-info
.mypy_cache/

4 changes: 2 additions & 2 deletions maintainer-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ prefixed to the version:
```bash
git checkout main
vim pymmcore/_version.py # Remove .dev0
vim src/pymmcore/_version.py # Remove .dev0
git commit -a -m 'Version 1.2.3.42.4'
git tag -a v1.2.3.42.4 -m Release
vim pymmcore/_version.py # Set version to 1.2.3.42.5.dev0
vim src/pymmcore/_version.py # Set version to 1.2.3.42.5.dev0
git commit -a -m 'Version back to dev'
git push upstream --follow-tags
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ dependencies = ["numpy >=1.12.0"]
homepage = "https://micro-manager.org"
repository = "https://github.com/micro-manager/pymmcore"


[tool.setuptools.dynamic]
version = { attr = "pymmcore._version.__version__" }

[tool.setuptools.packages.find]
include = ["pymmcore*"]
[tool.setuptools.package-dir]
"" = "src"

[tool.setuptools.package-data]
"*" = ["py.typed", ".pyi"]
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def run(self):

mmcore_extension = Extension(
f"{PKG_NAME}._{SWIG_MOD_NAME}",
sources=mmcore_sources + [os.path.join(PKG_NAME, f"{SWIG_MOD_NAME}.i")],
sources=mmcore_sources + [os.path.join(
"src", PKG_NAME, f"{SWIG_MOD_NAME}.i",
)],
swig_opts=[
"-c++",
"-py3",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 50360fe

Please sign in to comment.