-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
executable file
·50 lines (46 loc) · 1.89 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
import re
from setuptools import setup
from setuptools_rust import Binding, RustExtension, Strip
with open('polaroid/__init__.py') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
setup_requires = ['setuptools-rust>=0.9.2']
install_requires = []
setup(name='polaroid',
author="Daggy1234",
version=version,
description="Hyper Fast and safe image manipulation library for python. Powered by rust.",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
license="MIT",
url="https://github.com/Daggy1234/polaroid",
project_urls={
"Repository": "https://github.com/Daggy1234/polaroid",
"Issue tracker": "https://github.com/Daggy1234/polaroid/issues",
"Chat": "https://server.daggy.tech"
},
classifiers=[
"Intended Audience :: Developers",
'License :: OSI Approved :: MIT License',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Rust',
"Operating System :: OS Independent",
'Natural Language :: English',
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
'Topic :: Internet',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities'
],
rust_extensions=[
RustExtension('polaroid.polaroid', 'Cargo.toml', binding=Binding.PyO3, strip=Strip.Debug)],
setup_requires=setup_requires,
include_package_data=True,
packages=['polaroid'],
zip_safe=False,
python_requires='>=3.6'
)