Skip to content

Commit

Permalink
Bump version to 4.3.0 and add changelog; update package classifiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
jadchaar committed Dec 21, 2021
1 parent 04fb76f commit a45d69b
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_language_version:
python: python3
repos:
- repo: https://github.com/PyCQA/bandit
rev: 1.7.0
rev: 1.7.1
hooks:
- id: bandit
args: [-lll, --quiet, --exclude=tests/**]
Expand All @@ -21,11 +21,11 @@ repos:
- id: trailing-whitespace
exclude: ^tests/sample-filings/
- repo: https://github.com/timothycrosley/isort
rev: 5.9.3
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.0
rev: v2.29.1
hooks:
- id: pyupgrade
args: [--py36-plus]
Expand All @@ -39,7 +39,7 @@ repos:
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/psf/black
rev: 21.9b0
rev: 21.12b0
hooks:
- id: black
args: [--quiet, --target-version=py36]
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 4.3.0 - 12/21/2021

- Add official support for Python 3.10.
- Pass `Accept-Encoding: gzip, deflate` and `Host: www.sec.gov` headers into all requests as recommended by the SEC fair access rules: https://www.sec.gov/os/accessing-edgar-data. This should lead to smaller request sizes as all requests are now gzipped. It should also help with 403 Forbidden errors since the package is now conforming with the entire suite of fair access rules.

## 4.2.2 - 7/14/2021

### New
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) [2020] [Jad Chaar]
Copyright (c) 2021 Jad Chaar

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: auto test docs clean

auto: build39
auto: build310

build36: PYTHON_VER = python3.6
build37: PYTHON_VER = python3.7
Expand Down
2 changes: 1 addition & 1 deletion sec_edgar_downloader/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.2.2"
__version__ = "4.3.0"
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: OS Independent",
],
keywords="sec edgar filing financial finance sec.gov",
keywords="sec edgar filing financial finance stocks mutual-funds sec.gov",
project_urls={
"Bug Reports": "https://github.com/jadchaar/sec-edgar-downloader/issues",
"Repository": "https://github.com/jadchaar/sec-edgar-downloader",
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ def formatted_latest_before_date():
@pytest.fixture(autouse=True)
def prevent_rate_limit():
"""Prevent SEC rate-limiting by sleeping between test cases."""
yield
time.sleep(SEC_EDGAR_RATE_LIMIT_SLEEP_INTERVAL)

0 comments on commit a45d69b

Please sign in to comment.