File tree Expand file tree Collapse file tree 5 files changed +43
-9
lines changed Expand file tree Collapse file tree 5 files changed +43
-9
lines changed Original file line number Diff line number Diff line change 23
23
with :
24
24
python-version : ${{ matrix.python-version }}
25
25
- name : Install dependencies
26
+ env :
27
+ servicex_version : 1.0a1
26
28
run : |
27
29
python -m pip install --upgrade pip setuptools wheel
28
30
pip install --no-cache-dir -e .[test]
Original file line number Diff line number Diff line change
1
+ name : Push to PyPI
2
+
3
+ on :
4
+ release :
5
+ types : [released, prereleased]
6
+
7
+ jobs :
8
+ publish :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Set up Python
14
+ uses : actions/setup-python@v2
15
+ with :
16
+ python-version : 3.7
17
+ - name : Install dependencies
18
+ run : |
19
+ python -m pip install --upgrade pip build
20
+ - name : Build the servicex wheel
21
+ env :
22
+ servicex_version : ${{ github.ref }}
23
+ run : |
24
+ python -m build --sdist --wheel
25
+ - name : Publish servicex to PyPI
26
+ uses : pypa/gh-action-pypi-publish@v1.3.1
27
+ with :
28
+ user : __token__
29
+ password : ${{ secrets.pypi_password_servicex }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 31
31
" dont" ,
32
32
" fget" ,
33
33
" fname" ,
34
+ " getenv" ,
34
35
" gitlab" ,
35
36
" inmem" ,
36
37
" jupyter" ,
48
49
" numpy" ,
49
50
" pathlib" ,
50
51
" pnfs" ,
52
+ " prereleased" ,
51
53
" protomolecule" ,
52
54
" ptetaphi" ,
55
+ " pypa" ,
56
+ " pypi" ,
53
57
" pytest" ,
54
58
" qastle" ,
55
59
" qsize" ,
56
60
" rootfiles" ,
57
61
" rucio" ,
62
+ " sdist" ,
58
63
" secretkey" ,
59
64
" servicex" ,
60
65
" servicexabc" ,
Original file line number Diff line number Diff line change 2
2
from setuptools import find_packages # noqa: F401
3
3
from distutils .core import setup
4
4
import sys
5
+ import os
5
6
6
7
# Use the readme as the long description.
7
8
with open ("README.md" , "r" ) as fh :
14
15
if sys .version_info [1 ] < 8 :
15
16
extra_test_packages .append ('asyncmock' )
16
17
18
+ version = os .getenv ('servicex_version' )
19
+ if version is None :
20
+ raise Exception ('servicex_version env var is not set' )
21
+ version = version .split ('/' )[- 1 ]
22
+
17
23
setup (name = "servicex" ,
18
- version = '2.0.0' ,
24
+ version = version ,
19
25
packages = ['servicex' ],
20
26
scripts = [],
21
27
description = "Front-end for the ServiceX Data Server" ,
You can’t perform that action at this time.
0 commit comments