From 9517c78e5d82c5d60f339622bf45454d0f2f521b Mon Sep 17 00:00:00 2001 From: Ciro Date: Thu, 24 Nov 2022 18:51:53 -0300 Subject: [PATCH] tests with pipy --- publish.sh | 5 +++++ pyproject.toml | 22 ++++++++++++++++++++++ setup.py | 8 ++++---- 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100755 publish.sh create mode 100644 pyproject.toml diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..08c0227 --- /dev/null +++ b/publish.sh @@ -0,0 +1,5 @@ +python3 ./setup.py bdist_wheel --plat-name=any +pypy3 ./setup.py bdist_wheel --plat-name=any +python3 -m build -s +python3 -m twine upload -r testpypi dist/* --verbose +python3 -m pip install socketify --extra-index-url https://test.pypi.org/simple/ \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f3ef049 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,22 @@ +[build-system] +requires = ["cffi>=1.0","setuptools>=58.1"] +build-backend = "setuptools.build_meta" + +[project] +name = "socketify" +version = "0.0.1" +authors = [ + { name="Ciro Spaciari", email="ciro.spaciari@gmail.com" }, +] +description = "Bringing WebSockets, Http/Https High Peformance servers for PyPy3 and Python3" +readme = "README.md" +requires-python = ">=3.7" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] + +[project.urls] +"Homepage" = "https://github.com/cirospaciari/socketify.py" +"Bug Tracker" = "https://github.com/cirospaciari/socketify.py/issues" \ No newline at end of file diff --git a/setup.py b/setup.py index fb4c338..27cf1f3 100644 --- a/setup.py +++ b/setup.py @@ -59,15 +59,15 @@ with open("README.md", "r", encoding="utf-8") as fh: setuptools.setup( name="socketify", version="0.0.1", - platforms=["macOS", "POSIX"], + platforms=["any"], author="Ciro Spaciari", author_email="ciro.spaciari@gmail.com", - description="Fast WebSocket and Http/Https server", + description="Bringing WebSockets, Http/Https High Peformance servers for PyPy3 and Python3", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/cirospaciari/socketify.py", project_urls={ - "Bug Tracker": "https://github.com/cirospaciari/issues", + "Bug Tracker": "https://github.com/cirospaciari/socketify.py/issues", }, classifiers=[ "Programming Language :: Python :: 3", @@ -89,7 +89,7 @@ setuptools.setup( ] }, python_requires=">=3.7", - install_requires=["cffi>=1.0.0", "setuptools>=58.1.0"], + install_requires=["cffi>=1.0", "setuptools>=58.1.0"], has_ext_modules=lambda: True, cmdclass={}, # cmdclass={'sdist': Prepare, 'build_ext': Makefile}, include_package_data=True,