Skip to content

Commit

Permalink
Update README in pypi pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
danielebriggi committed May 24, 2024
1 parent 8499da5 commit 6935685
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 78 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pypi-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Update version in setup.py
run: >-
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" src/setup.py
- name: Include README in package
run: >-
cp README.md src/README.md
- name: Build a binary wheel
run: |
cd src
Expand Down
3 changes: 2 additions & 1 deletion src/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include README-PYPI.md
# copied from main README
include README.md
63 changes: 0 additions & 63 deletions src/README-PYPI.md

This file was deleted.

18 changes: 4 additions & 14 deletions src/setup.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
import io
import os
from pathlib import Path

from setuptools import find_packages, setup

# read the contents of your README file

def read_file(filename):
base_path = os.path.abspath(os.path.dirname(__file__))
full_path = os.path.join(base_path, filename)
try:
with io.open(full_path, encoding="utf-8") as file:
return file.read()
except FileNotFoundError:
full_path = os.path.join(base_path, f"../{filename}")
with io.open(full_path, encoding="utf-8") as file:
return file.read()

long_description = (Path(__file__).parent / "README.md").read_text()

setup(
name="SqliteCloud",
version="0.0.76",
author="sqlitecloud.io",
description="A Python package for working with SQLite databases in the cloud.",
long_description=read_file("README-PYPI.md"),
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/sqlitecloud/python",
packages=find_packages(),
Expand Down

0 comments on commit 6935685

Please sign in to comment.