Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Bump to v0.3.6 (#79)
Browse files Browse the repository at this point in the history
* Update HISTORY.md
* Bump version: 0.3.5 → 0.3.6
* Use trusted publisher
  • Loading branch information
dachengx authored Jan 15, 2024
1 parent 3e7ad86 commit d045288
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 27 deletions.
3 changes: 1 addition & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[bumpversion]
current_version = 0.3.5
current_version = 0.3.6
files = setup.py epix/__init__.py
commit = True
tag = True

46 changes: 23 additions & 23 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# This workflow will upload epix to PyPi using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package
name: PyPI

on:
release:
types: [created]
# Allow manual build if tests are failing first time
workflow_dispatch:
release:
types: [ created ]

jobs:
deploy:

build:
runs-on: ubuntu-latest

permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
# Setup steps
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: Checkout repo
uses: actions/checkout@v3

- name: Install dependencies
run: pip install wheel

- name: Build package
run: python setup.py sdist bdist_wheel

- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
6 changes: 6 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.3.6 (2024-01-15)
==================
* Fix G4 event number selection with cut_by_eventid (#75)
* `np.int` is deprecated (#78)
* Fix epix to allow version bump (#77)

0.3.5 (2023-09-13)
==================
* Custom microclustering and beta-yields generator (#73)
Expand Down
2 changes: 1 addition & 1 deletion epix/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.3.5'
__version__ = '0.3.6'

from .common import *
from .io import *
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setuptools.setup(
name='epix',
version='0.3.5',
version='0.3.6',
description='Electron and Photon Instructions generator for XENON',
author='epix contributors, the XENON collaboration',
url='https://github.com/XENONnT/epix',
Expand Down

0 comments on commit d045288

Please sign in to comment.