|
1 |
| -import setuptools |
| 1 | +[build-system] |
| 2 | +requires = ["flit_core>=3.7"] |
| 3 | +build-backend = "flit_core.buildapi" |
2 | 4 |
|
3 |
| -with open("README.md", encoding="utf-8") as readme: |
4 |
| - long_description = readme.read() |
| 5 | +# project metadata |
| 6 | +[project] |
| 7 | +name = "sphinxext-opengraph" |
| 8 | +description = "Sphinx Extension to enable OGP support" |
| 9 | +readme = "README.md" |
| 10 | +urls.Code = "https://github.com/wpilibsuite/sphinxext-opengraph/" |
| 11 | +urls.Documentation = "https://sphinxext-opengraph.readthedocs.io/" |
| 12 | +urls.Download = "https://pypi.org/project/sphinxext-opengraph/" |
| 13 | +urls.Homepage = "https://github.com/wpilibsuite/sphinxext-opengraph/" |
| 14 | +urls."Issue tracker" = "https://github.com/wpilibsuite/sphinxext-opengraph/issues" |
| 15 | +license.text = "BSD-3-Clause" |
| 16 | +requires-python = ">=3.8" |
5 | 17 |
|
6 |
| -setuptools.setup( |
7 |
| - name="sphinxext-opengraph", |
8 |
| - use_scm_version=True, |
9 |
| - setup_requires=["setuptools_scm"], |
10 |
| - author="Itay Ziv", |
11 |
| - |
12 |
| - description="Sphinx Extension to enable OGP support", |
13 |
| - long_description=long_description, |
14 |
| - long_description_content_type="text/markdown", |
15 |
| - url="https://github.com/wpilibsuite/sphinxext-opengraph", |
16 |
| - license="LICENSE.md", |
17 |
| - install_requires=["sphinx>=5.0"], |
18 |
| - packages=["sphinxext/opengraph"], |
19 |
| - include_package_data=True, |
20 |
| - package_data={"sphinxext.opengraph": ["sphinxext/opengraph/_static/*"]}, |
21 |
| - classifiers=[ |
22 |
| - "Development Status :: 5 - Production/Stable", |
23 |
| - "Environment :: Plugins", |
24 |
| - "Environment :: Web Environment", |
25 |
| - "Framework :: Sphinx :: Extension", |
26 |
| - "Intended Audience :: Developers", |
27 |
| - "License :: OSI Approved :: BSD License", |
28 |
| - "Natural Language :: English", |
29 |
| - "Operating System :: OS Independent", |
30 |
| - "Programming Language :: Python :: 3.8", |
31 |
| - "Programming Language :: Python :: 3.9", |
32 |
| - "Programming Language :: Python :: 3.10", |
33 |
| - "Programming Language :: Python :: 3.11", |
34 |
| - "Programming Language :: Python :: 3.12", |
35 |
| - "Programming Language :: Python", |
36 |
| - "Topic :: Documentation :: Sphinx", |
37 |
| - "Topic :: Documentation", |
38 |
| - "Topic :: Software Development :: Documentation", |
39 |
| - "Topic :: Text Processing", |
40 |
| - "Topic :: Utilities", |
41 |
| - ], |
42 |
| - python_requires=">=3.8", |
43 |
| -) |
| 18 | +# Classifiers list: https://pypi.org/classifiers/ |
| 19 | +classifiers = [ |
| 20 | + "Development Status :: 5 - Production/Stable", |
| 21 | + "Environment :: Plugins", |
| 22 | + "Environment :: Web Environment", |
| 23 | + "Framework :: Sphinx :: Extension", |
| 24 | + "Intended Audience :: Developers", |
| 25 | + "License :: OSI Approved :: BSD License", |
| 26 | + "Natural Language :: English", |
| 27 | + "Operating System :: OS Independent", |
| 28 | + "Programming Language :: Python :: 3.8", |
| 29 | + "Programming Language :: Python :: 3.9", |
| 30 | + "Programming Language :: Python :: 3.10", |
| 31 | + "Programming Language :: Python :: 3.11", |
| 32 | + "Programming Language :: Python :: 3.12", |
| 33 | + "Programming Language :: Python", |
| 34 | + "Topic :: Documentation :: Sphinx", |
| 35 | + "Topic :: Documentation", |
| 36 | + "Topic :: Software Development :: Documentation", |
| 37 | + "Topic :: Text Processing", |
| 38 | + "Topic :: Utilities", |
| 39 | +] |
| 40 | +dependencies = [ |
| 41 | + "Sphinx>=5.0", |
| 42 | +] |
| 43 | +dynamic = ["version"] |
| 44 | + |
| 45 | +[[project.authors]] |
| 46 | +name = "Itay Ziv" |
| 47 | + |
| 48 | + |
| 49 | +[tool.flit.module] |
| 50 | +name = "sphinxext.opengraph" |
| 51 | + |
| 52 | +[tool.flit.sdist] |
| 53 | +include = [ |
| 54 | + "LICENSE.md", |
| 55 | + # Documentation |
| 56 | + "docs/", |
| 57 | + # Resources |
| 58 | + "sphinxext/opengraph/_static/", |
| 59 | + # Tests |
| 60 | + "tests/", |
| 61 | + "noxfile.py", |
| 62 | +] |
| 63 | +exclude = [ |
| 64 | + "doc/_build", |
| 65 | +] |
0 commit comments