From 59ac491f67837a4996f20479246b804e9882b624 Mon Sep 17 00:00:00 2001 From: Ben Yang Date: Thu, 23 Dec 2021 00:53:31 -0800 Subject: [PATCH] preparing for release --- .github/workflows/test.yml | 2 +- CHANGELOG.md | 2 ++ MANIFEST.in | 6 +++--- README.md | 3 +++ config.sh | 16 ---------------- setup.py | 9 ++++++--- 6 files changed, 15 insertions(+), 23 deletions(-) delete mode 100755 config.sh diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 16fc160..5f16c9d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: test +name: Tests on: [push] jobs: build: diff --git a/CHANGELOG.md b/CHANGELOG.md index 38431f5..f4391d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 14.0.0-1 + - Added Python3.10 and PyPy support ## 14.0.0 - Upgrade to Unicode 14.0.0 ## 13.0.0-2 diff --git a/MANIFEST.in b/MANIFEST.in index 96218a3..a0dd5bb 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,6 @@ -include README +include README.md +include CHANGELOG.md include LICENSE include unicodedataplus/*.c include unicodedataplus/*.h -include unicodedataplus/*/*.c -include unicodedataplus/*/*.h +include tests/*.py diff --git a/README.md b/README.md index 2006b81..a245237 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![Github CI Status](https://github.com/iwsfutcmd/unicodedataplus/workflows/Tests/badge.svg)](https://github.com/iwsfutcmd/unicodedataplus/actions?query=workflow%3A%22Tests%22) +[![PyPI](https://img.shields.io/pypi/v/unicodedataplus.svg)](https://pypi.org/project/unicodedataplus/) + unicodedataplus ============ diff --git a/config.sh b/config.sh deleted file mode 100755 index 7c4bf15..0000000 --- a/config.sh +++ /dev/null @@ -1,16 +0,0 @@ -# Define custom utilities -# Test for OSX with [ -n "$IS_OSX" ] - -function pre_build { - # Any stuff that you need to do before you start building the wheels - # Runs in the root directory of this repository. - : -} - -function run_tests { - # check we have the expected version and architecture for Python - python -c "import sys; print(sys.version)" - python -c "import struct; print(struct.calcsize('P') * 8)" - # run the test suite - python ../tests/test_unicodedataplus.py -v -} diff --git a/setup.py b/setup.py index 6529ddc..fb6375e 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,11 @@ import sys from setuptools import setup, Extension -with open("README.md") as f: - long_description = f.read() +with open("README.md", "r", encoding="utf-8") as readme: + long_description = readme.read() +long_description += "\nChangelog\n=========\n" +with open("CHANGELOG.md", "r", encoding="utf-8") as changelog: + long_description += changelog.read() module_sources = ["./unicodedataplus/unicodedata.c", "./unicodedataplus/unicodectype.c"] @@ -17,7 +20,7 @@ setup( name="unicodedataplus", - version="14.0.0", + version="14.0.0-1", description="Unicodedata with extensions for additional properties.", ext_modules=[main_module], author="Ben Yang",