|
5 | 5 | # read the contents of your README file |
6 | 6 | from os import path |
7 | 7 | this_directory = path.abspath(path.dirname(__file__)) |
8 | | -with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f: |
| 8 | +with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: |
9 | 9 | long_description = f.read() |
10 | 10 |
|
11 | | -with open('requirements.txt') as f: |
12 | | - requirements = f.read().splitlines() |
13 | | - |
14 | 11 | setup( |
15 | | - name="sifter", |
| 12 | + name="sifter3", |
16 | 13 | version="0.2.0", |
17 | | - author="Gary Peck, Manfred Kaiser", |
18 | | - author_email="gary@realify.com, manfred.kaiser@logfile.at", |
| 14 | + author="Manfred Kaiser, Gary Peck", |
| 15 | + author_email="manfred.kaiser@logfile.at, gary@realify.com", |
19 | 16 | url="https://github.com/garyp/sifter", |
20 | 17 | license="BSD", |
| 18 | + description='Parser/evaluator for the Sieve filtering language (RFC 5228) - Python3 version', |
21 | 19 | long_description=long_description, |
22 | | - long_description_content_type='text/x-rst', |
| 20 | + long_description_content_type='text/markdown', |
| 21 | + keywords="sieve email filter parser", |
23 | 22 | project_urls={ |
24 | | - 'Source': 'https://github.com/garyp/sifter', |
25 | | - 'Tracker': 'https://github.com/garyp/sifter/issues', |
| 23 | + 'Source': 'https://github.com/manfred-kaiser/sifter3', |
| 24 | + 'Tracker': 'https://github.com/manfred-kaiser/sifter3/issues', |
26 | 25 | }, |
27 | 26 | python_requires='>= 3.6', |
28 | | - install_requires=requirements, |
| 27 | + install_requires=[ |
| 28 | + 'ply' |
| 29 | + ], |
29 | 30 | classifiers=[ |
30 | 31 | "Programming Language :: Python", |
31 | 32 | "Programming Language :: Python :: 3", |
|
46 | 47 | "sifter": ['py.typed'] |
47 | 48 | }, |
48 | 49 | entry_points={ |
| 50 | + 'console_scripts': [ |
| 51 | + 'sifter = sifter.cli:main' |
| 52 | + ], |
49 | 53 | 'sifter_extensions': [ |
50 | 54 | # sifter commands |
51 | 55 | 'discard = sifter.commands.discard:CommandDiscard', |
|
54 | 58 | 'elseif = sifter.commands.if_cmd:CommandElsIf', |
55 | 59 | 'else = sifter.commands.if_cmd:CommandElse', |
56 | 60 | 'keep = sifter.commands.keep:CommandKeep', |
| 61 | + 'notify = sifter.commands.notify:CommandNotify', |
57 | 62 | 'redirect = sifter.commands.redirect:CommandRedirect', |
58 | 63 | 'require = sifter.commands.require:CommandRequire', |
| 64 | + 'set = sifter.commands.variables:CommandSet', |
59 | 65 | 'stop = sifter.commands.stop:CommandStop', |
60 | 66 | # sifter tests |
61 | 67 | 'address = sifter.tests.address:TestAddress', |
| 68 | + 'body = sifter.tests.body:TestBody', |
62 | 69 | 'allof = sifter.tests.allof:TestAllOf', |
63 | 70 | 'anyof = sifter.tests.anyof:TestAnyOf', |
64 | 71 | 'exists = sifter.tests.exists:TestExists', |
|
67 | 74 | 'not_test = sifter.tests.not_test:TestNot', |
68 | 75 | 'size = sifter.tests.size:TestSize', |
69 | 76 | 'true = sifter.tests.true:TestTrue', |
| 77 | + 'valid_notify_method = sifter.tests.notify:TestValidNotifyMethod', |
| 78 | + 'notify_method_capability = sifter.tests.notify:TestValidNotifyMethod', |
70 | 79 | # sifter comparators |
71 | 80 | 'ascii_casemap = sifter.comparators.ascii_casemap:ComparatorASCIICasemap', |
72 | | - 'octed = sifter.comparators.octet:ComparatorOctet' |
73 | | - ], |
| 81 | + 'ascii_casemap_noi = sifter.comparators.ascii_casemap:ComparatorASCIICasemapnoi', |
| 82 | + 'octed = sifter.comparators.octet:ComparatorOctet', |
| 83 | + # notification methods |
| 84 | + 'mailto = sifter.notificationmethods.mailto:MailtoNotificationMethod', |
| 85 | + ] |
74 | 86 | } |
75 | 87 | ) |
0 commit comments