diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 226f8ea..32be06f 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -16,10 +16,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python 3.11 uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.11 - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f7a1cfe --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,35 @@ +[build-system] +requires = ["setuptools>=77", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "numpyencoder" +version = "0.3.2" +description = "Python JSON encoder for handling Numpy data types." +readme = { file = "README.md", content-type = "text/markdown" } + +requires-python = ">=3.6" +license = "MIT" +license-files = ["LICENSE"] + +authors = [ + { name = "Hunter M. Allen", email = "allenhm@gmail.com" }, +] + +keywords = ["numpy", "json", "encoder"] + +classifiers = [ + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", +] + +dependencies = [ + "numpy>=1.14.3", + "packaging>=20.0", +] + +[project.urls] +Homepage = "https://github.com/hmallen/numpyencoder" + +[tool.setuptools.packages.find] +include = ["numpyencoder*"] diff --git a/setup.py b/setup.py deleted file mode 100644 index bb064e3..0000000 --- a/setup.py +++ /dev/null @@ -1,28 +0,0 @@ -from setuptools import setup - -with open("README.md", "r", encoding="utf-8") as fh: - long_description = fh.read() - -setup( - name="numpyencoder", - version="0.3.2", - author="Hunter M. Allen", - author_email="allenhm@gmail.com", - license="MIT", - packages=["numpyencoder"], - install_requires=[ - "numpy>=1.14.3", - "packaging>=20.0", - ], - description="Python JSON encoder for handling Numpy data types.", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://github.com/hmallen/numpyencoder", - keywords=["numpy", "json", "encoder"], - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - ], - python_requires=">=3.6", -)