-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
51 lines (44 loc) · 1.53 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python
"""
A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
"""
import io
from os import path
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:
LONG_DESCRIPTION = readme.read()
setup(
name="sievelib",
packages=find_packages(),
include_package_data=True,
description="Client-side SIEVE library",
author="Antoine Nguyen",
author_email="[email protected]",
url="https://github.com/tonioo/sievelib",
license="MIT",
keywords=["sieve", "managesieve", "parser", "client"],
install_requires=["typing-extensions"],
setup_requires=["setuptools_scm"],
use_scm_version={"local_scheme": local_scheme},
classifiers=[
"Programming Language :: Python",
"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",
],
python_requires=">=3.7",
long_description=LONG_DESCRIPTION,
)