-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (52 loc) · 1.82 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
import os
from setuptools import setup, find_packages
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
def read_requirements():
if os.path.exists("requirements.txt"):
with open("requirements.txt", "r", encoding="utf-8") as f:
return [line.strip() for line in f if line.strip() and not line.startswith("#")]
return []
setup(
name="merge_code",
version="0.1.0",
author="sy",
author_email="[email protected]",
description="A tool to merge source code files for software copyright application",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/songyi1999/merge_code",
packages=find_packages(where="src"),
package_dir={"": "src"},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
install_requires=read_requirements(),
entry_points={
"console_scripts": [
"merge_code=merge_code.main:main",
],
},
include_package_data=True,
package_data={
"merge_code": ["*.txt", "*.md"],
},
extras_require={
"dev": ["pytest", "flake8", "mypy"],
},
project_urls={
"Bug Reports": "https://github.com/songyi1999/merge_code/issues",
"Source": "https://github.com/songyi1999/merge_code",
},
)