Skip to content

Commit

Permalink
The package can be compatible with both Python 2 and Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
haiiliin committed Jun 18, 2024
1 parent 88e630f commit 1855164
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion binder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ def _get_version():
return _default_version


__version__: str = _get_version()
__version__ = _get_version()
16 changes: 14 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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/"
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 1855164

Please sign in to comment.