-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (42 loc) · 1.72 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /usr/bin/env python
#
# Copyright (C) 2021 Kacper Sokol <[email protected]>
# License: new BSD
from setuptools import find_packages, setup
import sphinx_prolog
DISTNAME = 'sphinx-prolog'
MAINTAINER = 'Kacper Sokol'
MAINTAINER_EMAIL = '[email protected]'
DESCRIPTION = ('A collection of Sphinx (and Jupyter Book) extensions '
'for authoring interactive SWI Prolog code blocks.')
with open('README.md') as f:
LONG_DESCRIPTION = f.read()
LONG_DESCRIPTION_CT = 'text/markdown'
LICENCE = 'new BSD'
VERSION = sphinx_prolog.__version__
URL = 'https://github.com/simply-logical/{}'.format(DISTNAME)
DOWNLOAD_URL = 'https://pypi.org/project/{}/#files'.format(DISTNAME)
PYTHON_REQUIRES = '~=3.9' # Python 3.9 and up but not yet Python 4
INSTALL_REQUIRES = ['docutils', 'pygments', 'sphinx>=5']
PACKAGES = find_packages(exclude=['*.tests', '*.tests.*', 'tests.*', 'tests'])
INCLUDE_PACKAGE_DATA = True
ZIP_SAFE = False # We are using static files
def setup_package():
metadata = dict(name=DISTNAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type=LONG_DESCRIPTION_CT,
license=LICENCE,
version=VERSION,
url=URL,
download_url=DOWNLOAD_URL,
python_requires=PYTHON_REQUIRES,
install_requires=INSTALL_REQUIRES,
packages=PACKAGES,
include_package_data=INCLUDE_PACKAGE_DATA,
zip_safe=ZIP_SAFE)
setup(**metadata)
if __name__ == '__main__':
setup_package()