-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (29 loc) · 1 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
import setuptools
with open("README.md", "r") as f:
long_description = f.read()
version = None
with open("tinyconf/__init__.py", "r") as f:
for line in f:
if line.startswith('__version__'):
version = ''.join([x for x in line.split(' ')[-1] if x in '0123456789.'])
setuptools.setup(
name="tinyconf",
version=version,
author="JellyWX",
author_email="[email protected]",
description="A declarative config parsing library",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/jellywx/tinyconf",
packages=setuptools.find_packages(),
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Natural Language :: English",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Utilities",
],
)