Skip to content

Commit

Permalink
Migrate from setup.py to pyproject.toml to support flit package distr…
Browse files Browse the repository at this point in the history
…ibutions
  • Loading branch information
jadchaar committed Sep 4, 2023
1 parent f2cba02 commit 52e15da
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 58 deletions.
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ clean: clean-dist
clean-dist:
rm -rf dist build .egg .eggs sec_edgar_downloader.egg-info

build-dist:
build-dist: clean-dist
. venv/bin/activate; \
pip install -U setuptools twine wheel; \
python setup.py sdist bdist_wheel
pip install -U flit; \
flit build

upload-dist:
. venv/bin/activate; \
Expand Down
2 changes: 0 additions & 2 deletions ideas.md

This file was deleted.

71 changes: 71 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"

[project]
name = "sec-edgar-downloader"
authors = [{name = "Jad Chaar", email = "[email protected]"}]
readme = "README.rst"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Financial and Insurance Industry",
"Natural Language :: English",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Office/Business :: Financial",
"Topic :: Office/Business :: Financial :: Investment",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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 :: Only",
"Operating System :: OS Independent",
]
dependencies = [
"requests",
"pyrate-limiter>=3.1.0"
]
requires-python = ">=3.8"
description = "Download SEC filings from the EDGAR database using Python"
keywords = [
"sec",
"edgar",
"filing",
"financial",
"finance",
"stocks",
"mutual-funds",
"sec.gov"
]
dynamic = ["version"]

[project.optional-dependencies]
test = [
"pre-commit",
"pytest",
"pytest-cov"
]
doc = [
"doc8",
"sphinx",
"sphinx-autobuild",
"sphinx-autodoc-typehints"
]

[project.urls]
Documentation = "https://sec-edgar-downloader.readthedocs.io"
Source = "https://github.com/jadchaar/sec-edgar-downloader"
Issues = "https://github.com/jadchaar/sec-edgar-downloader/issues"

[tool.flit.sdist]
exclude = [
"tests/test_data/",
]

[tool.flit.module]
name = "sec_edgar_downloader"
49 changes: 0 additions & 49 deletions setup.py

This file was deleted.

0 comments on commit 52e15da

Please sign in to comment.