Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build Test
Comment thread
swainn marked this conversation as resolved.

on:
pull_request:

jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: Install build
run: python -m pip install build

- name: Build package
run: python -m build
52 changes: 52 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Publish to PyPI

on:
push:
tags:
- "v*"

jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: Install build
run: python -m pip install build

- name: Build package
run: python -m build

- name: Upload distribution artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/

publish:
name: Publish to PyPI
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/condorpy
permissions:
contents: read
id-token: write
Comment thread
Copilot marked this conversation as resolved.
steps:
- name: Download distribution artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ install:
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION scp paramiko
- source activate test-environment

- python setup.py install
- pip install .
- pip install coverage coveralls

# command to run tests
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
CondorPy
========
:condorpy: Python interface for high throughput computing with HTCondor
:Version: 0.6.0
:Version: see latest tag
:Author: Scott Christensen
:Team: Tethys Platform
:Homepage: http://tethysplatform.org/condorpy/
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Installing from Source
======================
::

$ python setup.py install
$ pip install .


Getting Started
Expand Down
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"

[project]
name = "condorpy"
dynamic = ["version"]
description = "A Python wrapper for HTCondor's cli"
readme = "README.rst"
Comment thread
swainn marked this conversation as resolved.
license = { text = "BSD 2-Clause License" }
authors = [
{ name = "Scott Christensen", email = "sdc50@byu.net" },
]
keywords = ["htcondor", "distributed-computing", "job-scheduling"]
dependencies = ["scp", "paramiko"]

[project.urls]
Homepage = "http://tethysplatform.org/condorpy/"

[tool.setuptools.packages.find]
where = ["."]

[tool.setuptools_scm]
49 changes: 0 additions & 49 deletions setup.py

This file was deleted.

Loading