-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use modern
pyproject
based packaging
- Loading branch information
Showing
6 changed files
with
66 additions
and
116 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,63 @@ | ||
# -*- coding: utf-8 -*- | ||
import os | ||
from setuptools import setup, find_packages | ||
|
||
long_desc = ''' | ||
sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books | ||
''' | ||
|
||
extras_require = { | ||
'test': [ | ||
'pytest', | ||
], | ||
'lint': [ | ||
'flake8', | ||
'mypy', | ||
'docutils-stubs', | ||
] | ||
} | ||
|
||
|
||
def get_version(): | ||
"""Get version number of the package from version.py without importing core module.""" | ||
package_dir = os.path.abspath(os.path.dirname(__file__)) | ||
version_file = os.path.join(package_dir, 'sphinxcontrib/applehelp/version.py') | ||
|
||
namespace = {} | ||
with open(version_file, 'rt') as f: | ||
exec(f.read(), namespace) | ||
|
||
return namespace['__version__'] | ||
|
||
|
||
setup( | ||
name='sphinxcontrib-applehelp', | ||
version=get_version(), | ||
url='http://sphinx-doc.org/', | ||
download_url='https://pypi.org/project/sphinxcontrib-applehelp/', | ||
license='BSD', | ||
author='Georg Brandl', | ||
author_email='georg@python.org', | ||
description=long_desc.strip().replace('\n', ' '), | ||
long_description=long_desc, | ||
zip_safe=False, | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
'Environment :: Web Environment', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Education', | ||
'License :: OSI Approved :: BSD License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Framework :: Sphinx', | ||
'Framework :: Sphinx :: Extension', | ||
'Topic :: Documentation', | ||
'Topic :: Documentation :: Sphinx', | ||
'Topic :: Text Processing', | ||
'Topic :: Utilities', | ||
], | ||
platforms='any', | ||
python_requires=">=3.7", | ||
packages=find_packages(exclude=['tests']), | ||
include_package_data=True, | ||
extras_require=extras_require, | ||
namespace_packages=['sphinxcontrib'], | ||
) | ||
[build-system] | ||
requires = ["flit_core>=3.7"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
# project metadata | ||
[project] | ||
name = "sphinxcontrib.applehelp" | ||
description = "sphinxcontrib-applehelp is a Sphinx extension which outputs Apple help books" | ||
readme = "README.rst" | ||
urls.Changelog = "https://www.sphinx-doc.org/en/master/changes.html" | ||
urls.Code = "https://github.com/sphinx-doc/sphinxcontrib-applehelp" | ||
urls.Download = "https://pypi.org/project/sphinxcontrib-applehelp/" | ||
urls.Homepage = "https://www.sphinx-doc.org/" | ||
urls."Issue tracker" = "https://github.com/sphinx-doc/sphinx/issues" | ||
license.text = "BSD-2-Clause" | ||
requires-python = ">=3.8" | ||
|
||
# Classifiers list: https://pypi.org/classifiers/ | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Environment :: Web Environment", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Education", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Framework :: Sphinx", | ||
"Framework :: Sphinx :: Extension", | ||
"Topic :: Documentation", | ||
"Topic :: Documentation :: Sphinx", | ||
"Topic :: Text Processing", | ||
"Topic :: Utilities", | ||
] | ||
dependencies = [] | ||
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest", | ||
] | ||
lint = [ | ||
"flake8", | ||
"mypy", | ||
"docutils-stubs", | ||
] | ||
|
||
[[project.authors]] | ||
name = "Georg Brandl" | ||
email = "georg@python.org" | ||
|
||
[tool.flit.sdist] | ||
include = [ | ||
"LICENSE", | ||
"CHANGES", | ||
# Tests | ||
"tests/", | ||
"tox.ini", | ||
] | ||
exclude = [ | ||
"doc/_build", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.