-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
88 lines (81 loc) · 2.35 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import os
from Cython.Build import cythonize
from setuptools import setup, Extension, find_packages
NAME = "MindRef"
DESCRIPTION = "Cross-Platform Application for maintaining Markdown formatted notes"
URL = "https://github.com/estasney/MindRef"
EMAIL = "[email protected]"
AUTHOR = "Eric Stasney"
REQUIRES_PYTHON = ">=3.10"
REQUIRED = [
"Cython<3",
"Kivy==2.3.0",
"mistune>=2,<3",
"Pillow>=9",
"Pygments>=2.1",
"python-dotenv>=1",
"toolz>=0.12",
]
EXTRAS = {
"dev": ["pre-commit", "pytest", "PyYAML", "click", "line_profiler"],
"android": ["python-for-android", "pyjnius"],
}
here = os.path.abspath(os.path.dirname(__file__))
long_description = DESCRIPTION
about = {}
with open(os.path.join(here, "__version__.py"), "r") as fp:
exec(fp.read(), about)
setup(
name=NAME,
version=about["__version__"],
description=DESCRIPTION,
long_description=long_description,
author=AUTHOR,
author_email=EMAIL,
python_requires=REQUIRES_PYTHON,
url=URL,
packages=find_packages(
exclude=[
"tests",
"*.tests",
"*.tests.*",
"tests.*",
"p4a-recipes",
"p4a-recipes.*",
]
),
install_requires=REQUIRED,
extras_require=EXTRAS,
zip_safe=False,
include_package_data=True,
license="LGPLv3+",
entry_points={
"console_scripts": [
"mindref = mindref.main:main",
],
},
classifiers=[
# Trove classifiers
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
],
ext_modules=[
*cythonize(
[
Extension(
"mindref.lib.utils.calculation",
["mindref/lib/utils/calculation.pyx"],
),
Extension("mindref.lib.utils.index", ["mindref/lib/utils/index.pyx"]),
Extension(
"mindref.lib.widgets.effects.scrolling_c",
["mindref/lib/widgets/effects/scrolling_c.pyx"],
),
],
compiler_directives={"language_level": 3},
),
],
)