Skip to content

Drop support for Python 3.6 and 3.7 #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 25, 2022
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
10 changes: 1 addition & 9 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,8 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.8'

- name: Install build
run: pip install build

- name: Build sdist
run: python -m build -s
run: pipx run build --sdist

- uses: actions/upload-artifact@v3
with:
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
BINDIR = $(VIRTUALENV)/bin
PYTHON ?= python3
VIRTUALENV = venv
VIRTUALENV = .venv

all: test
all: build

compile_commands.json:
bear -- $(PYTHON) setup.py build_ext -qf

.PHONY: venv
venv: $(VIRTUALENV)/freeze.txt
.PHONY: build
build: $(VIRTUALENV)/freeze.txt

$(VIRTUALENV)/freeze.txt: requirements.txt
$(PYTHON) -m venv $(@D)
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Jump Consistent Hash
:target: https://github.com/lithammer/python-jump-consistent-hash/actions

Python and C implementation of the jump consistent hash algorithm by John
Lamping and Eric Veach[1]. Tested on Python 3.6+.
Lamping and Eric Veach[1]. Tested on Python 3.8+.

Install
-------
Expand Down
40 changes: 36 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,41 @@
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
requires = ["setuptools>=61", "setuptools-scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[project]
name = "jump-consistent-hash"
description = "Implementation of the Jump Consistent Hash algorithm"
readme = "README.rst"
license = {text = "MIT"}
requires-python = ">=3.8"

classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
keywords = ["jump", "consistent", "hash", "jumphash", "algorithm"]

dynamic = ["version"]

[[project.authors]]
name = "Peter Lithammer"
email = "peter.lithammer@gmail.com"

[project.urls]
Source = "https://github.com/lithammer/python-jump-consistent-hash"
Issues = "https://github.com/lithammer/python-jump-consistent-hash/issues"
Changelog = "https://github.com/lithammer/python-jump-consistent-hash/releases"
Documentation = "https://github.com/lithammer/python-jump-consistent-hash#readme"

[tool.setuptools_scm]

[tool.cibuildwheel]
Expand Down Expand Up @@ -29,12 +63,10 @@ warn_unused_configs = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{36,37,38,39,310,311},black,flake8,mypy
envlist = py{38,39,310,311},black,flake8,mypy

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
black==21.5b2
flake8==3.9.2
mypy==0.812
pytest==6.2.5
tox==3.23.1
black==22.10.0
flake8==5.0.4
mypy==0.982
pytest==7.2.0
tox==3.26.0
47 changes: 0 additions & 47 deletions setup.cfg

This file was deleted.