mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
change to pyproject.toml instead of setup.py
This commit is contained in:
parent
2ec956a546
commit
7e05bf4263
54
pyproject.toml
Normal file
54
pyproject.toml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=61.0"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "robohash"
|
||||||
|
version = "2.0"
|
||||||
|
description = "One of the leading robot-based hashing tools on the web"
|
||||||
|
readme = "README.md"
|
||||||
|
license = {text = "MIT"}
|
||||||
|
authors = [
|
||||||
|
{name = "e1ven", email = "robo@robohash.org"}
|
||||||
|
]
|
||||||
|
keywords = ["robots", "avatar", "identicon"]
|
||||||
|
classifiers = [
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"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",
|
||||||
|
"Development Status :: 5 - Production/Stable",
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
|
||||||
|
"Topic :: Multimedia :: Graphics",
|
||||||
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||||
|
"Topic :: Utilities",
|
||||||
|
]
|
||||||
|
requires-python = ">=3.8"
|
||||||
|
dependencies = [
|
||||||
|
"pillow>=9.1.1",
|
||||||
|
"natsort>=8.1.0"
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
web = ["tornado>=6.1"]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
Homepage = "https://github.com/e1ven/Robohash"
|
||||||
|
Repository = "https://github.com/e1ven/Robohash"
|
||||||
|
"Docker Images" = "https://github.com/e1ven/Robohash/pkgs/container/robohash"
|
||||||
|
|
||||||
|
[tool.setuptools.packages.find]
|
||||||
|
include = ["robohash*"]
|
||||||
|
|
||||||
|
[tool.setuptools.package-data]
|
||||||
|
robohash = [
|
||||||
|
"sets/set1/*/*/*",
|
||||||
|
"sets/set2/*/*",
|
||||||
|
"sets/set3/*/*",
|
||||||
|
"sets/set4/*/*",
|
||||||
|
"sets/set5/*/*",
|
||||||
|
"backgrounds/*/*",
|
||||||
|
]
|
48
setup.py
48
setup.py
@ -1,48 +0,0 @@
|
|||||||
try:
|
|
||||||
from setuptools import setup
|
|
||||||
except ImportError:
|
|
||||||
from distutils.core import setup
|
|
||||||
|
|
||||||
with open('README.md', encoding='utf-8') as file:
|
|
||||||
long_description = file.read()
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name='robohash',
|
|
||||||
packages=['robohash'],
|
|
||||||
version='2.0a1',
|
|
||||||
description='One of the leading robot-based hashing tools on the web',
|
|
||||||
long_description=long_description,
|
|
||||||
long_description_content_type='text/markdown',
|
|
||||||
author='e1ven',
|
|
||||||
author_email='robo@robohash.org',
|
|
||||||
url='https://github.com/e1ven/Robohash',
|
|
||||||
download_url='https://github.com/e1ven/Robohash/tarball/2.0a1',
|
|
||||||
keywords=['robots', 'avatar', 'identicon'],
|
|
||||||
license='MIT',
|
|
||||||
classifiers=[
|
|
||||||
"License :: OSI Approved :: MIT License",
|
|
||||||
"Programming Language :: Python :: 3",
|
|
||||||
"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",
|
|
||||||
"Development Status :: 4 - Beta",
|
|
||||||
"Topic :: Security",
|
|
||||||
],
|
|
||||||
package_data={
|
|
||||||
'robohash': [
|
|
||||||
'sets/set1/*/*/*',
|
|
||||||
'sets/set2/*/*',
|
|
||||||
'sets/set3/*/*',
|
|
||||||
'sets/set4/*/*',
|
|
||||||
'sets/set5/*/*',
|
|
||||||
'backgrounds/*/*',
|
|
||||||
]
|
|
||||||
},
|
|
||||||
install_requires=['pillow>=9.1.1', 'natsort>=8.1.0'],
|
|
||||||
extras_require={
|
|
||||||
'web': ['tornado>=6.1'],
|
|
||||||
},
|
|
||||||
python_requires='>=3.6',
|
|
||||||
)
|
|
Loading…
x
Reference in New Issue
Block a user