Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add devpy configuration #28

Open
wants to merge 1 commit into
base: add-meson-build-files
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ MANIFEST
################
# setup.py working directory
build
build-install
# sphinx build directory
doc/_build
# setup.py dist directory
Expand Down
19 changes: 19 additions & 0 deletions dev.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env python
#
# Example stub for running `python -m dev.py`
#
# Copy this into your project root.

import os
import sys
import runpy

sys.path.remove(os.path.abspath(os.path.dirname(sys.argv[0])))
try:
runpy.run_module("devpy", run_name="__main__")
except ImportError:
print("Cannot import devpy; please install it using")
print()
print(" pip install git+https://github.com/scientific-python/devpy")
print()
sys.exit(1)
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -466,3 +466,10 @@ directory = "coverage_html_report"
[tool.codespell]
ignore-words-list = "blocs, coo, hist, nd, sav, ser, recuse"
ignore-regex = 'https://([\w/\.])+'

[tool.devpy]
package = 'pandas'

[tool.devpy.commands]
"Build" = ["devpy.build", "devpy.test"]
"Environments" = ["devpy.shell", "devpy.ipython", "devpy.python"]
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,4 @@ requests
sphinx-toggleprompt
meson[ninja] @ git+https://github.com/mesonbuild/meson.git@master
git+https://github.com/mesonbuild/meson-python.git@main
git+https://github.com/scientific-python/devpy