-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
37 lines (28 loc) · 1.11 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
from setuptools import find_packages, setup
def get_version():
with open("pixels/__init__.py", "r") as init:
for line in init.readlines():
if line.startswith("__version__"):
version = line.split(" = ")[1].rstrip()
return version.split('"')[1]
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.in", "r") as fh:
install_requires = [req.strip() for req in fh.readlines()]
with open("dev_requirements.in", "r") as fh:
tests_require = [req.strip() for req in fh.readlines()]
setup(
name="pixels",
version=get_version(),
url="https://github.com/tesselo/pixels",
author="Daniel Wiesmann",
author_email="daniel@tesselo.com",
description="Pixel grabber engine",
long_description=long_description,
long_description_content_type="text/markdown",
license="Copyright (c) Tesselo - Space Mosaic Lda. All rights reserved.",
packages=find_packages(exclude=("tests", "batch", "scripts")),
include_package_data=True,
install_requires=install_requires,
tests_require=tests_require,
)