Skip to content

Commit 0402666

Browse files
committed
migrate to Poetry
1 parent 8762652 commit 0402666

File tree

4 files changed

+65
-13
lines changed

4 files changed

+65
-13
lines changed

.github/workflows/CI.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [master]
7+
8+
jobs:
9+
tests:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["3.7", "3.8", "3.9", "3.10"]
14+
15+
steps:
16+
- uses: actions/checkout@v2.4.0
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2.3.2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Bootstrap poetry
24+
shell: bash
25+
run: curl -sSL https://install.python-poetry.org | python3 -
26+
27+
- name: Configure poetry
28+
shell: bash
29+
run: poetry config virtualenvs.in-project true
30+
31+
- name: Install dependencies
32+
shell: bash
33+
run: poetry install
34+
35+
- name: Run pytest
36+
shell: bash
37+
run: poetry run python -m phabricator.tests.test_phabricator

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
build/
66
dist/
77
.idea
8+
poetry.lock

.travis.yml

-13
This file was deleted.

pyproject.toml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[tool.poetry]
2+
name = "phabricator"
3+
version = "0.8.1"
4+
description = "Phabricator API Bindings"
5+
authors = ["Disqus <opensource@disqus.com>"]
6+
classifiers=[
7+
'Intended Audience :: Developers',
8+
'Intended Audience :: System Administrators',
9+
'Operating System :: OS Independent',
10+
'Topic :: Software Development',
11+
'Programming Language :: Python',
12+
'Programming Language :: Python :: 2',
13+
'Programming Language :: Python :: 2.7',
14+
'Programming Language :: Python :: 3',
15+
'Programming Language :: Python :: 3.5',
16+
]
17+
18+
[tool.poetry.dependencies]
19+
python = "^3.7"
20+
21+
[tool.poetry.dev-dependencies]
22+
mock = "^4.0.3"
23+
responses = "^0.18.0"
24+
25+
[build-system]
26+
requires = ["poetry-core>=1.0.0"]
27+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)