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

chore: move dev deps into project.optional-dependencies #731

Merged
merged 3 commits into from
Sep 2, 2024
Merged
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
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ git submodule update --init
tox
```

NOTE: You'll also want to install the "dev" extra in any development environment you're using
that's not managed by tox (by changing install commands `gcalcli`->`gcalcli[dev]` or
`.`->`.[dev]`).

See [tests/README.md](tests/README.md) for more info on the tests.
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ dependencies = [
"parsedatetime",
"python-dateutil",
"truststore",
# dev dependencies
"google-api-python-client-stubs",
"types-python-dateutil",
"types-requests",
"types-vobject",
]

[project.urls]
Expand All @@ -46,6 +41,12 @@ Issues = "https://github.com/insanum/gcalcli/issues"
Changelog = "https://github.com/insanum/gcalcli/blob/HEAD/ChangeLog"

[project.optional-dependencies]
dev = [
"google-api-python-client-stubs",
"types-python-dateutil",
"types-requests",
"types-vobject",
]
vobject = ["vobject"]

[tool.setuptools]
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ requires =
envlist = lint, type, py3{10,11,12}, cli

[testenv]
usedevelop=true
usedevelop = true
deps = pytest
pytest-cov
coverage
vobject
extras = dev

commands=py.test -vv --cov=./gcalcli --pyargs tests {posargs}
coverage html
Expand Down
Loading