-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
33 lines (27 loc) · 947 Bytes
/
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
#!/usr/bin/env python
from pkg_resources import parse_requirements
from setuptools import setup, find_packages
import re
version = ""
with open("moddb/__init__.py") as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError("version is not set")
readme = ""
with open("README.md") as f:
readme = f.read()
install_requires = []
with open("requirements.txt") as f:
install_requires = [str(requirement) for requirement in parse_requirements(f)]
setup(
name="moddb",
version=version,
description="A scrapper for ModDB Mod and Game pages",
author="Clement Julia",
author_email="clement.julia13@gmail.com",
url="https://github.com/ClementJ18/moddb",
long_description_content_type="text/markdown",
long_description=readme,
packages=find_packages(include=["moddb", "moddb.*"]),
install_requires=install_requires,
)