-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (48 loc) · 1.74 KB
/
setup.py
File metadata and controls
59 lines (48 loc) · 1.74 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
52
53
54
55
56
57
58
59
#!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
with open("README.rst") as readme_file:
readme = readme_file.read()
with open("HISTORY.rst") as history_file:
history = history_file.read()
def parse_requirements(filename):
"""Load requirements from a pip requirements file."""
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
requirements_folder = "requirements"
install_requires = parse_requirements(f"{requirements_folder}/default.txt")
files = ["dev", "docs", "default"]
extras_require = {
file: parse_requirements(f"{requirements_folder}/{file}.txt") for file in files
}
test_requirements = [
"pytest>=3",
]
setup(
author="Unnati Patel",
author_email="unnati97@gmail.com",
python_requires=">=3.9",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
description="This package converts jsonl file generated by twarc2 to sql database in an opnionated way.",
install_requires=install_requires,
license="MIT license",
long_description=readme + "\n\n" + history,
include_package_data=True,
keywords="twarc2sql",
name="twarc2sql",
packages=find_packages(include=["twarc2sql", "twarc2sql.*"]),
test_suite="tests",
tests_require=test_requirements,
url="https://github.com/unna97/twarc2sql",
version="1.0.0",
zip_safe=False,
extras_require=extras_require,
)