Skip to content

Commit

Permalink
move to more standard project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
nmakel committed Apr 8, 2021
1 parent b9a7f3e commit 755f413
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 29 deletions.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
all: lint

.PHONY: lint
lint:
flake8 --ignore=E501,W503

.PHONY: release
release:
python3 -m build
python3 -m twine upload dist/*

clean:
find . -type f -name *.pyc -delete
find . -type d -name __pycache__ -delete
rm -rf build
rm -rf dist
rm -rf *.egg-info
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
32 changes: 32 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[metadata]
name = sdm_modbus
version = 0.4.4
author = m,ale;
author_email =
description = Eastron SDM Modbus parser library
long_description = file: README.md
long_description_content_type = text/markdown
license = MIT License
url = https://github.com/nmakel/sdm_modbus
project_urls =
Bug Tracker = https://github.com/nmakel/sdm_modbus/issues
classifiers =
Development Status :: 4 - Beta
Programming Language :: Python :: 3.7
Operating System :: OS Independent
Environment :: Console
Natural Language :: English
Intended Audience :: Developers
License :: OSI Approved :: MIT License

[options]
package_dir =
= src
packages = find:
include_package_data = True
python_requires = >= 3.7
install_requires =
pymodbus >= 2.3.0

[options.packages.find]
where = src
30 changes: 1 addition & 29 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,4 @@

import setuptools


with open("README.md", "r") as fh:
long_description = fh.read()

setuptools.setup(
name="sdm_modbus",
version="0.4.4",
description="Eastron SDM Modbus parser library",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT License",
author="nmakel",
author_email="",
url="https://github.com/nmakel/sdm_modbus",
packages=["sdm_modbus"],
include_package_data=True,
install_requires=[
"pymodbus>=2.3.0"
],
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.7",
"Operating System :: OS Independent",
"Environment :: Console",
"Natural Language :: English",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License"
]
)
setuptools.setup()
File renamed without changes.

0 comments on commit 755f413

Please sign in to comment.