-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (33 loc) · 1.12 KB
/
Copy pathsetup.py
File metadata and controls
39 lines (33 loc) · 1.12 KB
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
import setuptools
import re
with open('README.md', 'r') as readme:
long_desc = readme.read()
with open('requirements.txt', 'r') as reqf:
requirements = reqf.read().splitlines()
version = ''
with open('blockcard/__init__.py') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('version is not set')
setuptools.setup(
name='blockcard',
version=version,
author='Chris K. W.',
author_email='chriskw.xyz@gmail.com',
license='MIT',
include_package_data=True,
description='It\'s the proof-of-thought that counts',
long_description=long_desc,
long_description_content_type='text/markdown',
url='https://github.com/ckw017/blockcard',
packages=setuptools.find_packages(),
install_requires=requirements,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Natural Language :: English',
]
)