Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (49 loc) · 1.69 KB
/
Copy pathsetup.py
File metadata and controls
54 lines (49 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from __future__ import annotations
import re
from setuptools import find_packages, setup
with open("README.md") as fh:
long_description = fh.read()
# Read version from single source of truth
with open("easyeda2kicad/_version.py") as fh:
_match = re.search(r'^__version__ = "([^"]+)"', fh.read(), re.MULTILINE)
if _match is None:
raise RuntimeError("Cannot find __version__ in _version.py")
_version = _match.group(1)
setup(
name="easyeda2kicad",
description=(
"A Python script that convert any electronic components from LCSC or EasyEDA to"
" a Kicad library"
),
long_description=long_description,
long_description_content_type="text/markdown",
version=_version,
author="uPesy",
author_email="contact@upesy.com",
url="https://github.com/uPesy/easyeda2kicad.py",
project_urls={
"Code": "https://github.com/uPesy/easyeda2kicad.py",
},
license="AGPL-3.0",
py_modules=["easyeda2kicad"],
platforms="any",
packages=find_packages(exclude=["tests", "utils"]),
package_dir={"easyeda2kicad": "easyeda2kicad"},
entry_points={"console_scripts": ["easyeda2kicad = easyeda2kicad.__main__:main"]},
python_requires=">=3.9",
install_requires=[],
extras_require={
"dev": [
"pre-commit>=3.0.0",
]
},
zip_safe=False,
keywords="easyeda kicad library conversion",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
],
)