|
| 1 | +from pathlib import Path |
1 | 2 | import platform
|
2 |
| -from setuptools import setup, Extension |
| 3 | + |
3 | 4 | import numpy
|
| 5 | +from setuptools import Extension, setup |
4 | 6 |
|
5 | 7 | CXX_ARGS = {
|
6 | 8 | "Darwin": ["-std=c++11", "-march=native", "-ftree-vectorize"],
|
7 | 9 | "Linux": ["-fopenmp", "-std=c++11", "-march=native", "-ftree-vectorize"],
|
8 |
| - "Windows": ["/openmp", "/std:c++latest", "/arch:AVX2"] |
| 10 | + "Windows": ["/openmp", "/std:c++latest", "/arch:AVX2"], |
9 | 11 | }
|
10 | 12 |
|
| 13 | +project_root = Path(__file__).parent |
| 14 | + |
| 15 | +with open(project_root / "README.md", encoding="utf-8") as f: |
| 16 | + long_description = f.read() |
| 17 | + |
11 | 18 | setup(
|
12 | 19 | name="lapjv",
|
13 |
| - description="Linear sum assignment problem solver using Jonker-Volgenant " |
14 |
| - "algorithm.", |
| 20 | + description="Linear sum assignment problem solver using Jonker-Volgenant algorithm.", |
| 21 | + long_description=long_description, |
| 22 | + long_description_content_type="text/markdown", |
15 | 23 | version="1.3.1",
|
16 | 24 | license="MIT",
|
17 | 25 | author="Vadim Markovtsev",
|
18 |
| - |
| 26 | + |
19 | 27 | url="https://github.com/src-d/lapjv",
|
20 | 28 | download_url="https://github.com/src-d/lapjv",
|
21 | 29 | ext_modules=[Extension("lapjv",
|
22 | 30 | sources=["python.cc"],
|
23 | 31 | extra_compile_args=CXX_ARGS[platform.system()],
|
24 | 32 | include_dirs=[numpy.get_include()])],
|
25 |
| - install_requires=["numpy"], |
| 33 | + install_requires=["numpy>=1.0.0"], |
| 34 | + tests_require=["scipy>=1.0.0"], |
26 | 35 | classifiers=[
|
27 |
| - "Development Status :: 4 - Beta", |
| 36 | + "Development Status :: 5 - Production/Stable", |
28 | 37 | "Intended Audience :: Developers",
|
29 | 38 | "License :: OSI Approved :: MIT License",
|
30 | 39 | "Operating System :: POSIX :: Linux",
|
31 | 40 | "Topic :: Scientific/Engineering :: Information Analysis",
|
32 |
| - "Programming Language :: Python :: 3.5", |
33 |
| - "Programming Language :: Python :: 3.6" |
34 |
| - ] |
| 41 | + "Programming Language :: Python :: 3.8", |
| 42 | + "Programming Language :: Python :: 3.9", |
| 43 | + ], |
35 | 44 | )
|
36 | 45 |
|
37 | 46 | # python3 setup.py bdist_wheel
|
|
0 commit comments