-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsetup.py
62 lines (52 loc) · 1.79 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
import re
from setuptools import setup, find_packages
from os import path
BASE_DIR = path.abspath(path.dirname(__file__))
with open(path.join(BASE_DIR, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
def get_version():
filename = path.join('pyproc', '__init__.py')
with open(filename, 'r') as f:
content = f.read()
version = re.findall(r"version[\s+='_\"]+(.*)['\"]", content)
return version[0]
setup(
name='pyproc',
version=get_version(),
description='Python SPSEv4 wrapper',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://gitlab.com/wakataw/pyproc',
author='Agung Pratama',
author_email='agungpratama1001@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
'Natural Language :: English',
'Natural Language :: Indonesian',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: MIT License'
],
python_requires='>=3.7',
install_requires=[
'requests',
'BeautifulSoup4',
'html5lib',
'backoff',
],
entry_points={
'console_scripts': ['pyproc=scripts.downloader:main']
},
project_urls={
'Bug Reports': 'https://gitlab.com/wakataw/pyproc/issues',
'Source': 'https://gitlab.com/wakataw/pyproc'
},
keywords='api, spse, lpse, pengadaan, procurement, lkpp, lelang, tender',
packages=find_packages(exclude=['tests', 'examples']),
zip_safe=True,
license='MIT'
)