-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
78 lines (71 loc) · 2.55 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import os
import pathlib
import re
from typing import List
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
from Cython.Compiler import Options
Options.docstrings = True
Options.embed_pos_in_docstring = True
Options.embedsignature = True
here = pathlib.Path(__file__).parent.resolve()
version = os.getenv("version", default="0.0.0")
version = re.match(r".*?(\d+\.?\d+\.?\d+).*?",
version, re.S).groups()[0]
long_description = (here / 'README.md').read_text(encoding='utf-8')
print(f"__version__ = '{version}'",
file=open(f"{here}/pydockrmsd/__version__.py", "w"))
extensions: List[Extension] = [
Extension(
name="pydockrmsd.dockrmsd",
# Cannot be use on cross platform
# extra_link_args=["-lm"],
# extra_compile_args=["-static-libgcc", "--static"] if
# os.name == 'posix' else [],
include_dirs=['pydockrmsd/DockRMSD_sources'],
sources=["pydockrmsd/dockrmsd.pyx"],
)
]
setup(
name="pydockrmsd",
version=version,
author='Barre Kevin',
packages=find_packages(),
author_email='[email protected]',
description='Python Dock RMSD calculation',
long_description=long_description,
long_description_content_type='text/markdown',
# url='https://www.python.org/sigs/distutils-sig/',
ext_modules=cythonize(extensions, annotate=False),
python_requires=">=3.6",
install_requires=[],
classifiers=[
# How mature is this project ? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
"Programming Language :: C",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3 :: Only',
],
project_urls={ # Optional
'Source': 'https://github.com/neudinger/pyDockRMSD',
},
)