|
1 |
| -from setuptools import find_packages |
2 |
| -from setuptools import setup |
| 1 | +from pathlib import Path |
| 2 | +from setuptools import find_packages, setup |
3 | 3 |
|
4 | 4 | from django_nyt import __version__
|
5 | 5 |
|
6 | 6 |
|
7 |
| -packages = find_packages() |
| 7 | +this_directory = Path(__file__).parent |
| 8 | +long_description = (this_directory / 'README.rst').read_text() |
| 9 | + |
8 | 10 |
|
9 | 11 | setup(
|
10 |
| - name="django-nyt", |
| 12 | + name='django-nyt', |
11 | 13 | version=__version__,
|
12 |
| - author="Benjamin Bach", |
13 |
| - |
14 |
| - url="https://github.com/benjaoming/django-nyt", |
15 |
| - description="A pluggable notification system written for the Django framework.", |
16 |
| - license="Apache License 2.0", |
17 |
| - keywords=["django", "notification" "alerts"], |
| 14 | + author='Benjamin Bach', |
| 15 | + description='A pluggable notification system written for the Django framework.', |
| 16 | + long_description=long_description, |
| 17 | + long_description_content_type='text/x-rst', |
| 18 | + |
| 19 | + url='https://github.com/benjaoming/django-nyt', |
| 20 | + license='Apache License 2.0', |
| 21 | + keywords=['django', 'notification', 'alerts'], |
18 | 22 | packages=find_packages(),
|
| 23 | + include_package_data=True, |
19 | 24 | zip_safe=False,
|
20 |
| - install_requires=["django>=2.2,<4.1"], |
| 25 | + install_requires=['django>=2.2,<4.2'], |
| 26 | + python_requires='>=3.5', |
21 | 27 | classifiers=[
|
22 | 28 | 'Development Status :: 5 - Production/Stable',
|
23 | 29 | 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
|
38 | 44 | 'Programming Language :: Python :: 3.10',
|
39 | 45 | 'Programming Language :: Python :: 3 :: Only',
|
40 | 46 | ],
|
41 |
| - include_package_data=True, |
| 47 | + project_urls={ |
| 48 | + 'Funding': 'https://donate.pypi.org', |
| 49 | + 'Documentation': 'https://django-nyt.readthedocs.io/en/latest/', |
| 50 | + 'Release notes': 'https://github.com/django-wiki/django-nyt/releases', |
| 51 | + 'Source': 'https://github.com/django-wiki/django-nyt', |
| 52 | + 'Tracker': 'https://github.com/django-wiki/django-nyt/issues', |
| 53 | + }, |
42 | 54 | )
|
0 commit comments