-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
51 lines (48 loc) · 1.48 KB
/
setup.py
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
import os
import re
from setuptools import setup, find_packages
from beschi import LIB_VERSION, LIB_NAME
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md'), encoding="utf-8", mode="r") as f:
LONGDESC = f.read()
SHORTDESC = re.search(r'bit-packing and unpacking code generator for [^\.]*', LONGDESC).group()
setup(
name=LIB_NAME.lower(),
version=LIB_VERSION,
description=SHORTDESC,
long_description=LONGDESC,
long_description_content_type='text/markdown',
url='https://github.com/sjml/beschi',
author='Shane Liesegang',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.11',
'Intended Audience :: Developers',
'Topic :: Software Development :: Code Generators',
],
include_package_data=True,
package_data={'beschi': ['writers/boilerplate/*']},
packages=find_packages(
include=['beschi', 'beschi.writers'],
exclude=['test'], # seems to include test_util no matter what. ¯\_(ツ)_/¯
),
install_requires=[],
extras_require={
'dev': [
'pytest',
],
'publish': [
'build',
'twine',
'setuptools',
]
},
entry_points={
'console_scripts': [
'beschi = beschi.cli:main'
]
}
)