Skip to content

Commit 6bca42a

Browse files
committed
Moved from setuptools to build
1 parent 8fc8f98 commit 6bca42a

File tree

6 files changed

+43
-74
lines changed

6 files changed

+43
-74
lines changed

.circleci/config.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ jobs:
2727
command: |
2828
. venv/bin/activate
2929
python -m compileall pyodoo samples
30-
pycodestyle pyodoo samples
30+
python -m pycodestyle pyodoo samples
3131
python -m flake8 pyodoo samples
32-
python setup.py install --optimize=1 --root=build
33-
ls -laR build
32+
python -m build --outdir=dist .
33+
python -m pip install --verbose dist/*.whl
34+
python -m pip list
35+
python -m pip freeze
36+
ls -laR .
37+
python -m pip uninstall --yes --verbose pyodoo
3438
python -m pytest --verbose --capture=no tests

.travis.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ python:
44
install:
55
- pip install -r requirements_ci.txt
66
script:
7-
- python -m compileall .
8-
- pycodestyle .
9-
- python -m flake8 .
10-
- python setup.py install --optimize=1 --root=build
11-
- ls -laR build
7+
- python -m compileall pyodoo samples
8+
- python -m pycodestyle pyodoo samples
9+
- python -m flake8 pyodoo samples
10+
- python -m build --outdir=dist .
11+
- python -m pip install --verbose dist/*.whl
12+
- python -m pip list
13+
- python -m pip freeze
14+
- ls -laR .
15+
- python -m pip uninstall --yes --verbose pyodoo
1216
- python -m pytest --verbose --capture=no tests

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'

requirements_ci.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
flake8==5.0.4
44
pycodestyle==2.9.1
5+
build==0.8.0
56
pytest==7.1.3

setup.cfg

+23-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
1-
[easy_install]
2-
zip_ok = False
1+
[metadata]
2+
name = PyOdoo
3+
version = attr: pyodoo.constants.APP_VERSION
4+
description = API for Odoo
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/pyodoo/
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+
Programming Language :: Python :: 3.10
20+
Topic :: Software Development :: Libraries :: Python Modules
321

4-
[build]
5-
build_base = build
6-
7-
[bdist]
8-
dist_dir = dist
9-
10-
[bdist_wheel]
11-
dist_dir = dist
12-
13-
[sdist]
14-
dist_dir = dist
22+
[options]
23+
packages = pyodoo
24+
include_package_data = False

setup.py

-53
This file was deleted.

0 commit comments

Comments
 (0)