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
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ current_version = 0.1.12
commit = True
tag = True

[bumpversion:file:setup.py]
[bumpversion:file:pyproject.toml]
[bumpversion:file:.bumpversion.cfg]

[git]
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish Python 🐍 distributions 📦 to PyPI
name: Build, Bump Version, and Publish to PyPI

on:
push:
branches:
- main # Replace with the branch you want to trigger the workflow on
- main # Only publish from main branch

jobs:
build-n-publish:
Expand Down Expand Up @@ -33,10 +33,7 @@ jobs:
run: |
pip install -r test-requirements.txt
python -m unittest discover -s tests
- name: Install pandoc
run: |
sudo apt-get update
sudo apt-get install -y pandoc
# Pandoc no longer needed - using markdown directly
- name: Install pypa/build
run: python -m pip install build
- name: Build a binary wheel and a source tarball
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test Build

on:
push:
branches-ignore:
- main # Don't run on main since publish workflow handles it
pull_request:
branches:
- main

jobs:
test-build:
name: Test Build Python 🐍 distributions 📦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
pip install -r test-requirements.txt
python -m unittest discover -s tests
- name: Install pypa/build
run: python -m pip install build twine
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/
- name: Check distribution
run: twine check dist/*
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
55 changes: 54 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,55 @@
[build-system]
requires = ["setuptools", "wheel", "pypandoc"]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "queuepipeio"
version = "0.1.12"
description = "A pipe-based I/O library for efficient data transfer between threads with filtering support"
readme = "README.md"
requires-python = ">=3.8"
license = "Apache-2.0"
authors = [
{name = "Your Name", email = "your.email@example.com"}, # TODO: Update
]
maintainers = [
{name = "Your Name", email = "your.email@example.com"}, # TODO: Update
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"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",
"Operating System :: OS Independent",
]
dependencies = [
"tqdm",
]

[project.optional-dependencies]
dev = [
"boto3",
"black",
"flake8",
"bump2version",
"build",
"twine",
]
test = [
"boto3",
]

[project.urls]
Homepage = "https://github.com/yourusername/queuepipeio" # TODO: Update
Repository = "https://github.com/yourusername/queuepipeio" # TODO: Update
Issues = "https://github.com/yourusername/queuepipeio/issues" # TODO: Update

[tool.setuptools]
packages = ["queuepipeio"]

[tool.setuptools.package-data]
queuepipeio = ["py.typed"]
19 changes: 0 additions & 19 deletions setup.py

This file was deleted.