|
1 | 1 | #!/usr/bin/env python |
2 | 2 |
|
3 | | -from setuptools import setup |
| 3 | +from setuptools import setup, find_packages |
4 | 4 |
|
5 | 5 | # read the contents of your README file |
6 | 6 | from os import path |
|
41 | 41 | "Topic :: Software Development :: Interpreters", |
42 | 42 | "Topic :: Software Development :: Libraries :: Python Modules", |
43 | 43 | ], |
44 | | - packages=[ |
45 | | - "sifter", |
46 | | - "sifter.commands", |
47 | | - "sifter.comparators", |
48 | | - "sifter.extensions", |
49 | | - "sifter.grammar", |
50 | | - "sifter.t", |
51 | | - "sifter.tests", |
52 | | - "sifter.validators", |
53 | | - ], |
| 44 | + packages=find_packages(exclude=("tests",)), |
54 | 45 | package_data={ |
55 | | - "sifter": ['py.typed'], |
56 | | - "sifter.t": ["*.in", "*.out", "*.msg", "*.rules"], |
| 46 | + "sifter": ['py.typed'] |
57 | 47 | }, |
| 48 | + entry_points={ |
| 49 | + 'sifter_extensions': [ |
| 50 | + # sifter commands |
| 51 | + 'discard = sifter.commands.discard:CommandDiscard', |
| 52 | + 'fileinto = sifter.commands.fileinto:CommandFileInto', |
| 53 | + 'if = sifter.commands.if_cmd:CommandIf', |
| 54 | + 'elseif = sifter.commands.if_cmd:CommandElsIf', |
| 55 | + 'else = sifter.commands.if_cmd:CommandElse', |
| 56 | + 'keep = sifter.commands.keep:CommandKeep', |
| 57 | + 'redirect = sifter.commands.redirect:CommandRedirect', |
| 58 | + 'require = sifter.commands.require:CommandRequire', |
| 59 | + 'stop = sifter.commands.stop:CommandStop', |
| 60 | + # sifter tests |
| 61 | + 'address = sifter.tests.address:TestAddress', |
| 62 | + 'allof = sifter.tests.allof:TestAllOf', |
| 63 | + 'anyof = sifter.tests.anyof:TestAnyOf', |
| 64 | + 'exists = sifter.tests.exists:TestExists', |
| 65 | + 'header = sifter.tests.header:TestHeader', |
| 66 | + 'false = sifter.tests.false:TestFalse', |
| 67 | + 'not_test = sifter.tests.not_test:TestNot', |
| 68 | + 'size = sifter.tests.size:TestSize', |
| 69 | + 'true = sifter.tests.true:TestTrue', |
| 70 | + # sifter comparators |
| 71 | + 'ascii_casemap = sifter.comparators.ascii_casemap:ComparatorASCIICasemap', |
| 72 | + 'octed = sifter.comparators.octet:ComparatorOctet' |
| 73 | + ], |
| 74 | + } |
58 | 75 | ) |
0 commit comments