-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (24 loc) · 857 Bytes
/
setup.py
File metadata and controls
31 lines (24 loc) · 857 Bytes
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
import re
from os.path import join, dirname
from setuptools import setup, find_namespace_packages
# reading package version (same way the sqlalchemy does)
with open(join(dirname(__file__), 'yhttp/dev', '__init__.py')) as v_file:
package_version = re.compile('.*__version__ = \'(.*?)\'', re.S).\
match(v_file.read()).group(1)
dependencies = []
setup(
name='yhttp-dev',
version=package_version,
install_requires=dependencies,
url='https://github.com/yhttp/yhttp-dev',
author='pylover',
author_email='vahid.mardani@gmail.com',
description='yhttp development utilities',
long_description=open('README.md').read(),
long_description_content_type='text/markdown', # This is important!
packages=find_namespace_packages(
where='.',
include=['yhttp.dev'],
exclude=['tests'],
)
)