File tree Expand file tree Collapse file tree 6 files changed +12
-81
lines changed Expand file tree Collapse file tree 6 files changed +12
-81
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- lz4 == 3.1.10
1+ lz4 >= 3.1.10 # last version to support Python 3.6
Original file line number Diff line number Diff line change 1- include README-PYPI.md
1+ # copied from main README
2+ include README.md
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import io
2- import os
1+ from pathlib import Path
32
43from 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
199setup (
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" ,
You can’t perform that action at this time.
0 commit comments