From c18ba28da68a714c5bc36d0dfbefe860abf308b3 Mon Sep 17 00:00:00 2001 From: Eli <43382407+eli64s@users.noreply.github.com> Date: Tue, 29 Aug 2023 11:08:35 -0500 Subject: [PATCH] Remove MANIFEST, update poetry build. --- .github/workflows/build_package.yaml | 10 +++++----- MANIFEST.in | 3 --- pyproject.toml | 28 +++++++++++++--------------- 3 files changed, 18 insertions(+), 23 deletions(-) delete mode 100644 MANIFEST.in diff --git a/.github/workflows/build_package.yaml b/.github/workflows/build_package.yaml index 27e107e9..a0ea9a1a 100644 --- a/.github/workflows/build_package.yaml +++ b/.github/workflows/build_package.yaml @@ -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 }} diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 9d59708c..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,3 +0,0 @@ -include LICENSE -include README.md -recursive-include readmeai *.toml diff --git a/pyproject.toml b/pyproject.toml index feafe18c..318c8df4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 <0x.eli.64s@gmail.com>"] license = "MIT" @@ -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" @@ -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 @@ -97,6 +98,3 @@ addopts = "--strict-markers --disable-pytest-warnings" [tool.coverage.run] omit = ["tests/*", "*/__init__.py"] - -[tool.setuptools.package-data] -"readmeai.conf" = ["**/*.toml"]