Skip to content

Commit 70b016d

Browse files
committed
start
1 parent 0342fde commit 70b016d

File tree

5 files changed

+129
-1
lines changed

5 files changed

+129
-1
lines changed

.github/workflows/main.yml

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: Python Packaging
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
name: Build distribution
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
persist-credentials: false
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.x"
18+
- name: Install pypa/build
19+
run: >-
20+
python3 -m
21+
pip install
22+
build
23+
--user
24+
- name: Build a binary wheel and a source tarball
25+
run: python3 -m build
26+
- name: Store the distribution packages
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: python-package-distributions
30+
path: dist/
31+
32+
publish-to-pypi:
33+
name: >-
34+
Publish Python distribution to PyPI
35+
if: startsWith(github.ref, 'refs/tags/')
36+
needs:
37+
- build
38+
runs-on: ubuntu-latest
39+
environment:
40+
name: pypi
41+
url: https://pypi.org/p/finra
42+
permissions:
43+
id-token: write
44+
45+
steps:
46+
- name: Download all the dists
47+
uses: actions/download-artifact@v4
48+
with:
49+
name: python-package-distributions
50+
path: dist/
51+
- name: Publish distribution to PyPI
52+
uses: pypa/gh-action-pypi-publish@release/v1
53+
54+
github-release:
55+
name: >-
56+
Sign the Python distribution with Sigstore
57+
and upload them to GitHub Release
58+
needs:
59+
- publish-to-pypi
60+
runs-on: ubuntu-latest
61+
62+
permissions:
63+
contents: write
64+
id-token: write
65+
66+
steps:
67+
- name: Download all the dists
68+
uses: actions/download-artifact@v4
69+
with:
70+
name: python-package-distributions
71+
path: dist/
72+
- name: Sign the dists with Sigstore
73+
uses: sigstore/gh-action-sigstore-python@v3.0.0
74+
with:
75+
inputs: >-
76+
./dist/*.tar.gz
77+
./dist/*.whl
78+
- name: Create GitHub Release
79+
env:
80+
GITHUB_TOKEN: ${{ github.token }}
81+
run: >-
82+
gh release create
83+
"$GITHUB_REF_NAME"
84+
--repo "$GITHUB_REPOSITORY"
85+
--notes ""
86+
- name: Upload artifact signatures to GitHub Release
87+
env:
88+
GITHUB_TOKEN: ${{ github.token }}
89+
run: >-
90+
gh release upload
91+
"$GITHUB_REF_NAME" dist/**
92+
--repo "$GITHUB_REPOSITORY"

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# finra
2-
A simple python wrapper for interacting with the FINRA Query API
2+
A simple python wrapper for interacting with the Financial Industry Regulation Authority Query API
3+
# Coming Soon
4+

pyproject.toml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "finra"
7+
version = "0.0.1"
8+
dependencies = [
9+
"requests"
10+
]
11+
requires-python = ">=3.8"
12+
authors = [
13+
{name="Nikhil Sunder", email="nsunder724@gmail.com"}
14+
]
15+
maintainers = [
16+
{name="Nikhil Sunder", email="nsunder724@gmail.com"}
17+
]
18+
description = "A simple python wrapper for interacting with the Financial Industry Regulation Authority Query API"
19+
readme = "README.md"
20+
classifiers = [
21+
"Programming Language :: Python :: 3",
22+
"License :: OSI Approved :: GNU Affero General Public License v3",
23+
"Operating System :: OS Independent",
24+
"Development Status :: 4 - Beta",
25+
"Intended Audience :: Financial and Insurance Industry",
26+
"Topic :: Office/Business :: Financial :: Investment"
27+
]
28+
license = {file = "LICENSE"}
29+
keywords = ["legal", "regulatory", "api", "finance", "finra"]
30+
31+
[project.urls]
32+
Repository = "https://github.com/nikhilxsunder/finra"
33+
Issues = "https://github.com/nikhilxsunder/finra/issues"
34+
Documentation = "https://developer.finra.org/products/query-api"

src/finra/__init__.py

Whitespace-only changes.

src/finra/finra.py

Whitespace-only changes.

0 commit comments

Comments
 (0)