-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (29 loc) · 1.07 KB
/
setup.py
File metadata and controls
35 lines (29 loc) · 1.07 KB
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
import os
import re
from setuptools import setup, find_packages
project_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(project_dir, 'version.txt')) as f:
version = f.read().rstrip()
# We use the .in file because a library shouldn't pin versions, it breaks consumers' updates.
# We allow commented lines in this file
with open(os.path.join(project_dir, 'requirements', 'base.in')) as f:
requirements_raw = f.readlines()
requirements_without_comments = [
line for line in requirements_raw if line and not line.startswith('#')
]
setup(
name='maven-lambda',
version=version,
description="""Generate maven metadata on an S3 bucket thanks to an AWS Lambda function""",
author='Mozilla Release Engineering',
author_email='release+python@mozilla.com',
url='https://github.com/mozilla-releng/maven-lambda',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
license='MPL2',
install_requires=requirements_without_comments,
classifiers=(
'Programming Language :: Python :: 3',
),
)