Skip to content

Commit

Permalink
Remove MANIFEST, update poetry build.
Browse files Browse the repository at this point in the history
  • Loading branch information
eli64s committed Aug 29, 2023
1 parent 5f13c3e commit c18ba28
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 23 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install twine
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: poetry install
- name: Build package
run: python -m build --sdist --wheel .
run: poetry build
- name: Publish package
run: |
python -m twine upload dist/*
poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

28 changes: 13 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["poetry-core>=1.0.0", "setuptools>=40.8.0", "wheel"]
requires = ["poetry-core", "setuptools", "wheel"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "readmeai"
version = "0.2.2"
version = "0.2.21"
description = "🚀 Generate awesome README.md files from the terminal, powered by OpenAI's GPT language model APIs 💫"
authors = ["Eli <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -32,15 +32,10 @@ keywords = [
"llm-prompting",
"llm-agent",
]
include = ["conf/**/*", "pyproject.toml", "LICENSE", "README.md"]

[tool.poetry.dev-dependencies]
black = "*"
flake8 = "*"
isort = "*"
pytest = "*"
pytest-cov = "*"
pre-commit = "*"
ruff = "*"
[tool.poetry.scripts]
readmeai = "readmeai.main:cli"

[tool.poetry.dependencies]
python = "^3.8.1"
Expand All @@ -59,8 +54,14 @@ toml = "^0.10.2"
pydantic = "^1.10.9"
click = "^8.1.6"

[tool.poetry.scripts]
readmeai = "readmeai.main:cli"
[tool.poetry.dev-dependencies]
black = "*"
flake8 = "*"
isort = "*"
pytest = "*"
pytest-cov = "*"
pre-commit = "*"
ruff = "*"

[tool.ruff]
line-length = 88
Expand Down Expand Up @@ -97,6 +98,3 @@ addopts = "--strict-markers --disable-pytest-warnings"

[tool.coverage.run]
omit = ["tests/*", "*/__init__.py"]

[tool.setuptools.package-data]
"readmeai.conf" = ["**/*.toml"]

0 comments on commit c18ba28

Please sign in to comment.