-
Notifications
You must be signed in to change notification settings - Fork 43
/
setup.py
72 lines (59 loc) · 1.93 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
# -*- coding: utf-8 -*-
"""
Setup file for the mendeleev package.
"""
from setuptools import setup, find_packages
# Change these settings according to your needs
MAIN_PACKAGE = "mendeleev"
DESCRIPTION = (
"Python API with a database of atomic properties for elements in the periodic table"
)
LICENSE = "MIT"
URL = "https://github.com/lmmentel/mendeleev"
DOWNLOAD_URL = "https://github.com/lmmentel/mendeleev/archive/master.zip"
AUTHOR = "Lukasz Mentel"
EMAIL = "[email protected]"
VERSION = "0.19.0"
KEYWORDS = ["periodic", "table", "elements", "atomic", "properties", "mendeleev"]
CLASSIFIERS = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
]
DEPENDENCIES = ["numpy", "pandas", "sqlalchemy>=1.3.0", "colorama", "pyfiglet"]
def readme():
"""Return the contents of the README.rst file."""
with open("README.rst", encoding="utf8") as freadme:
return freadme.read()
def setup_package():
setup(
name=MAIN_PACKAGE,
version=VERSION,
url=URL,
download_url=DOWNLOAD_URL,
description=DESCRIPTION,
author=AUTHOR,
author_email=EMAIL,
include_package_data=True,
install_requires=DEPENDENCIES,
keywords=KEYWORDS,
license=LICENSE,
long_description=readme(),
classifiers=CLASSIFIERS,
setup_requires=["wheel"],
packages=find_packages(exclude=["tests", "tests.*"]),
entry_points={
"console_scripts": [
"element.py = mendeleev.cli:clielement",
]
},
)
if __name__ == "__main__":
setup_package()