Skip to content

Commit

Permalink
setup workflow file and adjusting version number
Browse files Browse the repository at this point in the history
  • Loading branch information
borisbolliet committed Dec 15, 2024
1 parent f5da321 commit 671d302
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 107 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: python-package

on:
# push:
# branches:
# - main
workflow_dispatch:
release:
types: [published]

permissions: # Ensure the workflow has permission to push changes
# contents: write # Allow write access for pushing to the repository

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
87 changes: 0 additions & 87 deletions .github/workflows/python-publish.yml

This file was deleted.

17 changes: 1 addition & 16 deletions cmbagent/version.py
Original file line number Diff line number Diff line change
@@ -1,16 +1 @@
# file generated by setuptools_scm
# don't change, don't track in version control
TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple, Union
VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
VERSION_TUPLE = object

version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = '0.1.dev199+g712bb53.d20241214'
__version_tuple__ = version_tuple = (0, 1, 'dev199', 'g712bb53.d20241214')
__version__ = "0.0.1post1"
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ requires = [
build-backend = "setuptools.build_meta"

[project]
version = "0.0.0" # Will be overwritten by setuptools-scm
version = "0.0.1post1"
name = "cmbagent"
maintainers = [{name = "CMBAgents Team", email = "[email protected]"}]
description = "Multi-agent system for data analysis, made by cosmologists, powered by autogen."
Expand All @@ -20,7 +20,7 @@ dependencies = [
"cobaya",
"getdist",
"classy_sz",
"pyautogen_cmbagent>=0.5.3",
"cmbagent_autogen>=0.0.6post1",
"ruamel.yaml",
"pandas",
"ipython"
Expand All @@ -40,8 +40,8 @@ cmbagent = [
Homepage = "https://github.com/CMBAgents/cmbagent"
GitHub = "https://github.com/CMBAgents/cmbagent"

[tool.setuptools_scm]
write_to = "cmbagent/version.py"
#[tool.setuptools_scm]
#write_to = "cmbagent/version.py"



Expand Down

0 comments on commit 671d302

Please sign in to comment.