Skip to content

Commit 571f1f5

Browse files
authored
First go at getting the publication stuff up there. (#52)
1 parent f6113c2 commit 571f1f5

3 files changed

Lines changed: 42 additions & 6 deletions

File tree

.github/workflows/pypi.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 }}

pyproject.toml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "servicex-local"
7-
version = "0.0.1"
87
description = "Enables a local backend for ServiceX"
98
readme = "README.md"
109
license = { 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

servicex_local/version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.0.1a1"

0 commit comments

Comments
 (0)