-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from jadchaar/feature/def-14a
Added support for DEF 14A and fixed a few bugs; reorganized tests
- Loading branch information
Showing
13 changed files
with
95 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
include LICENSE CHANGELOG.md README.rst requirements.txt | ||
include LICENSE CHANGELOG.md README.rst Makefile requirements.txt tox.ini | ||
recursive-include tests *.py | ||
recursive-include docs *.py *.rst *.bat Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,42 @@ | ||
.PHONY: test clean docs publish | ||
.PHONY: auto test docs clean | ||
|
||
auto: build38 | ||
|
||
build36: PYTHON_VER = python3.6 | ||
build37: PYTHON_VER = python3.7 | ||
build38: PYTHON_VER = python3.8 | ||
|
||
build36 build37 build38: | ||
virtualenv venv --python=$(PYTHON_VER) | ||
venv/bin/pip install -r requirements.txt | ||
venv/bin/pre-commit install | ||
build36 build37 build38: clean | ||
$(PYTHON_VER) -m venv venv | ||
. venv/bin/activate; \ | ||
pip install -U pip setuptools wheel; \ | ||
pip install -r requirements.txt; \ | ||
pre-commit install | ||
|
||
test: | ||
rm -f .coverage coverage.xml | ||
. venv/bin/activate && pytest | ||
. venv/bin/activate; pytest | ||
|
||
lint: | ||
venv/bin/pre-commit run --all-files --show-diff-on-failure | ||
|
||
clean: | ||
rm -rf venv .tox .pytest_cache ./**/__pycache__ | ||
rm -rf dist build .egg .eggs sec_edgar_downloader.egg-info | ||
rm -f ./**/*.pyc .coverage coverage.xml | ||
. venv/bin/activate; pre-commit run --all-files --show-diff-on-failure | ||
|
||
docs: | ||
cd docs; make html | ||
rm -rf docs/_build | ||
. venv/bin/activate; cd docs; make html | ||
|
||
publish: | ||
rm -rf dist build .egg .eggs sec_edgar_downloader.egg-info | ||
pip3 install -U setuptools twine wheel | ||
python3 setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
clean: clean-dist | ||
rm -rf venv .pytest_cache ./**/__pycache__ | ||
rm -f .coverage coverage.xml ./**/*.pyc | ||
|
||
clean-dist: | ||
rm -rf dist build .egg .eggs sec_edgar_downloader.egg-info | ||
|
||
build-dist: | ||
. venv/bin/activate; \ | ||
pip install -U setuptools twine wheel; \ | ||
python setup.py sdist bdist_wheel | ||
|
||
upload-dist: | ||
. venv/bin/activate; twine upload dist/* | ||
|
||
publish: test clean-dist build-dist upload-dist clean-dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ lxml>=4.3.4 | |
pre-commit | ||
pytest | ||
pytest-cov | ||
requests>=2.22.0 | ||
requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,6 @@ | |
"SC 13G", | ||
"SD", | ||
"S-1", | ||
"DEF 14A", | ||
} | ||
W3_NAMESPACE = {"w3": "http://www.w3.org/2005/Atom"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "3.0.4" | ||
__version__ = "3.0.5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters