1
|
|
|
"""A setuptools based setup module. |
2
|
|
|
|
3
|
|
|
See: |
4
|
|
|
https://packaging.python.org/en/latest/distributing.html |
5
|
|
|
https://github.com/chdemko/pandoc-latex-french-spaces |
6
|
|
|
""" |
7
|
|
|
|
8
|
|
|
# Always prefer setuptools over distutils |
9
|
|
|
from setuptools import setup |
10
|
|
|
|
11
|
|
|
# To use a consistent encoding |
12
|
|
|
|
13
|
|
|
# Get the long description from the README file |
14
|
|
|
with open("README.md", encoding="utf-8") as stream: |
15
|
|
|
LONG_DESCRIPTION = stream.read() |
16
|
|
|
|
17
|
|
|
setup( |
18
|
|
|
name="pandoc-latex-french-spaces", |
19
|
|
|
# Versions should comply with PEP440. For a discussion on single-sourcing |
20
|
|
|
# the version across setup.py and the project code, see |
21
|
|
|
# https://packaging.python.org/en/latest/single_source_version.html |
22
|
|
|
# The project's description |
23
|
|
|
description="A pandoc filter for dealing with french spacing rules" |
24
|
|
|
"for ponctuations in LaTeX", |
25
|
|
|
long_description=LONG_DESCRIPTION, |
26
|
|
|
long_description_content_type="text/markdown", |
27
|
|
|
# The project's main homepage. |
28
|
|
|
url="https://github.com/chdemko/pandoc-latex-french-spaces", |
29
|
|
|
# The project's download page |
30
|
|
|
download_url="https://github.com/chdemko/" |
31
|
|
|
"pandoc-latex-french-spaces/archive/develop.zip", |
32
|
|
|
# Author details |
33
|
|
|
author="Christophe Demko", |
34
|
|
|
author_email="[email protected]", |
35
|
|
|
# Maintainer details |
36
|
|
|
maintainer="Christophe Demko", |
37
|
|
|
maintainer_email="[email protected]", |
38
|
|
|
# Choose your license |
39
|
|
|
license="BSD-3-Clause", |
40
|
|
|
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers |
41
|
|
|
classifiers=[ |
42
|
|
|
# How mature is this project? Common values are |
43
|
|
|
# 3 - Alpha |
44
|
|
|
# 4 - Beta |
45
|
|
|
# 5 - Production/Stable |
46
|
|
|
"Development Status :: 4 - Beta", |
47
|
|
|
# Specify the OS |
48
|
|
|
"Operating System :: OS Independent", |
49
|
|
|
# Indicate who your project is intended for |
50
|
|
|
"Environment :: Console", |
51
|
|
|
"Intended Audience :: End Users/Desktop", |
52
|
|
|
"Intended Audience :: Developers", |
53
|
|
|
"Topic :: Software Development :: Build Tools", |
54
|
|
|
"Topic :: Software Development :: Documentation", |
55
|
|
|
"Topic :: Text Processing :: Filters", |
56
|
|
|
# Specify the Python versions you support here. In particular, ensure |
57
|
|
|
# that you indicate whether you support Python 2, Python 3 or both. |
58
|
|
|
"Programming Language :: Python :: 3.6", |
59
|
|
|
"Programming Language :: Python :: 3.7", |
60
|
|
|
"Programming Language :: Python :: 3.8", |
61
|
|
|
"Programming Language :: Python :: 3.9", |
62
|
|
|
], |
63
|
|
|
# What does your project relate to? |
64
|
|
|
keywords="pandoc filters latex french spaces", |
65
|
|
|
# Alternatively, if you want to distribute just a my_module.py, uncomment |
66
|
|
|
# this: |
67
|
|
|
py_modules=["pandoc_latex_french_spaces"], |
68
|
|
|
# To provide executable scripts, use entry points in preference to the |
69
|
|
|
# "scripts" keyword. Entry points provide cross-platform support and allow |
70
|
|
|
# pip to create the appropriate form of executable for the target platform. |
71
|
|
|
entry_points={ |
72
|
|
|
"console_scripts": [ |
73
|
|
|
"pandoc-latex-french-spaces = pandoc_latex_french_spaces:main", |
74
|
|
|
], |
75
|
|
|
}, |
76
|
|
|
# List run-time dependencies here. These will be installed by pip when |
77
|
|
|
# your project is installed. For an analysis of "install_requires" vs pip's |
78
|
|
|
# requirements files see: |
79
|
|
|
# https://packaging.python.org/en/latest/requirements.html |
80
|
|
|
install_requires=["panflute>=2.0"], |
81
|
|
|
# List additional groups of dependencies here (e.g. development |
82
|
|
|
# dependencies). You can install these using the following syntax, |
83
|
|
|
# for example: |
84
|
|
|
# $ pip install -e .[dev,test] |
85
|
|
|
extras_require={ |
86
|
|
|
"dev": ["check-manifest"], |
87
|
|
|
"test": [ |
88
|
|
|
"black", |
89
|
|
|
"tox", |
90
|
|
|
"pytest-runner", |
91
|
|
|
"coverage", |
92
|
|
|
"pylint", |
93
|
|
|
"Pygments", |
94
|
|
|
"radon", |
95
|
|
|
"mypy", |
96
|
|
|
"pytest-cov", |
97
|
|
|
], |
98
|
|
|
}, |
99
|
|
|
# packages=find_packages(), |
100
|
|
|
# include_package_data = True, |
101
|
|
|
) |
102
|
|
|
|