Skip to content

Commit 5c6e483

Browse files
committed
Fixed test pypi upload
1 parent c349b15 commit 5c6e483

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

setup.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
from setuptools import setup, find_packages
1313

1414

15+
def local_scheme(version):
16+
"""
17+
Skip the local version (eg. +xyz of 0.6.1.dev4+gdf99fe2)
18+
to be able to upload to Test PyPI
19+
"""
20+
return ""
21+
22+
1523
if __name__ == "__main__":
1624
HERE = path.abspath(path.dirname(__file__))
1725
with io.open(path.join(HERE, "README.rst"), encoding="utf-8") as readme:
@@ -28,15 +36,16 @@
2836
keywords=["sieve", "managesieve", "parser", "client"],
2937
install_requires=[],
3038
setup_requires=["setuptools_scm"],
31-
use_scm_version=True,
39+
use_scm_version={"local_scheme": local_scheme},
3240
classifiers=[
3341
"Programming Language :: Python",
34-
"Development Status :: 4 - Beta",
42+
"Development Status :: 5 - Production/Stable",
3543
"Intended Audience :: Developers",
3644
"License :: OSI Approved :: MIT License",
3745
"Operating System :: OS Independent",
3846
"Topic :: Software Development :: Libraries :: Python Modules",
39-
"Topic :: Communications :: Email :: Filters"
47+
"Topic :: Communications :: Email :: Filters",
4048
],
41-
long_description=LONG_DESCRIPTION
49+
python_requires=">=3.7",
50+
long_description=LONG_DESCRIPTION,
4251
)

0 commit comments

Comments
 (0)