This repository has been archived by the owner on Feb 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
55 lines (47 loc) · 1.67 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
52
53
54
55
from pathlib import Path
from setuptools import setup, find_packages
BASE_DIR = Path(__file__).parent.resolve(strict=True)
VERSION = '1.2.1'
PACKAGE_NAME = 'pylera1n'
PACKAGES = [p for p in find_packages() if not p.startswith('tests')]
def parse_requirements():
reqs = []
with open(BASE_DIR / 'requirements.txt', 'r') as fd:
for line in fd.readlines():
line = line.strip()
if line:
reqs.append(line)
return reqs
def get_description():
return (BASE_DIR / 'README.md').read_text()
if __name__ == '__main__':
setup(
version=VERSION,
name=PACKAGE_NAME,
description='Python adaptation for palera1n',
long_description=get_description(),
long_description_content_type='text/markdown',
cmdclass={},
packages=PACKAGES,
include_package_data=True,
package_data={PACKAGE_NAME: ['palera1n/**/*', 'kernel_patches/*.patch']},
author='DoronZ',
author_email='doron88@gmail.com',
license='GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007',
install_requires=parse_requirements(),
entry_points={
'console_scripts': ['pylera1n=pylera1n.__main__:cli',
],
},
classifiers=[
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
url='https://github.com/doronz88/pylera1n',
project_urls={
'pylera1n': 'https://github.com/doronz88/pylera1n'
},
tests_require=['pytest'],
)