-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
38 lines (31 loc) · 1.08 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
import setuptools
import info
def parse_requirements(filename):
""" load requirements from a pip requirements file """
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name=info.name,
version=info.version,
author=info.author,
author_email=info.email,
description=info.description,
long_description=long_description,
long_description_content_type="text/markdown",
packages=setuptools.find_packages(exclude=['tests']),
include_package_data=True,
data_files=[
('header-file', ['pferret/lib/libferret.h']),
('so-file', ['pferret/lib/libferret.so']),
('go-file', ['pferret/lib/main.go']),
('go-mod-file', ['pferret/lib/go.mod']),
('go-sum-file', ['pferret/lib/go.sum']),
],
url=f'https://github.com/MontFerret/{info.name}',
classifiers=[
"Programming Language :: Python :: 3.7",
"Operating System :: OS Independent",
],
)