-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
executable file
·68 lines (56 loc) · 2.16 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
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/python3
import sys
import os
from setuptools import setup
if sys.version_info[0] != 3:
sys.exit("Python3 is required in order to install hexsticker")
def get_requirements():
with open('requirements.txt') as fd:
return fd.read().splitlines()
def get_version():
with open(os.path.join('hexsticker', '__init__.py')) as f:
content = f.readlines()
for line in content:
if line.startswith('__version__ ='):
# dirty, remove trailing and leading chars
return line.split(' = ')[1][1:-2]
raise ValueError("No version identifier found")
def get_long_description():
with open('README.rst', 'r') as f:
return f.read()
setup(
name='hexsticker',
version=get_version(),
entry_points={
'console_scripts': ['hexsticker=hexsticker.cli:hexsticker']
},
packages=['hexsticker'],
install_requires=get_requirements(),
author='Fridolin Pokorny',
author_email='[email protected]',
maintainer='Fridolin Pokorny',
maintainer_email='[email protected]',
description='Convert any image to image that conforms with hexagon stickers standard.',
long_description=get_long_description(),
url='https://github.com/fridex/hexsticker',
license='GPLv2',
keywords='hexagon stickers hexagon-stickers',
classifiers=[
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Multimedia :: Graphics",
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
"Topic :: Multimedia :: Graphics :: Presentation",
"Topic :: Utilities"
]
)