chore: Switch to pyproject.toml for build configuration
Removes obsolete setup.py and GitHub workflow for PyPI deployment, shifting build configuration to pyproject.toml. Updates version to 0.13.0 to align with the new configuration. This change enhances maintainability by consolidating build settings and simplifying dependency management.
This commit is contained in:
parent
aea3487f07
commit
964c0466bc
4 changed files with 40 additions and 63 deletions
20
.github/workflows/upload-pypi.yml
vendored
20
.github/workflows/upload-pypi.yml
vendored
|
@ -1,20 +0,0 @@
|
||||||
name: upload-pypi
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags: v*
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- name: Set up Python 3.7
|
|
||||||
uses: actions/setup-python@v1
|
|
||||||
with:
|
|
||||||
python-version: 3.7
|
|
||||||
- name: Create sdist
|
|
||||||
run: python setup.py sdist
|
|
||||||
- name: Publish package to PyPI
|
|
||||||
uses: pypa/gh-action-pypi-publish@v1.0.0a0
|
|
||||||
with:
|
|
||||||
user: __token__
|
|
||||||
password: ${{ secrets.pypi_password }}
|
|
|
@ -1,2 +1,2 @@
|
||||||
__author__ = 'Xyene'
|
__author__ = 'Xyene'
|
||||||
__version__ = '0.2.1'
|
__version__ = '0.13.0'
|
||||||
|
|
39
pyproject.toml
Normal file
39
pyproject.toml
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=42", "wheel"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "cube2sphere"
|
||||||
|
version = "0.13.0"
|
||||||
|
description = "Utility to map 6 cube (cubemap, skybox) faces into an equirectangular (cylindrical projection, skysphere) map"
|
||||||
|
readme = "README.md"
|
||||||
|
authors = [
|
||||||
|
{ name = "Tudor Brindus", email = "me@tbrindus.ca" },
|
||||||
|
{ name = "Kumi", email = "cube2sphere@kumi.email" },
|
||||||
|
]
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 3 - Alpha",
|
||||||
|
"Environment :: Console",
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3.5",
|
||||||
|
"Programming Language :: Python :: 3.6",
|
||||||
|
"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 :: 3.13",
|
||||||
|
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
"Programming Language :: Python",
|
||||||
|
"Topic :: Artistic Software",
|
||||||
|
]
|
||||||
|
urls = { "Homepage" = "http://git.private.coffee/kumi/cube2sphere" }
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
cube2sphere = "cube2sphere.cube2sphere:main"
|
||||||
|
|
||||||
|
[tool.setuptools.packages.find]
|
||||||
|
include = ["cube2sphere"]
|
42
setup.py
42
setup.py
|
@ -1,42 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
__author__ = 'Xyene'
|
|
||||||
from setuptools import setup, find_packages
|
|
||||||
import os
|
|
||||||
|
|
||||||
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as fh:
|
|
||||||
long_description = fh.read()
|
|
||||||
|
|
||||||
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'cube2sphere', 'version.py')) as version:
|
|
||||||
exec (version.read())
|
|
||||||
|
|
||||||
setup(name='cube2sphere',
|
|
||||||
version=__version__,
|
|
||||||
description='Utility to map 6 cube (cubemap, skybox) faces into an equirectangular (cylindrical projection, skysphere) map',
|
|
||||||
long_description=long_description,
|
|
||||||
long_description_content_type='text/markdown',
|
|
||||||
author='Tudor Brindus',
|
|
||||||
author_email='me@tbrindus.ca',
|
|
||||||
url='http://github.com/Xyene/cube2sphere',
|
|
||||||
packages=find_packages(),
|
|
||||||
package_data={
|
|
||||||
"cube2sphere": ["*.blend"],
|
|
||||||
},
|
|
||||||
entry_points={
|
|
||||||
'console_scripts': ['cube2sphere=cube2sphere.cube2sphere:main'],
|
|
||||||
},
|
|
||||||
classifiers=[
|
|
||||||
'Development Status :: 3 - Alpha',
|
|
||||||
'Environment :: Console',
|
|
||||||
'Intended Audience :: Developers',
|
|
||||||
'Programming Language :: Python :: 3',
|
|
||||||
'Programming Language :: Python :: 3.5',
|
|
||||||
'Programming Language :: Python :: 3.6',
|
|
||||||
'Programming Language :: Python :: 3.7',
|
|
||||||
'Programming Language :: Python :: 3.8',
|
|
||||||
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
|
|
||||||
'Operating System :: OS Independent',
|
|
||||||
'Programming Language :: Python',
|
|
||||||
'Topic :: Artistic Software'
|
|
||||||
],
|
|
||||||
)
|
|
Loading…
Reference in a new issue