Skip to content

Commit

Permalink
chore: claim python 3.11 (#32)
Browse files Browse the repository at this point in the history
Signed-off-by: Timon Wong <timon86.wang@gmail.com>

Signed-off-by: Timon Wong <timon86.wang@gmail.com>
  • Loading branch information
timonwong authored Oct 27, 2022
1 parent ee73e5c commit 624ad66
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ tag_template = "v{new_version}"

[[tool.tbump.file]]
src = "setup.py"
search = 'version="{current_version}"'
search = '^version="{current_version}"$'

[[tool.tbump.file]]
src = "cyksuid/__version__.py"
Expand Down
21 changes: 19 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,25 @@ def test_supports_compile_arg(self, comm: Union[str, List[str]]) -> bool:
return is_supported


version = "2.0.2"
parsed_version = pkg_resources.parse_version(version)
release_status = "Development Status :: 5 - Production/Stable"
try:
if parsed_version.is_prerelease:
if "a" in version:
release_status = "Development Status :: 3 - Alpha"
else:
release_status = "Development Status :: 4 - Beta"
except Exception:
if "a" in version:
release_status = "Development Status :: 3 - Alpha"
elif "b" in version:
release_status = "Development Status :: 4 - Beta"


setup(
name="cyksuid",
version="2.0.2",
version=version,
description="Cython implementation of ksuid",
ext_modules=ext_modules,
cmdclass={"build_ext": BuildExt},
Expand All @@ -285,7 +301,7 @@ def test_supports_compile_arg(self, comm: Union[str, List[str]]) -> bool:
keywords=["ksuid"],
python_requires=">=3.7",
classifiers=[
"Development Status :: 5 - Production/Stable",
release_status,
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
Expand All @@ -297,6 +313,7 @@ def test_supports_compile_arg(self, comm: Union[str, List[str]]) -> bool:
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
Expand Down

0 comments on commit 624ad66

Please sign in to comment.