-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (31 loc) · 1006 Bytes
/
setup.py
File metadata and controls
35 lines (31 loc) · 1006 Bytes
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
import re
import setuptools
from pydundas import __version__ as pydundas_ver
with open("README.md", "r") as fh:
long_description = fh.read()
requirements = [
# 1) All lines in requirements .txt...
y for y in
# 3) .. after removing comments and whitespaces.
[re.sub(r'\s*#.*', '', x).strip() for x in open('requirements.txt').readlines()]
# 2) ... which are not empty...
if y
]
setuptools.setup(
name='pydundas',
version=pydundas_ver,
license='MIT',
author="Guillaume Roger",
author_email="datatech@webpower.nl",
description="Python interface to Dundas rest api.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Web-Power/pydundas",
packages=setuptools.find_packages(),
install_requires=requirements,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)