This repository was archived by the owner on May 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
73 lines (63 loc) · 1.63 KB
/
setup.py
File metadata and controls
73 lines (63 loc) · 1.63 KB
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
import pathlib
from setuptools import Extension, setup
description = "A Python wrapper for the Misskey API"
readme_file = pathlib.Path(__file__).parent / "README.md"
with readme_file.open(encoding="utf-8") as fh:
long_description = fh.read()
with open("requirements.txt", "r") as f:
requirements = f.read().splitlines()
try:
from Cython.Distutils import build_ext
USE_CYTHON = True
except ImportError:
USE_CYTHON = False
if USE_CYTHON:
ext = ".pyx"
cmdclass = {"build_ext": build_ext}
else:
ext = ".c"
cmdclass = {}
ext_modules = [Extension("mi.next_utils", sources=[f'mi/next_utils{ext}'])]
extras_require = {
'dev': [
'pysen[lint]'
]
}
packages = [
'mi',
'mi.abc',
'mi.abc.ext',
'mi.ext',
'mi.ext.commands',
'mi.ext.tasks',
'mi.framework',
'mi.framework.models',
'mi.wrapper',
'mi.wrapper.models',
'mi.types',
'mi.actions',
]
setup(
name="mi.py",
version="3.9.91",
install_requires=requirements,
url="https://github.com/yupix/mi.py",
author="yupix",
author_email="yupi0982@outlook.jp",
license="MIT",
python_requires=">=3.9, <4.0",
description=description,
long_description=long_description,
long_description_content_type="text/markdown",
packages=packages,
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Natural Language :: Japanese",
"License :: OSI Approved :: MIT License",
],
ext_modules=ext_modules,
extras_require=extras_require,
cmdclass=cmdclass,
)