Skip to content

Commit fa792c9

Browse files
Merge pull request #10 from sqlitecloud/fix-pypi-pkg-readme
Update README in pypi pkg
2 parents 8499da5 + 5441000 commit fa792c9

File tree

6 files changed

+12
-81
lines changed

6 files changed

+12
-81
lines changed

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v3
21+
uses: actions/setup-python@v4
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Install dependencies

.github/workflows/pypi-release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
- name: Update version in setup.py
2424
run: >-
2525
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" src/setup.py
26+
- name: Include README in package
27+
run: >-
28+
cp README.md src/README.md
2629
- name: Build a binary wheel
2730
run: |
2831
cd src

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lz4==3.1.10
1+
lz4>=3.1.10 # last version to support Python 3.6

src/MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
include README-PYPI.md
1+
# copied from main README
2+
include README.md

src/README-PYPI.md

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/setup.py

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,22 @@
1-
import io
2-
import os
1+
from pathlib import Path
32

43
from setuptools import find_packages, setup
54

5+
# read the contents of your README file
66

7-
def read_file(filename):
8-
base_path = os.path.abspath(os.path.dirname(__file__))
9-
full_path = os.path.join(base_path, filename)
10-
try:
11-
with io.open(full_path, encoding="utf-8") as file:
12-
return file.read()
13-
except FileNotFoundError:
14-
full_path = os.path.join(base_path, f"../{filename}")
15-
with io.open(full_path, encoding="utf-8") as file:
16-
return file.read()
17-
7+
long_description = (Path(__file__).parent / "README.md").read_text()
188

199
setup(
2010
name="SqliteCloud",
2111
version="0.0.76",
2212
author="sqlitecloud.io",
2313
description="A Python package for working with SQLite databases in the cloud.",
24-
long_description=read_file("README-PYPI.md"),
14+
long_description=long_description,
2515
long_description_content_type="text/markdown",
2616
url="https://github.com/sqlitecloud/python",
2717
packages=find_packages(),
2818
install_requires=[
29-
"lz4 == 3.1.10",
19+
"lz4 >= 3.1.10",
3020
],
3121
classifiers=[
3222
"Development Status :: 3 - Alpha",

0 commit comments

Comments
 (0)