-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (38 loc) · 1.36 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
#!/usr/bin/env python3
# -*- coding = utf-8 -*-
import os
from setuptools import setup
from setuptools import find_packages
# Get the long README description.
with open(os.path.join(
os.path.dirname(__file__), 'README.md'), encoding = 'utf-8') as f:
long_description = f.read()
# Get the version from the module.
def configure_chemsolve_version():
"""Configures the module version directly from the package."""
# Import the version.
# noinspection PyProtectedMember
from chemsolve._release import __version__
# Check for certain cases.
if len(__version__) == 4:
end_tag = __version__[3]
return ".".join(str(item) for item in __version__[:3]) + f"-{end_tag}"
return ".".join(str(item) for item in __version__)
setup(
name = 'chemsolve',
version = configure_chemsolve_version(),
author = "Amogh Joshi",
packages = find_packages(),
author_email = "[email protected]",
url = "https://github.com/amogh7joshi/chemsolve",
license = 'MIT',
description = "A low-level chemistry library for solving and practicing chemistry problems.",
long_description = long_description,
long_description_content_type = "text/markdown",
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
],
include_package_data = True
)