|
1 | | -import os |
2 | | -import platform |
3 | | -import sys |
4 | | -from distutils.sysconfig import get_config_vars |
5 | | -from distutils.version import LooseVersion |
6 | 1 | from pathlib import Path |
7 | 2 |
|
8 | 3 | from setuptools import find_packages, setup |
|
12 | 7 | reqs_raw = Path("requirements.txt").read_text() |
13 | 8 | reqs_list = [r.replace("==", ">=") for r in reqs_raw.split("\n")] |
14 | 9 |
|
15 | | -module_dir = os.path.dirname(os.path.abspath(__file__)) |
16 | | - |
17 | | - |
18 | | -# The below snippet was taken from the Pandas setup.py script. |
19 | | -# It should make it easy to install BolzTraP2 without additional |
20 | | -# configuration. |
21 | | - |
22 | | -# For mac, ensure extensions are built for macos 10.9 when compiling on a |
23 | | -# 10.9 system or above, overriding distuitls behaviour which is to target |
24 | | -# the version that python was built for. This may be overridden by setting |
25 | | -# MACOSX_DEPLOYMENT_TARGET before calling setup.py |
26 | | -if sys.platform == "darwin": |
27 | | - if "MACOSX_DEPLOYMENT_TARGET" not in os.environ: |
28 | | - current_system = platform.mac_ver()[0] |
29 | | - python_target = get_config_vars().get( |
30 | | - "MACOSX_DEPLOYMENT_TARGET", current_system |
31 | | - ) |
32 | | - if LooseVersion(current_system) >= "10.9" > LooseVersion(python_target): |
33 | | - os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.9" |
34 | | - |
35 | | - |
36 | 10 | with open("README.md", "r") as file: |
37 | 11 | long_description = file.read() |
38 | 12 |
|
|
43 | 17 | description="AMSET is a tool to calculate carrier transport properties " |
44 | 18 | "from ab initio calculation data", |
45 | 19 | long_description=long_description, |
| 20 | + long_description_content_type='text/markdown', |
46 | 21 | url="https://github.com/hackingmaterials/amset", |
47 | 22 | author="Alex Ganose", |
48 | 23 | author_email="aganose@lbl.gov", |
49 | 24 | license="modified BSD", |
50 | | - keywords="conductivity scattering seebeck dft vasp", |
| 25 | + keywords="mobility conductivity seebeck scattering lifetime rates dft vasp", |
51 | 26 | packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]), |
52 | 27 | package_data={ |
53 | 28 | "amset": [ |
|
0 commit comments