-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (42 loc) · 1.5 KB
/
Copy pathsetup.py
File metadata and controls
51 lines (42 loc) · 1.5 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
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
import pathlib
import re
from setuptools import find_packages, setup
VERSION_FILE = "pysna/__init__.py"
with open(VERSION_FILE) as version_file:
match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file.read(), re.MULTILINE)
if match:
version = match.group(1)
else:
raise RuntimeError(f"Unable to find version string in {VERSION_FILE}.")
HERE = pathlib.Path(__file__).parent
VERSION = version
PACKAGE_NAME = "pysna"
AUTHOR = "Mathis Hunke"
AUTHOR_EMAIL = "mathun3003@gmail.com"
URL = "https://github.com/mathun3003/PySNA"
LICENSE = "MIT License"
DESCRIPTION = "Python Package for Social Network Analytics"
LONG_DESCRIPTION = (HERE / "README.md").read_text()
LONG_DESC_TYPE = "text/markdown"
INSTALL_REQUIRES = ["tweepy~=4.12.1", "argparse~=1.4.0", "numpy~=1.24.0", "python-dotenv~=0.21.0", "vaderSentiment~=3.3.2", "pandas~=1.5.3"]
setup(
name=PACKAGE_NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type=LONG_DESC_TYPE,
author=AUTHOR,
license=LICENSE,
author_email=AUTHOR_EMAIL,
url=URL,
install_requires=INSTALL_REQUIRES,
packages=find_packages(),
python_requires=">=3.10",
entry_points={"console_scripts": ["pysna = pysna.cli:main"]},
project_urls={
"Documentation": "https://mathun3003.github.io/PySNA/",
"Issue Tracker": "https://github.com/mathun3003/PySNA/issues",
"Source Code": "https://github.com/mathun3003/PySNA",
},
)