Skip to content

Commit

Permalink
Merge pull request #116 from icecube/pypi_setup
Browse files Browse the repository at this point in the history
Inital setup for publishing releases to PyPI
  • Loading branch information
martwo authored Jan 9, 2023
2 parents a960e94 + 971822e commit 7452fab
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/python_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel", "versioneer"]
build-backend = "setuptools.build_meta"
11 changes: 6 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[metadata]
name = skyllh
description =The SkyLLH framework is an open-source Python3-based package licensed under the GPLv3 license. It provides a modular framework for implementing custom likelihood functions and executing log-likelihood ratio hypothesis tests. The idea is to provide a class structure tied to the mathematical objects of the likelihood functions, rather than to entire abstract likelihood models.
description = The SkyLLH framework is an open-source Python3-based package licensed under the GPLv3 license. It provides a modular framework for implementing custom likelihood functions and executing log-likelihood ratio hypothesis tests. The idea is to provide a class structure tied to the mathematical objects of the likelihood functions.
long_description = file:README.md
long_description_content_type = text/markdown
url = https://github.com/icecube/skyllh
author_email = XXXXXXX
author = XXXXX
requires_python = >=3.8.0
author_email = [email protected]
author = Martin Wolf
requires_python = >=3.6.0
license = GPL-3+

classifiers =
Expand All @@ -15,11 +15,12 @@ classifiers =
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Operating System :: POSIX
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.6
Topic :: Scientific/Engineering :: Physics

project_urls =
Bug Tracker = https://github.com/icecube/skyllh/issues
Documentation = https://icecube.github.io/skyllh
Source Code = https://github.com/icecube/skyllh


Expand Down

0 comments on commit 7452fab

Please sign in to comment.