-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
39 lines (31 loc) · 1.19 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
from setuptools import setup, find_packages
import re
with open("README.md", "r") as f:
long_description = f.read()
with open('Weverse/__init__.py') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) or ''
if not version:
raise RuntimeError('No Version Found.')
def parse_requirements(filename):
"""Load requirements from a pip requirements file."""
line_iter = (line.strip() for line in open(filename))
return [line for line in line_iter if line and not line.startswith("#")]
setup(
name='Weverse',
version=version,
packages=find_packages(),
install_requires=parse_requirements("requirements.txt"),
url='https://github.com/MujyKun/Weverse/',
license='MIT License',
author='MujyKun',
author_email='mujy@irenebot.com',
description='Creates internal cache for the communities a user follows on weverse.io',
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
],
long_description=long_description,
long_description_content_type="text/markdown",
python_requires='>=3.6',
)