From 1855164e3accd8b60a8558d5072056d6e5d727f5 Mon Sep 17 00:00:00 2001 From: Hailin Wang Date: Tue, 18 Jun 2024 14:43:44 +0800 Subject: [PATCH] The package can be compatible with both Python 2 and Python 3 --- binder/__init__.py | 2 +- pyproject.toml | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/binder/__init__.py b/binder/__init__.py index 218adb22..0f7f8fd1 100644 --- a/binder/__init__.py +++ b/binder/__init__.py @@ -40,4 +40,4 @@ def _get_version(): return _default_version -__version__: str = _get_version() +__version__ = _get_version() diff --git a/pyproject.toml b/pyproject.toml index 3d8df0a0..1e7f2d12 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,18 @@ authors = [ ] classifiers = [ "Programming Language :: Python", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.6", + "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.0", + "Programming Language :: Python :: 3.1", + "Programming Language :: Python :: 3.2", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", @@ -21,7 +32,8 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ] -requires-python = ">=3.8" +requires-python = ">=2.6" +dependencies = ["pathlib; python_version<'3.4'"] [project.urls] Homepage = "https://github.com/RosettaCommons/binder/" @@ -52,7 +64,7 @@ cmake.define.LLVM_ENABLE_PROJECTS = "clang" # Wheel configuration wheel.packages = ["binder"] -wheel.py-api = "py3" +wheel.py-api = "py2.py3" wheel.expand-macos-universal-tags = true [tool.cibuildwheel]