This repository was archived by the owner on Aug 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·81 lines (71 loc) · 2.69 KB
/
setup.py
File metadata and controls
executable file
·81 lines (71 loc) · 2.69 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2017-2019 Luiz Augusto Alves Ferraz
# .
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# .
# http://www.apache.org/licenses/LICENSE-2.0
# .
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from os import environ
from pathlib import Path
from setuptools import setup, find_packages
setup_folder: Path = Path(__file__).resolve().parent
readme_path = setup_folder.joinpath("README.md")
VERSION = environ.get('CIRCLE_TAG', '0.0.0.dev1')
DOWNLOAD_URL = None
VALID_DIST_TYPES = ("release", "beta", "alpha", "bugfix", "hotfix")
DIST_TYPE = 'development'
if 'CIRCLE_TAG' in environ:
import re
DOWNLOAD_URL = 'https://github.com/Fryuni/easygoogle/archive/%s.tar.gz' % VERSION
match = re.match(
r'^([a-z]+)-([0-9]+)\.([0-9]+)\.([0-9]+(?:[ab]|dev)?[0-9]*)$', VERSION
)
if match:
VERSION = '.'.join(match.groups()[1:])
DIST_TYPE = match.group(1)
else:
exit("Invalid CIRCLE_TAG environment variable")
if DIST_TYPE not in VALID_DIST_TYPES:
exit("Invalid tag prefix")
setup(
name="easygoogle",
packages=find_packages(exclude=['tests']),
license="Apache License 2.0",
version=VERSION,
description="Easy to use wrapper to google APIs client library",
long_description=readme_path.read_text(),
long_description_content_type='text/markdown',
# package_data={
# 'easygoogle': ['apis.json']
# },
author="Luiz Augusto Ferraz",
author_email="luiz@lferraz.com",
install_requires=[
"google-api-python-client (~=1.7.11)",
'google-auth (~=1.6.3)',
'google-auth-oauthlib (~=0.4.0)',
],
url="https://github.com/Fryuni/easygoogle",
download_url=DOWNLOAD_URL,
keywords="google apis google-apis",
# entry_points={
# 'console_scripts': [
# 'easygoogle_refreshapis=easygoogle.config:main',
# ],
# },
classifiers=["Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Utilities"]
)