69 lines
1.6 KiB
Python
69 lines
1.6 KiB
Python
import pathlib
|
|
import re
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
thisdir = pathlib.Path(__file__).parent
|
|
srdir = thisdir / "bricklink_api"
|
|
|
|
|
|
with (thisdir / "README.md").open() as f:
|
|
readme = f.read()
|
|
|
|
with (thisdir / "requirements.txt").open() as f:
|
|
install_requires = [s.strip() for s in f.readlines()]
|
|
|
|
|
|
metadata_pobj = re.compile(r"__([a-z]+)__ = \"([^\"]+)")
|
|
with (srdir / "__init__.py").open(encoding="utf8") as f:
|
|
initpy = f.read()
|
|
metadata = dict(metadata_pobj.findall(initpy))
|
|
|
|
|
|
setup(
|
|
name = "bricklink_api",
|
|
version = metadata["version"],
|
|
description = "BrickLink API",
|
|
long_description = readme,
|
|
url = "https://github.com/BrickBytes/bricklink_api",
|
|
author = "Szieberth Ádám",
|
|
author_email = "sziebadam@gmail.com",
|
|
license = "MIT",
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
"Programming Language :: Python :: 3.6",
|
|
"Programming Language :: Python :: 3.7",
|
|
"Programming Language :: Python :: 3.8"
|
|
],
|
|
keywords = [
|
|
"game",
|
|
"lego",
|
|
"brick",
|
|
"bricklink",
|
|
],
|
|
packages = find_packages(),
|
|
package_dir = {
|
|
"bricklink_api": "bricklink_api",
|
|
},
|
|
include_package_data = True,
|
|
package_data={
|
|
"": [
|
|
"LICENSE.txt",
|
|
"README.md",
|
|
"*.json",
|
|
],
|
|
"bricklink_api": [
|
|
"*.json",
|
|
],
|
|
},
|
|
install_requires = install_requires,
|
|
extras_require = {
|
|
},
|
|
python_requires = ">=3.6",
|
|
scripts = [
|
|
],
|
|
)
|