feat: support Gitpod
Just click on the readme badge and get into a full development environment with python, pytest and test debugging integration.
This commit is contained in:
parent
c914064c9b
commit
dc5f764654
6 changed files with 25 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -6,3 +6,5 @@ debug/reqs.txt
|
||||||
result
|
result
|
||||||
debug/overrides.nix
|
debug/overrides.nix
|
||||||
!.github
|
!.github
|
||||||
|
*.egg-info
|
||||||
|
/build
|
4
.gitpod.yml
Normal file
4
.gitpod.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# See https://www.gitpod.io/docs/config-gitpod-file
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- init: pip install -e .[test]
|
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"ms-python.python"
|
||||||
|
]
|
||||||
|
}
|
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"python.testing.pytestEnabled": true
|
||||||
|
}
|
|
@ -227,6 +227,8 @@ If a package is built by overriding nixpkgs, the following attributes are modifi
|
||||||
## Contributing
|
## Contributing
|
||||||
Contributions to this project are welcome in the form of GitHub PRs. If you are planning to make any considerable changes, you should first present your plans in a GitHub issue so it can be discussed.
|
Contributions to this project are welcome in the form of GitHub PRs. If you are planning to make any considerable changes, you should first present your plans in a GitHub issue so it can be discussed.
|
||||||
|
|
||||||
|
[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/DavHau/mach-nix)
|
||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
- Currently mach-nix does not provide any functionality which supports you in publishing python projects, like [Poetry](https://python-poetry.org/) does for example.
|
- Currently mach-nix does not provide any functionality which supports you in publishing python projects, like [Poetry](https://python-poetry.org/) does for example.
|
||||||
|
|
||||||
|
|
9
setup.py
9
setup.py
|
@ -6,6 +6,13 @@ pwd = dirname(abspath(__file__))
|
||||||
with open(pwd + '/mach_nix/VERSION') as f:
|
with open(pwd + '/mach_nix/VERSION') as f:
|
||||||
version = f.read().strip()
|
version = f.read().strip()
|
||||||
|
|
||||||
|
test_deps = [
|
||||||
|
'pytest',
|
||||||
|
]
|
||||||
|
extras = {
|
||||||
|
'test': test_deps,
|
||||||
|
}
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='mach-nix',
|
name='mach-nix',
|
||||||
version=version,
|
version=version,
|
||||||
|
@ -29,4 +36,6 @@ setup(
|
||||||
'toml',
|
'toml',
|
||||||
'tree-format == 0.1.2',
|
'tree-format == 0.1.2',
|
||||||
],
|
],
|
||||||
|
tests_require=test_deps,
|
||||||
|
extras_require=extras,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue