File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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@v3
13+ - name : Set up Python
14+ uses : actions/setup-python@v4
15+ with :
16+ python-version : 3.9
17+ - name : Install dependencies
18+ run : |
19+ python -m pip install --upgrade pip
20+ pip install hatch
21+ - name : Build the package
22+ run : |
23+ # Extract version number from github.ref and write to version.txt
24+ version=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///')
25+ echo "__version__=\"$version\"" > servicex_local/version.txt
26+ hatch build
27+ - name : Publish a func_adl to PyPI
28+ uses : pypa/gh-action-pypi-publish@v1.3.1
29+ with :
30+ user : __token__
31+ password : ${{ secrets.pypi_password_func_adl }}
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " servicex-local"
7- version = " 0.0.1"
87description = " Enables a local backend for ServiceX"
98readme = " README.md"
109license = { text = " BSD-3-Clause" }
@@ -33,14 +32,19 @@ dependencies = [
3332 " click" ,
3433 " make-it-sync" ,
3534]
35+ dynamic = [" version" ]
3636
3737[project .urls ]
38+
3839# Documentation = "https://servicex.readthedocs.io/"
39- # Homepage = "https://github.com/ssl-hep/ServiceX_frontend"
40- # "Issue Tracker" = "https://github.com/ssl-hep/ServiceX_frontend/issues"
41- # "Release Notes" = "https://github.com/ssl-hep/ServiceX_frontend/releases"
42- # "Releases" = "https://github.com/ssl-hep/ServiceX_frontend/releases"
43- # "Source Code" = "https://github.com/ssl-hep/ServiceX_frontend"
40+ "Homepage" = " https://github.com/gordonwatts/ServiceX-Local"
41+ "Issue Tracker" = " https://github.com/gordonwatts/ServiceX-Local/issues"
42+ "Release Notes" = " https://github.com/gordonwatts/ServiceX-Local/releases"
43+ "Releases" = " https://github.com/gordonwatts/ServiceX-Local/releases"
44+ "Source Code" = " https://github.com/gordonwatts/ServiceX-Local"
45+
46+ [tool .hatch .version ]
47+ path = " servicex_local/version.txt"
4448
4549[project .optional-dependencies ]
4650
Original file line number Diff line number Diff line change 1+ __version__ = "0.0.1a1"
You can’t perform that action at this time.
0 commit comments