forked from samuelcolvin/rtoml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (48 loc) · 1.76 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
import re
from pathlib import Path
from setuptools import setup
from setuptools_rust import Binding, RustExtension
description = 'A better TOML library for python implemented in rust.'
THIS_DIR = Path(__file__).resolve().parent
try:
long_description = (THIS_DIR / 'README.md').read_text()
except FileNotFoundError:
long_description = description
# VERSION is set in Cargo.toml
cargo = Path(THIS_DIR / 'Cargo.toml').read_text()
VERSION = re.search('version *= *"(.*?)"', cargo).group(1)
setup(
name='rtoml',
version=VERSION,
description=description,
long_description=long_description,
long_description_content_type='text/markdown',
author='Samuel Colvin',
author_email='[email protected]',
url='https://github.com/samuelcolvin/rtoml',
license='MIT',
package_data={'rtoml': ['py.typed']},
python_requires='>=3.7',
rust_extensions=[RustExtension('rtoml._rtoml', binding=Binding.PyO3)],
packages=['rtoml'],
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Operating System :: POSIX :: Linux',
'Environment :: Console',
'Environment :: MacOS X',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet',
],
)