-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
41 lines (33 loc) · 1.19 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
from pathlib import Path
import setuptools
def parse_requirements(requirements: str):
with open(requirements) as f:
return [
l.strip('\n') for l in f if l.strip('\n') and not l.startswith('#')
]
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="toml_union",
version=Path('version.txt').read_text(encoding='utf-8'),
author="Demetry Pascal",
author_email="[email protected]",
maintainer='Demetry Pascal',
description="Utils to merge *.toml files with conflicts highlighting",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/PasaOpasen/toml-union",
license='MIT',
keywords=['toml', 'merge'],
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
install_requires=parse_requirements('./requirements.txt'),
entry_points = {
'console_scripts': ['toml-union=toml_union.toml_union:main'],
},
)