|
1 | 1 | #!/usr/bin/env python |
2 | 2 |
|
3 | | -from distutils.core import setup |
| 3 | +from setuptools import setup, find_packages |
4 | 4 |
|
5 | | -with open('README.rst') as file: |
6 | | - long_description = file.read() |
| 5 | +# read the contents of your README file |
| 6 | +from os import path |
| 7 | +this_directory = path.abspath(path.dirname(__file__)) |
| 8 | +with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: |
| 9 | + long_description = f.read() |
7 | 10 |
|
8 | 11 | setup( |
9 | | - name = "sifter", |
10 | | - version = "0.1", |
11 | | - author = "Gary Peck", |
12 | | - author_email = "gary@realify.com", |
13 | | - url = "https://github.com/garyp/sifter", |
14 | | - license = "BSD", |
15 | | - description = "Parser/evaluator for the Sieve filtering language (RFC 5228)", |
16 | | - long_description = long_description, |
17 | | - classifiers = [ |
18 | | - "Programming Language :: Python", |
19 | | - "Programming Language :: Python :: 2", |
20 | | - "License :: OSI Approved :: BSD License", |
21 | | - "Development Status :: 4 - Beta", |
22 | | - "Intended Audience :: Developers", |
23 | | - "Intended Audience :: System Administrators", |
24 | | - "Operating System :: OS Independent", |
25 | | - "Topic :: Communications :: Email :: Filters", |
26 | | - "Topic :: Software Development :: Interpreters", |
27 | | - "Topic :: Software Development :: Libraries :: Python Modules", |
28 | | - ], |
29 | | - install_requires=['ply'], |
30 | | - packages = [ |
31 | | - "sifter", |
32 | | - "sifter.commands", |
33 | | - "sifter.comparators", |
34 | | - "sifter.extensions", |
35 | | - "sifter.grammar", |
36 | | - "sifter.notificationmethods", |
37 | | - "sifter.t", |
38 | | - "sifter.tests", |
39 | | - "sifter.validators", |
40 | | - ], |
41 | | - package_data = { |
42 | | - "sifter.t" : ["*.in", "*.out", "*.msg", "*.rules"], |
43 | | - }, |
44 | | - ) |
45 | | - |
| 12 | + name="sifter3-extensions", |
| 13 | + version="0.0.1", |
| 14 | + author="Manfred Kaiser", |
| 15 | + author_email="python-sifter@logfile.at", |
| 16 | + url="https://github.com/python-sifter/sifter3-extensions", |
| 17 | + license="BSD", |
| 18 | + description='Unofficial extensions for Sifter 3', |
| 19 | + long_description=long_description, |
| 20 | + long_description_content_type='text/markdown', |
| 21 | + keywords="sieve email filter parser", |
| 22 | + project_urls={ |
| 23 | + 'Source': 'https://github.com/python-sifter/sifter3-extensions', |
| 24 | + 'Tracker': 'https://github.com/python-sifter/sifter3-extensions/issues', |
| 25 | + }, |
| 26 | + python_requires='>= 3.6', |
| 27 | + install_requires=[ |
| 28 | + 'sifter3' |
| 29 | + ], |
| 30 | + classifiers=[ |
| 31 | + "Programming Language :: Python", |
| 32 | + "Programming Language :: Python :: 3", |
| 33 | + "Programming Language :: Python :: 3.6", |
| 34 | + "Programming Language :: Python :: 3.7", |
| 35 | + "Programming Language :: Python :: 3.8", |
| 36 | + "License :: OSI Approved :: BSD License", |
| 37 | + "Development Status :: 4 - Beta", |
| 38 | + "Intended Audience :: Developers", |
| 39 | + "Intended Audience :: System Administrators", |
| 40 | + "Operating System :: OS Independent", |
| 41 | + "Topic :: Communications :: Email :: Filters", |
| 42 | + "Topic :: Software Development :: Interpreters", |
| 43 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 44 | + ], |
| 45 | + packages=find_packages(exclude=("tests",)) |
| 46 | +) |
0 commit comments