Skip to content

Commit

Permalink
Fixed test pypi upload
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Mar 28, 2024
1 parent c349b15 commit 5c6e483
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
from setuptools import setup, find_packages


def local_scheme(version):
"""
Skip the local version (eg. +xyz of 0.6.1.dev4+gdf99fe2)
to be able to upload to Test PyPI
"""
return ""


if __name__ == "__main__":
HERE = path.abspath(path.dirname(__file__))
with io.open(path.join(HERE, "README.rst"), encoding="utf-8") as readme:
Expand All @@ -28,15 +36,16 @@
keywords=["sieve", "managesieve", "parser", "client"],
install_requires=[],
setup_requires=["setuptools_scm"],
use_scm_version=True,
use_scm_version={"local_scheme": local_scheme},
classifiers=[
"Programming Language :: Python",
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Communications :: Email :: Filters"
"Topic :: Communications :: Email :: Filters",
],
long_description=LONG_DESCRIPTION
python_requires=">=3.7",
long_description=LONG_DESCRIPTION,
)

0 comments on commit 5c6e483

Please sign in to comment.