gerbonara/setup.py

66 wiersze
2.4 KiB
Python

2021-05-23 11:42:45 +00:00
#!/usr/bin/env python3
2022-02-06 19:42:46 +00:00
from pathlib import Path
2021-05-23 11:42:45 +00:00
from setuptools import setup, find_packages
2022-02-06 19:42:46 +00:00
import subprocess
2021-05-23 11:42:45 +00:00
def version():
2022-06-10 20:23:28 +00:00
try:
res = subprocess.run(['git', 'describe', '--tags', '--match', 'v*'], capture_output=True, check=True, text=True)
version, _, _rest = res.stdout.strip()[1:].partition('-')
return version
except:
subprocess.run(['git', 'describe', '--tags', '--match', 'v*'])
raise
2021-05-23 11:42:45 +00:00
setup(
name='gerbonara',
version=version(),
2022-01-30 19:08:09 +00:00
author='jaseg, XenGi',
2022-02-01 21:08:54 +00:00
author_email='gerbonara@jaseg.de',
2021-05-23 11:42:45 +00:00
description='Tools to handle Gerber and Excellon files in Python',
2022-02-06 19:42:46 +00:00
long_description=Path('README.md').read_text(),
2021-05-23 11:42:45 +00:00
long_description_content_type='text/markdown',
2022-01-30 19:08:09 +00:00
url='https://gitlab.com/gerbolyze/gerbonara',
2021-05-23 11:42:45 +00:00
project_urls={
2022-02-06 23:00:08 +00:00
'Documentation': 'https://gerbolyze.gitlab.io/gerbonara/',
2021-05-23 11:42:45 +00:00
# 'Funding': 'https://donate.pypi.org',
# 'Say Thanks!': 'http://saythanks.io/to/example',
2022-02-06 23:00:08 +00:00
'Source': 'https://gitlab.com/gerbolyze/gerbonara',
'Tracker': 'https://gitlab.com/gerbolyze/gerbonara/issues',
2021-05-23 11:42:45 +00:00
},
packages=find_packages(exclude=['tests']),
2023-09-19 10:44:22 +00:00
install_requires=['click', 'rtree'],
2021-06-04 00:08:13 +00:00
entry_points={
'console_scripts': [
'gerbonara = gerbonara.cli:cli',
],
},
2021-05-23 11:42:45 +00:00
classifiers=[
2022-01-30 19:08:09 +00:00
'Development Status :: 4 - Beta',
2021-05-23 11:42:45 +00:00
#'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Manufacturing',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.10',
2023-04-15 20:12:45 +00:00
'Programming Language :: Python :: 3.11',
2021-05-23 11:42:45 +00:00
'Topic :: Artistic Software',
'Topic :: Multimedia :: Graphics',
'Topic :: Printing',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
'Topic :: Scientific/Engineering :: Image Processing',
'Topic :: Utilities',
'Typing :: Typed',
],
keywords='gerber excellon pcb',
2023-04-15 20:12:45 +00:00
python_requires='>=3.10',
2021-05-23 11:42:45 +00:00
)