Skip to content
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
47 changes: 42 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
kind: pipeline
type: docker
name: default
name: review

platform:
os: linux
Expand All @@ -11,13 +11,50 @@ steps:
- name: test
image: python:3.7.5-alpine
commands:
- pip install -U tox
- tox
- pip install -U tox
- tox

trigger:
branch:
- master
- master
event:
- pull_request
- pull_request

---
kind: pipeline
type: docker
name: release

platform:
os: linux
arch: amd64

steps:
- name: build
image: python:3.7.5-alpine
commands:
- python setup.py sdist bdist_wheel
environment:
VERSION: ${DRONE_TAG##v}

- name: release
image: python:3.7.5
commands:
- pip install --user --upgrade twine
- ./upload
environment:
PASSWORD:
from_secret: pypi_token
USERNAME: __token__

trigger:
event:
- tag
ref:
- refs/tags/v*

---
kind: signature
hmac: c5572884fdd2183d7c63100530974a649f4607ee18c813570741d7a63f31cfae

...
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://drone.polygon.io/api/badges/Polygon-io/polygon-client-python/status.svg)](https://drone.polygon.io/Polygon-io/polygon-client-python)
[![Build Status](https://drone.polygon.io/api/badges/polygon-io/client-python/status.svg)](https://drone.polygon.io/polygon-io/client-python)

# Polygon Python Client - WebSocket & RESTful APIs

Expand Down
12 changes: 10 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@

from setuptools import setup, find_packages

import os
import sys

version = os.getenv("VERSION")
if not version:
print("no version supplied")
sys.exit(1)

setup(
name="polygon-api-client",
version="0.0.1",
version=version,
description="Polygon API client",
author_email="ricky@polygon.io",
url="https://github.com/Polygon-io/polygon-client-python",
url="https://github.com/Polygon-io/client-python",
packages=find_packages(),
classifiers=[
"License :: OSI Approved :: MIT License",
Expand Down
3 changes: 3 additions & 0 deletions upload
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

python -m twine upload --username ${USERNAME} --password ${PASSWORD} dist/*