-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup workflow file and adjusting version number
- Loading branch information
1 parent
f5da321
commit 671d302
Showing
4 changed files
with
43 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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." | ||
|
@@ -20,7 +20,7 @@ dependencies = [ | |
"cobaya", | ||
"getdist", | ||
"classy_sz", | ||
"pyautogen_cmbagent>=0.5.3", | ||
"cmbagent_autogen>=0.0.6post1", | ||
"ruamel.yaml", | ||
"pandas", | ||
"ipython" | ||
|
@@ -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" | ||
|
||
|
||
|
||
|