Skip to content

Commit 5825f36

Browse files
committed
Fixed upload to Pypi
1 parent 93123f4 commit 5825f36

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
@@ -36,6 +36,14 @@ def get_requirements(requirements_file):
3636
return requirements
3737

3838

39+
def local_scheme(version):
40+
"""
41+
Skip the local version (eg. +xyz of 0.6.1.dev4+gdf99fe2)
42+
to be able to upload to Test PyPI
43+
"""
44+
return ""
45+
46+
3947
if __name__ == "__main__":
4048
HERE = path.abspath(path.dirname(__file__))
4149
INSTALL_REQUIRES = get_requirements(path.join(HERE, "requirements.txt"))
@@ -59,9 +67,10 @@ def get_requirements(requirements_file):
5967
"License :: OSI Approved :: MIT License",
6068
"Operating System :: OS Independent",
6169
"Programming Language :: Python :: 3",
62-
"Programming Language :: Python :: 3.5",
63-
"Programming Language :: Python :: 3.6",
64-
"Programming Language :: Python :: 3.7",
70+
"Programming Language :: Python :: 3.8",
71+
"Programming Language :: Python :: 3.9",
72+
"Programming Language :: Python :: 3.10",
73+
"Programming Language :: Python :: 3.11",
6574
"Topic :: Communications :: Email",
6675
"Topic :: Internet :: WWW/HTTP",
6776
],
@@ -70,6 +79,6 @@ def get_requirements(requirements_file):
7079
include_package_data=True,
7180
zip_safe=False,
7281
install_requires=INSTALL_REQUIRES,
73-
use_scm_version=True,
82+
use_scm_version={"local_scheme": local_scheme},
7483
setup_requires=["setuptools_scm"],
7584
)

0 commit comments

Comments
 (0)