-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (42 loc) · 1.31 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
from skbuild_conan import setup
from setuptools import find_packages
import subprocess
from pathlib import Path
conan_odr_remote = "https://artifactory.opendocument.app/artifactory/api/conan/conan"
result = subprocess.run(["conan", "remote", "list"], check=True, capture_output=True, text=True)
if conan_odr_remote not in result.stdout:
print(f"Adding Conan remote {conan_odr_remote}")
subprocess.run(
[
"conan",
"remote",
"add",
"odr",
conan_odr_remote,
],
check=True,
)
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
setup(
name="pyodr",
version="0.0.2",
author="Andreas Stefl",
author_email="stefl.andreas@gmail.com",
description="It's Android's first OpenOffice Document Reader for Python!",
long_description=long_description,
long_description_content_type="text/markdown",
python_requires=">=3.7",
cmake_minimum_required_version="3.12",
packages=find_packages("src"),
package_dir={"": "src"},
install_requires=[],
extras_require={
"dev": ["black"],
"test": ["pytest>=6.0"],
},
conan_profile_settings={"compiler.cppstd": "20"},
entry_points = {
"console_scripts": ["pyodr=pyodr.cli:main"],
},
)