-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
43 lines (37 loc) · 1.13 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
# -*- coding: utf-8 -*-
import os
import pathlib
import re
from setuptools import find_packages, setup
HERE = pathlib.Path(__file__).parent
here = os.path.abspath(os.path.dirname(__file__))
VERSIONFILE = "physipy/_version.py"
verstrline = open(VERSIONFILE, "rt", encoding="utf8").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
README = (HERE / "README.md").read_text(encoding="utf8")
setup(
name="physipy",
version=verstr,
description="Manipulate physical quantities in Python",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/mocquin/physipy",
author="mocquin",
author_email="mocquin@me.com",
license="MIT",
keywords="physics physical unit units dimension quantity quantities",
packages=find_packages(exclude=("test", "benchmarks")),
# add content of MANIFEST
include_package_data=True,
install_requires=[
"numpy",
"scipy",
"sympy",
"matplotlib",
],
)