Skip to content

Commit 23abaec

Browse files
committed
Moved from setup.py to setup.cfg and build
1 parent 2c59489 commit 23abaec

File tree

5 files changed

+34
-77
lines changed

5 files changed

+34
-77
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ jobs:
2929
python -m compileall mumailer
3030
pycodestyle mumailer
3131
python -m flake8 mumailer
32-
python setup.py install --optimize=1 --root=build
32+
python -m pip install --root=build -e .
3333
ls -laR build

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ script:
77
- python -m compileall .
88
- pycodestyle .
99
- python -m flake8 .
10-
- python setup.py install --optimize=1 --root=build
10+
- python -m pip install --root=build install -e .
1111
- ls -laR build

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ['setuptools', 'wheel']
3+
build-backend = 'setuptools.build_meta'

setup.cfg

+29-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,32 @@
1-
[egg_info]
2-
egg_base = ../build
1+
[metadata]
2+
name = MuMailer
3+
version = attr: mumailer.constants.APP_VERSION
4+
description = Simple mailer agent using SMTP
5+
long_description = file: README.md
6+
long_description_content_type = text/markdown
7+
author = Fabio Castelli
8+
author_email = [email protected]
9+
url = http://www.muflone.com/mumailer/
10+
license = GPLv3+
11+
license_files = LICENSE
12+
classifiers =
13+
Development Status :: 1 - Planning
14+
Intended Audience :: Developers
15+
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
16+
Operating System :: OS Independent
17+
Programming Language :: Python :: 3
18+
Programming Language :: Python :: 3.9
19+
Topic :: Software Development :: Libraries :: Python Modules
320

4-
[build]
5-
build_base = ../build
21+
[options]
22+
packages = mumailer
23+
include_package_data = True
24+
install_requires =
25+
pyyaml==6.0
626

7-
[bdist_wheel]
8-
dist_dir = ../dist
27+
[options.package_data]
28+
mumailer = samples/*.py
929

10-
[bdist]
11-
dist_dir = ../dist
12-
13-
[sdist]
14-
dist_dir = ../dist
30+
[options.entry_points]
31+
console_scripts =
32+
mumailer = mumailer.samples.profile_smtp:main

setup.py

-64
This file was deleted.

0 commit comments

Comments
 (0)