Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dist: use new PEP 517 setup.cfg format #63

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
with:
python-version: 3.8
- run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade pip setuptools wheel build
python -m pip install -e .
- run: |
python -m pip install flake8
flake8 --ignore=E501 .
- run: python setup.py sdist bdist_wheel
- run: python -m build .

docs:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ clean:

.PHONY: release
release: clean
python setup.py sdist bdist_wheel
python3 -m build .
twine upload dist/*
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ pytest-cov
pytest-mock
codecov
sphinx==3.2.0
build==0.8.0
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
[build-system]
requires = ["setuptools", "wheel"] # PEP 508 specifications.
build-backend = "setuptools.build_meta"

[tool.black]
line-length = 119
line-length = 119

[flake8]
max-line-length = 88

[bdist_wheel]
universal = 1

[doc8]
max-line-length=119
51 changes: 47 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
[bdist_wheel]
universal = 1
[metadata]
name = ssdpy
version = attr: ssdpy.version.VERSION
description = Python SSDP library
long_description = file: README.md
long_description_content_type = text/markdown
license = MIT
author = Moshi Binyamini
author_email = moshi@moshib.in
url = https://github.com/MoshiBin/ssdpy
project_urls =
Documentation = https://ssdpy.readthedocs.io/
Issue Tracker = https://github.com/MoshiBin/ssdpy/issues
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Topic :: System :: Networking
Topic :: Software Development :: Libraries :: Python Modules

[doc8]
max-line-length=119
[options]
zip_safe = False
include_package_data = True
packages = find:
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<4
install_requires = setuptools >= 45.2.0

[options.packages.find]
exclude =
tests

[options.extras_require]
test =
pytest >= 3.0.0

[options.entry_points]
console_scripts =
ssdpy-server = ssdpy.cli.server:main
ssdpy-discover = ssdpy.cli.client:main
44 changes: 0 additions & 44 deletions setup.py

This file was deleted.