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
38 changes: 38 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [ created ]

jobs:
deploy-generic:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'


- name: Install the latest version of uv and activate the environment
uses: astral-sh/setup-uv@v6
with:
activate-environment: true

- name: Install Dependencies
run: uv sync --frozen

- name: Build and Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
uv build
twine upload dist/*
38 changes: 38 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run Tests

on:
push:
branches: [ master, develop, test ]
pull_request:
branches: [ master, develop ]

jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install the latest version of uv and activate the environment
uses: astral-sh/setup-uv@v6
with:
activate-environment: true

- name: Install dependencies
run: uv sync --frozen

- name: Lint with ruff
run: ruff check

- name: Test with pytest
run: pytest
5 changes: 0 additions & 5 deletions .pep8speaks.yml

This file was deleted.

16 changes: 10 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: mixed-line-ending
- id: trailing-whitespace
Expand All @@ -9,8 +9,12 @@ repos:
- id: check-byte-order-marker
- id: debug-statements
- id: check-yaml
- repo: https://github.com/ambv/black
rev: stable
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.12.1
hooks:
- id: black
args: [--config=.black.toml]
# Run the linter.
- id: ruff-check
args: [ --fix ]
# Run the formatter.
- id: ruff-format
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

10 changes: 10 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Changelog
=========

Version 1.0.0
-------------

- Fixing warning about escape sequences
- Fixing default of defaultlist
- Changing testing from Travis CI to github actions
- Removing Python 2.x support
- Removing scandir options
- Removing tests for web

Version 0.9.6
-------------

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014-2020 Chris Griffith
Copyright (c) 2014-2025 Chris Griffith

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
87 changes: 0 additions & 87 deletions Makefile

This file was deleted.

13 changes: 3 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,19 @@ Reusables is on PyPI, so can be easily installed with pip or easy_install.
pip install reusables


There are no required decencies. If this doesn't work, it's broken, raise
a github issue.
There are no required decencies. If this doesn't work, it's broken, raise a github issue.

Reusables is designed to not require any imports outside the standard library,
but can be supplemented with those found in the requirements.txt file for
additional functionality.

CI tests run on:

* Python 2.6+
* Python 3.3+
* Pypy
* Python 3.6+

Examples are provided below, and the API documentation can always be found at
readthedocs.org_.

Please note this is currently in development. Any item in development
prior to a major version (1.x, 2.x) may change. Once at a major version,
no breaking changes are planned to occur within that version.

What's included
---------------

Expand Down Expand Up @@ -394,7 +387,7 @@ License

The MIT License (MIT)

Copyright (c) 2014-2020 Chris Griffith
Copyright (c) 2014-2025 Chris Griffith

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

# General information about the project.
project = "Reusables"
copyright = "2014-2020, Chris Griffith"
copyright = "2014-2025, Chris Griffith"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
Loading