Skip to content

Commit 5ade5de

Browse files
authored
Version 1.0.0 (#61)
- Fixing default of defaultlist - Changing testing from Travis CI to github actions - Removing Python 2.x support - Removing scandir options - Removing tests for web
1 parent f581d8f commit 5ade5de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1647
-516
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Upload Python Package
5+
6+
on:
7+
release:
8+
types: [ created ]
9+
10+
jobs:
11+
deploy-generic:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.13'
22+
23+
24+
- name: Install the latest version of uv and activate the environment
25+
uses: astral-sh/setup-uv@v6
26+
with:
27+
activate-environment: true
28+
29+
- name: Install Dependencies
30+
run: uv sync --frozen
31+
32+
- name: Build and Publish
33+
env:
34+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
35+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
36+
run: |
37+
uv build
38+
twine upload dist/*

.github/workflows/tests.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches: [ master, develop, test ]
6+
pull_request:
7+
branches: [ master, develop ]
8+
9+
jobs:
10+
test:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Install the latest version of uv and activate the environment
27+
uses: astral-sh/setup-uv@v6
28+
with:
29+
activate-environment: true
30+
31+
- name: Install dependencies
32+
run: uv sync --frozen
33+
34+
- name: Lint with ruff
35+
run: ruff check
36+
37+
- name: Test with pytest
38+
run: pytest

.pep8speaks.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.5.0
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
44
hooks:
55
- id: mixed-line-ending
66
- id: trailing-whitespace
@@ -9,8 +9,12 @@ repos:
99
- id: check-byte-order-marker
1010
- id: debug-statements
1111
- id: check-yaml
12-
- repo: https://github.com/ambv/black
13-
rev: stable
12+
- repo: https://github.com/astral-sh/ruff-pre-commit
13+
# Ruff version.
14+
rev: v0.12.1
1415
hooks:
15-
- id: black
16-
args: [--config=.black.toml]
16+
# Run the linter.
17+
- id: ruff-check
18+
args: [ --fix ]
19+
# Run the formatter.
20+
- id: ruff-format

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

CHANGES.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Changelog
22
=========
33

4+
Version 1.0.0
5+
-------------
6+
7+
- Fixing warning about escape sequences
8+
- Fixing default of defaultlist
9+
- Changing testing from Travis CI to github actions
10+
- Removing Python 2.x support
11+
- Removing scandir options
12+
- Removing tests for web
13+
414
Version 0.9.6
515
-------------
616

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014-2020 Chris Griffith
3+
Copyright (c) 2014-2025 Chris Griffith
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

Makefile

Lines changed: 0 additions & 87 deletions
This file was deleted.

README.rst

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,19 @@ Reusables is on PyPI, so can be easily installed with pip or easy_install.
3535
pip install reusables
3636
3737
38-
There are no required decencies. If this doesn't work, it's broken, raise
39-
a github issue.
38+
There are no required decencies. If this doesn't work, it's broken, raise a github issue.
4039

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

4544
CI tests run on:
4645

47-
* Python 2.6+
48-
* Python 3.3+
49-
* Pypy
46+
* Python 3.6+
5047

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

54-
Please note this is currently in development. Any item in development
55-
prior to a major version (1.x, 2.x) may change. Once at a major version,
56-
no breaking changes are planned to occur within that version.
57-
5851
What's included
5952
---------------
6053

@@ -394,7 +387,7 @@ License
394387

395388
The MIT License (MIT)
396389

397-
Copyright (c) 2014-2020 Chris Griffith
390+
Copyright (c) 2014-2025 Chris Griffith
398391

399392
Permission is hereby granted, free of charge, to any person obtaining a copy of
400393
this software and associated documentation files (the "Software"), to deal in

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
# General information about the project.
6565
project = "Reusables"
66-
copyright = "2014-2020, Chris Griffith"
66+
copyright = "2014-2025, Chris Griffith"
6767

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

0 commit comments

Comments
 (0)