diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3359c1f..6acf2aa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -43,9 +43,9 @@ jobs: with: python-version: 3.7 - name: set up node # we need node for for semantic release - uses: actions/setup-node@v2.1.2 + uses: actions/setup-node@v4 with: - node-version: 14.2.0 + node-version: 22.2.0 - name: install python dependencies run: | python -m pip install --upgrade pip @@ -57,8 +57,8 @@ jobs: - name: run semantic release id: new_release run: | - nextRelease="`npx semantic-release@^17.0.0 --dryRun | grep -oP 'Published release \K.*? ' || true`" - npx semantic-release@^17.0.0 + nextRelease="`npx semantic-release@^23.1.1 --dryRun | grep -oP 'Published release \K.*? ' || true`" + npx semantic-release@^23.1.1 echo "::set-output name=tag::$nextRelease" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc.json b/.releaserc.json index fb4306c..7349f6c 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -5,6 +5,8 @@ [ "@semantic-release/github", { + "successComment": false, + "failTitle": false, "assets": [ { "path": "docs/model.json", diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..110ae6d --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,7 @@ +recursive-exclude tests * +recursive-exclude docs * +recursive-exclude samples * +recursive-exclude .github * +exclude .gitignore +exclude .releaserc.json +exclude deploy.sh diff --git a/ladybug_display_schema/visualization.py b/ladybug_display_schema/visualization.py index daaa710..5a544b4 100644 --- a/ladybug_display_schema/visualization.py +++ b/ladybug_display_schema/visualization.py @@ -138,13 +138,13 @@ class LegendParameters(NoExtraBaseModel): 'maximum of the values associated with the legend will be used.' ) - segment_count: Union[Default, conint(ge=2)] = Field( + segment_count: Union[Default, conint(ge=1)] = Field( Default(), description='An integer representing the number of steps between ' 'the high and low boundary of the legend. The default is set to 11 ' 'or it will be equal to the number of items in the ordinal_dictionary. ' 'Any custom values input in here should always be greater than or ' - 'equal to 2.' + 'equal to 1.' ) colors: List[Color] = Field( diff --git a/setup.py b/setup.py index e95565d..f426ef8 100644 --- a/setup.py +++ b/setup.py @@ -18,8 +18,10 @@ url="https://github.com/ladybug-tools/ladybug-display-schema", packages=setuptools.find_packages(exclude=["tests", "scripts", "samples"]), install_requires=requirements, + include_package_data=True, classifiers=[ "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Operating System :: OS Independent" ],