-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
86 lines (77 loc) · 2.9 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
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
82
83
84
85
86
#!/usr/bin/env python3
# Copyright 2019 María Andrea Vignau
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranties of
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
# For further info, check
__author__ = "María Andrea Vignau"
"""
Used to create a command-line tool with setup tools
- Add path to venv into PyCharm
- Project Settings/Project Interpreter/<right click on gear icon>
/Show all/<click on dirtree icon>
/<click on add icon>/
select the path of current tools project
- Go to command prompt, navigate to current project subfolder
- Activate virtualenv,
>>> virtualenv venv
>>> . venv/bin/activate
>>> pip install --editable .
- Install actual module in develop mode
>>> python setup.py develop --no-deps
## Use on console
>>> certmailer --help
## Update pypi package
>>> pip install --user --upgrade setuptools wheel
>>> python3 setup.py sdist bdist_wheel
>>> twine upload --repository-url https://test.pypi.org/legacy/ dist/*
>>> pip install --extra-index-url https://pypi.org/simple
--index-url https://test.pypi.org/simple/
certmailer
>>> twine upload dist/*
"""
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="certmailer",
version="2.0.0",
py_modules=["certmailer"],
install_requires=["PyYaml", "mailjet_rest", "appdirs", "click"],
entry_points="""
[console_scripts]
certmail=certmail:cli
""",
author="María Andrea Vignau",
author_email="mavignau@gmail.com",
description="To download, create and mail certificate on events",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/marian-vignau/certmailer",
packages=["certmailer"],
scripts=["certmail.py"],
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Topic :: Communications :: Email",
],
python_requires=">=3.6",
setup_requires=["wheel"],
package_data={"certmailer": ["template.zip"]},
include_package_data=True,
)