Skip to content

Commit

Permalink
Merge pull request #14 from ayalash/udpates
Browse files Browse the repository at this point in the history
  • Loading branch information
vmalloc authored Aug 27, 2024
2 parents 6fa7423 + af45b8b commit bb2c9eb
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 60 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:
# manually triggered

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup venv
run: |
python -m venv .env
.env/bin/pip install '.[testing]'
- name: Tests
run: .env/bin/pytest -v
- name: Tests with Flux
run: |
.env/bin/pip install flux
.env/bin/pytest -v
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

33 changes: 33 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[build-system]
requires = ["hatchling>=0.25.1", "hatch-vcs"]
build-backend = "hatchling.build"


[project]
name = "waiting"
description = "Utility for waiting for stuff to happen"
readme = "README.rst"
requires-python = ">=3.8"
license = { text = "BSD 3-Clause License" }

classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

dependencies = []
dynamic = ["version"]

authors = [{ name = "Rotem Yaari", email = "[email protected]" }]

[project.urls]
"Homepage" = "https://github.com/getslash/waiting"

[project.optional-dependencies]
testing = ["pyforge", "pytest"]

[tool.hatch.version]
source = "vcs"
23 changes: 0 additions & 23 deletions setup.cfg

This file was deleted.

10 changes: 0 additions & 10 deletions setup.py

This file was deleted.

3 changes: 1 addition & 2 deletions waiting/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import inspect
import sys

from .__version__ import __version__
from .__version__ import __version__ as __version__
from contextlib import contextmanager

try:
Expand Down
5 changes: 3 additions & 2 deletions waiting/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import pkg_resources
from importlib.metadata import distribution

__version__ = pkg_resources.get_distribution('waiting').version

__version__ = distribution("waiting").version

0 comments on commit bb2c9eb

Please sign in to comment.