Skip to content

Commit

Permalink
support pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Sep 1, 2023
1 parent 74c40c9 commit 25ee3fa
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 35 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: build
run: |
pip install -r requirements.txt
python setup.py sdist
python -m build -s
- uses: actions/upload-artifact@v2
with:
name: sdist
Expand Down Expand Up @@ -45,10 +45,10 @@ jobs:
shell: bash
run: |
pip install -r requirements.txt
python setup.py sdist # To run cythonize
python -m build -s # to run Cythonize
- name: Build
uses: pypa/cibuildwheel@v2.11.2
uses: pypa/cibuildwheel@v2.15.0
env:
CIBW_ARCHS_LINUX: auto aarch64
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
Expand Down
4 changes: 3 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include wsaccel/*.[ch]
include README.rst
include LICENSE
include README.rst
include pyproject.toml
include setup.*
5 changes: 2 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
Cython~=0.29.32
wheel
setuptools
build
cython
20 changes: 20 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[metadata]
name = wsaccel
version = 0.6.5
description = Accelerator for ws4py and AutobahnPython
maintainer = Inada Naoki
maintainer_email = [email protected]
url = https://github.com/methane/wsaccel
license = Apache 2.0
long_description = file: README.md
long_description_content_type = text/x-rst
classifiers=
"Intended Audience :: Developers"
"Operating System :: OS Independent"
"Programming Language :: Python"
"Programming Language :: Python :: 3"
"Programming Language :: Python :: 3.9"
"Programming Language :: Python :: 3.10"
"Programming Language :: Python :: 3.11"
"Programming Language :: Python :: 3.12"
"Programming Language :: Python :: Implementation :: CPython"
33 changes: 5 additions & 28 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,31 +47,8 @@ def __init__(self, *args, **kwargs):
Extension('wsaccel.xormask', ['wsaccel/xormask.c']),
]

with open('README.rst', encoding='utf-8') as f:
long_description = f.read()

setup(name="wsaccel",
version='0.6.4',
description="Accelerator for ws4py and AutobahnPython",
maintainer="Inada Naoki",
maintainer_email="[email protected]",
url="https://github.com/methane/wsaccel",
packages=["wsaccel"],
cmdclass={'build_ext': BuildExt, 'sdist': Sdist},
ext_modules=ext_modules,
platforms=["any"],
license='Apache',
long_description=long_description,
classifiers=[
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'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 :: Implementation :: CPython',
],
)
setup(
packages=["wsaccel"],
cmdclass={'build_ext': BuildExt, 'sdist': Sdist},
ext_modules=ext_modules,
)

0 comments on commit 25ee3fa

Please sign in to comment.