Skip to content

Commit aa415a0

Browse files
committed
Code cleanup
1 parent eb5c940 commit aa415a0

File tree

6 files changed

+30
-14
lines changed

6 files changed

+30
-14
lines changed

.circleci/config.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
version: 2.1
22

33
orbs:
4-
# The python orb contains a set of prepackaged CircleCI configuration you can use repeatedly in your configuration files
5-
# Orb commands and jobs help you with common scripting around a language/tool
6-
# so you dont have to copy and paste it everywhere.
4+
# The python orb contains a set of prepackaged CircleCI configuration you can
5+
# use repeatedly in your configuration files
6+
# Orb commands and jobs help you with common scripting around a language/tool,
7+
# so you don't have to copy and paste it everywhere.
78
# See the orb documentation here: https://circleci.com/developer/orbs/orb/circleci/python
89
python: circleci/[email protected]
910

@@ -27,8 +28,13 @@ jobs:
2728
command: |
2829
. venv/bin/activate
2930
python -m compileall mumailer
30-
pycodestyle mumailer
31+
python -m pycodestyle mumailer
3132
python -m flake8 mumailer
32-
python -m pip install --root=build -e .
33+
python -m build --outdir=dist .
34+
python -m pip install --verbose dist/*.whl
35+
python -m pip list
36+
python -m pip freeze
3337
mumailer --help
3438
mumailer --version
39+
ls -laR .
40+
python -m pip uninstall --yes --verbose mumailer

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ __pycache__/
88
# Ignore build and dist folders for PyPI
99
/build/
1010
/dist/
11-
MuMailer.egg-info/
11+
/*.egg-info/

.travis.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ python:
44
install:
55
- pip install -r requirements_ci.txt
66
script:
7-
- python -m compileall .
8-
- pycodestyle .
9-
- python -m flake8 .
10-
- python -m pip install --root=build install -e .
7+
- python -m compileall mumailer
8+
- python -m pycodestyle mumailer
9+
- python -m flake8 mumailer
10+
- python -m build --outdir=dist .
11+
- python -m pip install --verbose dist/*.whl
12+
- python -m pip list
13+
- python -m pip freeze
1114
- mumailer --help
1215
- mumailer --version
16+
- ls -laR .
17+
- python -m pip uninstall --yes --verbose mumailer

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# MuMailer
2+
23
[![Travis CI Build Status](https://img.shields.io/travis/com/muflone/mumailer/master.svg)](https://www.travis-ci.com/github/muflone/mumailer)
34
[![CircleCI Build Status](https://img.shields.io/circleci/project/github/muflone/mumailer/master.svg)](https://circleci.com/gh/muflone/mumailer)
45
[![PyPI - Version](https://img.shields.io/pypi/v/MuMailer.svg)](https://pypi.org/project/MuMailer/)

mumailer/constants.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@
2121
APP_NAME = 'MuMailer'
2222
APP_VERSION = '0.4.2'
2323
APP_DESCRIPTION = 'Simple mailer agent using SMTP'
24-
APP_ID = 'mumailer.muflone.com'
25-
APP_URL = 'http://www.muflone.com/mumailer/'
24+
APP_DOMAIN = 'mumailer'
25+
APP_ID = f'{APP_DOMAIN}.muflone.com'
2626
APP_AUTHOR = 'Fabio Castelli'
2727
APP_AUTHOR_EMAIL = '[email protected]'
28-
APP_COPYRIGHT = 'Copyright 2021 %s' % APP_AUTHOR
28+
APP_COPYRIGHT = f'Copyright 2021-2022 {APP_AUTHOR}'
29+
URL_AUTHOR = 'http://www.muflone.com/'
30+
URL_APPLICATION = f'{URL_AUTHOR}{APP_DOMAIN}/'
31+
URL_SOURCES = f'https://github.com/muflone/{APP_DOMAIN}/'

setup.cfg

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ classifiers =
1616
Operating System :: OS Independent
1717
Programming Language :: Python :: 3
1818
Programming Language :: Python :: 3.9
19+
Programming Language :: Python :: 3.10
1920
Topic :: Software Development :: Libraries :: Python Modules
2021

2122
[options]
2223
packages = mumailer
23-
include_package_data = True
24+
include_package_data = False
2425
install_requires =
2526
pyyaml==6.0
2627

0 commit comments

Comments
 (0)