File tree Expand file tree Collapse file tree 4 files changed +56
-8
lines changed Expand file tree Collapse file tree 4 files changed +56
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
kind : pipeline
3
3
type : docker
4
- name : default
4
+ name : review
5
5
6
6
platform :
7
7
os : linux
@@ -11,13 +11,50 @@ steps:
11
11
- name : test
12
12
image : python:3.7.5-alpine
13
13
commands :
14
- - pip install -U tox
15
- - tox
14
+ - pip install -U tox
15
+ - tox
16
16
17
17
trigger :
18
18
branch :
19
- - master
19
+ - master
20
20
event :
21
- - pull_request
21
+ - pull_request
22
+
23
+ ---
24
+ kind : pipeline
25
+ type : docker
26
+ name : release
27
+
28
+ platform :
29
+ os : linux
30
+ arch : amd64
31
+
32
+ steps :
33
+ - name : build
34
+ image : python:3.7.5-alpine
35
+ commands :
36
+ - python setup.py sdist bdist_wheel
37
+ environment :
38
+ VERSION : ${DRONE_TAG##v}
39
+
40
+ - name : release
41
+ image : python:3.7.5
42
+ commands :
43
+ - pip install --user --upgrade twine
44
+ - ./upload
45
+ environment :
46
+ PASSWORD :
47
+ from_secret : pypi_token
48
+ USERNAME : __token__
49
+
50
+ trigger :
51
+ event :
52
+ - tag
53
+ ref :
54
+ - refs/tags/v*
55
+
56
+ ---
57
+ kind : signature
58
+ hmac : c5572884fdd2183d7c63100530974a649f4607ee18c813570741d7a63f31cfae
22
59
23
60
...
Original file line number Diff line number Diff line change 1
- [ ![ Build Status] ( https://drone.polygon.io/api/badges/Polygon -io/polygon- client-python/status.svg )] ( https://drone.polygon.io/Polygon -io/polygon- client-python )
1
+ [ ![ Build Status] ( https://drone.polygon.io/api/badges/polygon -io/client-python/status.svg )] ( https://drone.polygon.io/polygon -io/client-python )
2
2
3
3
# Polygon Python Client - WebSocket & RESTful APIs
4
4
Original file line number Diff line number Diff line change 2
2
3
3
from setuptools import setup , find_packages
4
4
5
+ import os
6
+ import sys
7
+
8
+ version = os .getenv ("VERSION" )
9
+ if not version :
10
+ print ("no version supplied" )
11
+ sys .exit (1 )
12
+
5
13
setup (
6
14
name = "polygon-api-client" ,
7
- version = "0.0.1" ,
15
+ version = version ,
8
16
description = "Polygon API client" ,
9
17
10
- url = "https://github.com/Polygon-io/polygon- client-python" ,
18
+ url = "https://github.com/Polygon-io/client-python" ,
11
19
packages = find_packages (),
12
20
classifiers = [
13
21
"License :: OSI Approved :: MIT License" ,
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ python -m twine upload --username ${USERNAME} --password ${PASSWORD} dist/*
You can’t perform that action at this time.
0 commit comments