-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (34 loc) · 1.13 KB
/
setup.py
File metadata and controls
40 lines (34 loc) · 1.13 KB
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
# -*- coding: utf-8 -*-
import os
import pathlib
import re
from setuptools import setup, find_packages
HERE = pathlib.Path(__file__).parent
here = os.path.abspath(os.path.dirname(__file__))
VERSIONFILE = "physipandas/_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="physipandas",
version=verstr,
description="Pandas extension for the physipy package.",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/mocquin/physipandas",
author="mocquin",
author_email="mocquin@me.com",
license="MIT",
keywords='pandas physics physical unit units dimension quantity quantities',
packages=find_packages(exclude=("test")),
# add content of MANIFEST
include_package_data=True,
install_requires=["physipy",
"pandas",
]
)