Skip to content

Commit 79d0576

Browse files
committed
Use poetry for development
- [Poetry][1] is a Python packaging and dependency management [1]: https://python-poetry.org/
1 parent bd024a6 commit 79d0576

File tree

3 files changed

+268
-3
lines changed

3 files changed

+268
-3
lines changed

.github/workflows/python.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
pip install responses
30-
python3 setup.py install
29+
pip install poetry
30+
poetry install
3131
- name: Run Tests
32-
run: python3 -m unittest
32+
run: poetry run pytest

poetry.lock

Lines changed: 239 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[tool.poetry]
2+
name = "razorpay-python"
3+
version = "1.3.1"
4+
description = "Razorpay Python Client"
5+
authors = ["Akash Kothawale <[email protected]>"]
6+
license = "MIT"
7+
readme = "README.md"
8+
packages = [{include = "razorpay"}]
9+
10+
[tool.poetry.dependencies]
11+
python = "^3.9"
12+
13+
14+
[tool.poetry.group.dev.dependencies]
15+
pytest = "^7.1.3"
16+
responses = "^0.21.0"
17+
18+
[build-system]
19+
requires = ["poetry-core"]
20+
build-backend = "poetry.core.masonry.api"
21+
22+
[tool.pytest.ini_options]
23+
addopts = "-v"
24+
testpaths = [
25+
"tests",
26+
]

0 commit comments

Comments
 (0)