Debian Codegraph @

setup.py

raw ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 # SPDX-License-Identifier: ISC
2 # Copyright (c) Justus Winter <[email protected]>
3
4 import os
5
6 from setuptools import setup, find_packages
7
8
9 def get_requires():
10 if os.environ.get('TRAVIS') != 'true' and os.environ.get('READTHEDOCS') != 'True':
11 yield 'notmuch'
12 yield 'chardet'
13 yield 'dkimpy'
14
15 with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst'), encoding='utf-8') as f:
16 long_description = f.read()
17
18 setup(
19 name='afew',
20 use_scm_version={'write_to': 'afew/version.py'},
21 description="An initial tagging script for notmuch mail",
22 url="https://github.com/afewmail/afew",
23 license="ISC",
24 long_description=long_description,
25 long_description_content_type="text/x-rst",
26 setup_requires=['setuptools_scm'],
27 packages=find_packages(),
28 test_suite='afew.tests',
29 package_data={
30 'afew': ['defaults/afew.config']
31 },
32 entry_points={
33 'console_scripts': [
34 'afew = afew.commands:main'],
35 'afew.filter': [
36 'Filter = afew.filters.BaseFilter:Filter',
37 'ArchiveSentMailsFilter = afew.filters.ArchiveSentMailsFilter:ArchiveSentMailsFilter',
38 'DKIMValidityFilter = afew.filters.DKIMValidityFilter:DKIMValidityFilter',
39 'DMARCReportInspectionFilter = afew.filters.DMARCReportInspectionFilter:DMARCReportInspectionFilter',
40 'FolderNameFilter = afew.filters.FolderNameFilter:FolderNameFilter',
41 'HeaderMatchingFilter = afew.filters.HeaderMatchingFilter:HeaderMatchingFilter',
42 'InboxFilter = afew.filters.InboxFilter:InboxFilter',
43 'KillThreadsFilter = afew.filters.KillThreadsFilter:KillThreadsFilter',
44 'ListMailsFilter = afew.filters.ListMailsFilter:ListMailsFilter',
45 'MeFilter = afew.filters.MeFilter:MeFilter',
46 'SentMailsFilter = afew.filters.SentMailsFilter:SentMailsFilter',
47 'SpamFilter = afew.filters.SpamFilter:SpamFilter',
48 'PropagateTagsByRegexInThreadFilter = afew.filters.PropagateTagsByRegexInThreadFilter:PropagateTagsByRegexInThreadFilter',
49 'PropagateTagsInThreadFilter = afew.filters.PropagateTagsInThreadFilter:PropagateTagsInThreadFilter',
50 ],
51 },
52 install_requires=list(get_requires()),
53 tests_require=['freezegun'],
54 provides=['afew'],
55 classifiers=[
56 'License :: OSI Approved :: ISC License (ISCL)',
57 'Development Status :: 4 - Beta',
58 'Environment :: Console',
59 'Intended Audience :: End Users/Desktop',
60 'Programming Language :: Python',
61 'Topic :: Communications :: Email',
62 'Topic :: Communications :: Email :: Filters',
63 'Topic :: Utilities',
64 'Topic :: Database',
65 ],
66 )