-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
65 lines (56 loc) · 2.07 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
"""PyEDGAR is a python based package to interact with and download EDGAR filings.
Supports local caching of EDGAR database with the downloader module.
"""
import os
import re
from codecs import open
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
here = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the README file
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Get the version from pyedgar/__init__.py
_version_re = re.compile(r'^__version__\s*=\s*[\'"](.*)[\'"]\s*$', re.M)
with open('pyedgar/__init__.py', 'r') as fh:
version = _version_re.search(fh.read()).group(1).strip()
setup(
name='pyedgar',
version=version,
description='Python interface to EDGAR filings.',
long_description=long_description,
long_description_content_type='text/markdown',
keywords='SEC EDGAR filings',
url='https://github.com/gaulinmp/pyedgar',
author='Mac Gaulin',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'Topic :: Office/Business :: Financial :: Accounting',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
],
packages=find_packages(),
include_package_data=True,
install_requires=['pandas', 'requests'],
extras_require={
'dev': ['bs4', 'tqdm'],
# 'test': ['coverage'],
},
)