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:
Yajo 2022-03-22 12:25:38 +00:00
parent c914064c9b
commit dc5f764654
6 changed files with 25 additions and 0 deletions

2
.gitignore vendored
View file

@ -6,3 +6,5 @@ debug/reqs.txt
result
debug/overrides.nix
!.github
*.egg-info
/build

4
.gitpod.yml Normal file
View 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
View file

@ -0,0 +1,5 @@
{
"recommendations": [
"ms-python.python"
]
}

3
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"python.testing.pytestEnabled": true
}

View file

@ -227,6 +227,8 @@ If a package is built by overriding nixpkgs, the following attributes are modifi
## 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.
[![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
- Currently mach-nix does not provide any functionality which supports you in publishing python projects, like [Poetry](https://python-poetry.org/) does for example.

View file

@ -6,6 +6,13 @@ pwd = dirname(abspath(__file__))
with open(pwd + '/mach_nix/VERSION') as f:
version = f.read().strip()
test_deps = [
'pytest',
]
extras = {
'test': test_deps,
}
setup(
name='mach-nix',
version=version,
@ -29,4 +36,6 @@ setup(
'toml',
'tree-format == 0.1.2',
],
tests_require=test_deps,
extras_require=extras,
)