diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index ed36b8a..41d7092 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d4d388e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Publish to PyPI + +on: + push: + branches: [ "release" ] + pull_request: + branches: [ "release" ] + +jobs: + pypi-publish: + name: upload release to PyPI + runs-on: ubuntu-latest + # Specifying a GitHub environment is optional, but strongly encouraged + environment: release + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write + steps: + # retrieve your distributions here + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ \ No newline at end of file diff --git a/setup.py b/setup.py index bc9027b..6baa60a 100644 --- a/setup.py +++ b/setup.py @@ -4,12 +4,12 @@ setup( name='PyTexturePacker', packages=find_packages(exclude=['docs', 'tests', 'test_image']), - version='1.1.0', + version='1.2.0', description='an package to create sprite sheets or sprite atlases', author='Quanyong Huang', author_email='quanyongh@foxmail.com', url='https://github.com/wo1fsea/PyTexturePacker', - download_url='https://github.com/wo1fsea/PyTexturePacker/releases/tag/v1.1.0', + download_url='https://github.com/wo1fsea/PyTexturePacker/releases/tag/v1.2.0', keywords=['TexturePacker', 'cocos2d-x', 'sprite-sheet', 'texture-pack'], license='MIT', install_requires=['Pillow'], @@ -18,6 +18,11 @@ "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Multimedia :: Graphics", "License :: OSI Approved :: MIT License",