Skip to content

Commit 43ec35b

Browse files
authored
Merge pull request #1 from NarrativeScience/requests-bump
Requests bump
2 parents 916f0f7 + fcaaafb commit 43ec35b

File tree

6 files changed

+106
-22
lines changed

6 files changed

+106
-22
lines changed

.circleci/config.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
version: 2.1
2+
3+
orbs:
4+
ghpr: narrativescience/[email protected]
5+
6+
commands:
7+
install-deps:
8+
description: Install dependencies
9+
steps:
10+
- run:
11+
name: Install dependencies
12+
command: |
13+
pip install flit
14+
15+
jobs:
16+
test:
17+
docker:
18+
- image: circleci/python:3.5-jessie-browsers
19+
steps:
20+
- checkout
21+
- run:
22+
name: 'Setup virtual env'
23+
command: |
24+
python3 -m venv venv
25+
source venv/bin/activate
26+
pip install -U pip setuptools python-dateutil==2.6.1 msgpack-python requests==2.24.0
27+
pip install .[dev]
28+
- run:
29+
name: 'run tests'
30+
command: |
31+
source venv/bin/activate
32+
python -m unittest
33+
test-build:
34+
docker:
35+
- image: circleci/python:3.6
36+
steps:
37+
- ghpr/build-prospective-branch
38+
- install-deps
39+
- run: flit build
40+
- ghpr/post-pr-comment:
41+
comment: Tests failed!
42+
when: on_fail
43+
publish:
44+
docker:
45+
- image: circleci/python:3.6
46+
steps:
47+
- checkout
48+
- run: pip install flit
49+
- run: flit build
50+
- run: flit publish
51+
52+
workflows:
53+
pull_request:
54+
jobs:
55+
- test:
56+
filters:
57+
branches:
58+
ignore:
59+
- master
60+
- test-build:
61+
requires:
62+
- test
63+
filters:
64+
branches:
65+
ignore:
66+
- master
67+
publish:
68+
jobs:
69+
- publish:
70+
filters:
71+
tags:
72+
only: /v[0-9]+(\.[0-9]+)*/
73+
branches:
74+
ignore: /.*/

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,6 @@ ENV/
8787

8888
# Rope project settings
8989
.ropeproject
90+
91+
# IDE stuff
92+
.idea

circle.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[build-system]
2+
requires = ["flit_core >=2,<3"]
3+
build-backend = "flit_core.buildapi"
4+
5+
[tool.flit.metadata]
6+
module = "stitchclient"
7+
author = "Narrative Science"
8+
author-email = "[email protected]"
9+
dist-name = "python-stitch-client"
10+
home-page = "https://github.com/NarrativeScience/python-stitch-client"
11+
description-file = "README.md"
12+
requires = [
13+
"python-dateutil==2.6.1",
14+
"msgpack-python",
15+
"requests==2.24.0",
16+
]
17+
classifiers = ['Programming Language :: Python :: 3 :: Only']
18+
requires-python = ">=3.5.7,<4"
19+
20+
[tool.flit.sdist]
21+
include = ["LICENSE"]
22+
exclude = ["tests/"]

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import subprocess
55

66
setup(name="stitchclient",
7-
version="0.7.0",
7+
version="0.8.0.post1",
88
description="A Stitch API client for Python",
99
author="Stitch",
1010
author_email="[email protected]",
@@ -14,5 +14,6 @@
1414
install_requires=[
1515
"python-dateutil==2.6.1",
1616
"msgpack-python",
17-
"requests==2.20.0",
18-
])
17+
"requests==2.24.0",
18+
]
19+
)

stitchclient/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""Library for working with the stitch client in python"""
2+
3+
__version__ = "0.8.0.post1"

0 commit comments

Comments
 (0)