-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit Subject: Add workflow for publishing to PyPI.org
Commit Description:
- Loading branch information
Jack Hopkins
committed
Oct 31, 2023
1 parent
1b1188c
commit 75af39a
Showing
6 changed files
with
107 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Publish to PyPI.org | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
pypi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- run: python3 -m pip install --upgrade build && python3 -m build | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
|
||
[tool.poetry] | ||
name = "monkey-patch.py" | ||
version = "0.1.0" | ||
description = "A Python package for adding typed LLM features to your applications." | ||
authors = ["Jack Hopkins <[email protected]", "Mart Bakler <[email protected]>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
pydantic= "^1.8.2" | ||
appdirs= "1.4.4" | ||
openai = "0.28.1" | ||
numpy = "1.24.4" | ||
python-dotenv= "1.0.0" | ||
bitarray = "2.8.2" | ||
pydantic = "2.4.2" | ||
# Add your project dependencies here, for example: | ||
# requests = "^2.25.1" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^6.2" | ||
fastapi = "0.104.0" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.black] | ||
line-length = 88 | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
\.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
)/ | ||
''' | ||
|
||
[[tool.poetry.source]] | ||
name = "monkey-patch.py" | ||
url = "https://github.com/monkey-patch-sdk/monkey-patch.py" | ||
secondary = true |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[metadata] | ||
name = monkey-patch.py | ||
version = 0.1.0 | ||
author = Jack Hopkins | ||
author_email = [email protected] | ||
description = A Python package for adding typed LLM features to your applications. | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/monkey-patch-sdk/monkey-patch.py | ||
classifiers = | ||
Programming Language :: Python :: 3 | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
|
||
[options] | ||
package_dir = | ||
= src | ||
packages = find: | ||
python_requires = >=3.6 | ||
install_requires = | ||
pydantic>=1.8.2 | ||
appdirs~=1.4.4 | ||
openai==0.28.1 | ||
numpy~=1.24.4 | ||
python-dotenv==1.0.0 | ||
bitarray==2.8.2 | ||
pydantic==2.4.2 | ||
|
||
|
||
[options.packages.find] | ||
where = src |
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