-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
52 lines (48 loc) · 1.5 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
# -*- coding: utf-8 -*-
from setuptools import Extension, find_packages, setup
requires = [
"python-dateutil",
"python-rapidjson",
"typing-inspect",
"dataclasses;python_version<'3.7'",
]
with open("README.rst") as f:
readme = f.read()
setup(
name="serpyco",
use_scm_version=True,
description="Fast serialization of dataclasses using Cython",
long_description=readme,
author="Sébastien Grignard",
author_email="[email protected]",
url="https://gitlab.com/sgrignard/serpyco",
packages=find_packages(),
package_data={"serpyco": ["*.pyi", "py.typed"]},
include_package_data=True,
python_requires=">=3.6",
setup_requires=[
# Setuptools 18.0 properly handles Cython extensions.
"setuptools>=18.0",
"cython",
"pytest-runner",
"setuptools_scm",
"wheel",
],
install_requires=requires,
license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Software Development :: Libraries",
],
ext_modules=[
Extension("serpyco.serializer", sources=["serpyco/serializer.pyx"]),
Extension("serpyco.encoder", sources=["serpyco/encoder.pyx"]),
],
zip_safe=False,
)